From 49c1cdbcf34dc137612c3eaf3c843d49323d1901 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 8 Feb 2025 17:26:38 -0800 Subject: migration: btop --- hosts/c-pc/home.nix | 1 - snowfall/modules/home/suites/common/default.nix | 1 + snowfall/modules/home/tools/btop/default.nix | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 snowfall/modules/home/tools/btop/default.nix diff --git a/hosts/c-pc/home.nix b/hosts/c-pc/home.nix index 2a8627b..3ae9352 100644 --- a/hosts/c-pc/home.nix +++ b/hosts/c-pc/home.nix @@ -31,7 +31,6 @@ programs = { feh.enable = true; - btop.enable = true; tmux.enable = true; zoxide.enable = true; diff --git a/snowfall/modules/home/suites/common/default.nix b/snowfall/modules/home/suites/common/default.nix index 36b7dcd..f6b8ec4 100644 --- a/snowfall/modules/home/suites/common/default.nix +++ b/snowfall/modules/home/suites/common/default.nix @@ -15,6 +15,7 @@ in { git.enable = true; ssh.enable = true; gpg.enable = true; + btop.enable = true; }; }; }; diff --git a/snowfall/modules/home/tools/btop/default.nix b/snowfall/modules/home/tools/btop/default.nix new file mode 100644 index 0000000..87528a1 --- /dev/null +++ b/snowfall/modules/home/tools/btop/default.nix @@ -0,0 +1,15 @@ +{ options, config, lib, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.tools.btop; +in { + options.${namespace}.tools.btop = with types; { + enable = mkEnableOption "btop"; + }; + + config = mkIf cfg.enable { + programs.btop = { + enable = true; + }; + }; +} -- cgit v1.2.3