From 3f4a98af8c2a1e3d8f6a79a4d094a3e1650f83c0 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 8 Feb 2025 17:32:27 -0800 Subject: migration: zoxide --- hosts/c-pc/home.nix | 4 ---- snowfall/modules/home/suites/common/default.nix | 1 + snowfall/modules/home/tools/zoxide/default.nix | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 snowfall/modules/home/tools/zoxide/default.nix 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; + }; + }; +} -- cgit v1.2.3