diff options
| -rw-r--r-- | hosts/c-pc/home.nix | 4 | ||||
| -rw-r--r-- | snowfall/modules/home/suites/common/default.nix | 1 | ||||
| -rw-r--r-- | snowfall/modules/home/tools/zoxide/default.nix | 15 |
3 files changed, 16 insertions, 4 deletions
diff --git a/hosts/c-pc/home.nix b/hosts/c-pc/home.nix index 78e1a90..20ba9bc 100644 --- a/hosts/c-pc/home.nix +++ b/hosts/c-pc/home.nix @@ -29,10 +29,6 @@ ]; }; - programs = { - zoxide.enable = true; - }; - home.packages = with pkgs; [ pfetch diff --git a/snowfall/modules/home/suites/common/default.nix b/snowfall/modules/home/suites/common/default.nix index f6b8ec4..63ea042 100644 --- a/snowfall/modules/home/suites/common/default.nix +++ b/snowfall/modules/home/suites/common/default.nix @@ -16,6 +16,7 @@ in { ssh.enable = true; gpg.enable = true; btop.enable = true; + zoxide.enable = true; }; }; }; diff --git a/snowfall/modules/home/tools/zoxide/default.nix b/snowfall/modules/home/tools/zoxide/default.nix new file mode 100644 index 0000000..75db246 --- /dev/null +++ b/snowfall/modules/home/tools/zoxide/default.nix @@ -0,0 +1,15 @@ +{ options, config, lib, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.tools.zoxide; +in { + options.${namespace}.tools.zoxide = with types; { + enable = mkEnableOption "zoxide"; + }; + + config = mkIf cfg.enable { + programs.zoxide = { + enable = true; + }; + }; +} |