aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-08 17:32:27 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:52 -0700
commit3f4a98af8c2a1e3d8f6a79a4d094a3e1650f83c0 (patch)
treefe4d8ee3c6b4e9dad111d2c4b6918003e1ab157c
parent2aceb8f55e9b783be40f6eb8c3974dbb4f23bf28 (diff)
migration: zoxide
-rw-r--r--hosts/c-pc/home.nix4
-rw-r--r--snowfall/modules/home/suites/common/default.nix1
-rw-r--r--snowfall/modules/home/tools/zoxide/default.nix15
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;
+ };
+ };
+}