diff --git a/home/themes/catppuccin.nix b/home/themes/catppuccin.nix index 22cb83c..2f2b7b8 100644 --- a/home/themes/catppuccin.nix +++ b/home/themes/catppuccin.nix @@ -1,7 +1,11 @@ -{ pkgs, config, ... }: +{ + pkgs, + config, + lib, + ... +}: let - validatePath = - s: if (builtins.pathExists s) then (builtins.baseNameOf s) else throw "${s} does not exist"; + inherit (lib.my) validatePath; in rec { qt.platformTheme.name = "gnome"; diff --git a/parts/lib/functions.nix b/parts/lib/functions.nix index c14fb82..b3e48b6 100644 --- a/parts/lib/functions.nix +++ b/parts/lib/functions.nix @@ -33,4 +33,7 @@ username = "ny"; }; }; + + validatePath = + s: if (builtins.pathExists s) then (builtins.baseNameOf s) else throw "${s} does not exist"; }