aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/c-pc/home.nix1
-rw-r--r--snowfall/modules/home/suites/common/default.nix1
-rw-r--r--snowfall/modules/home/tools/btop/default.nix15
3 files changed, 16 insertions, 1 deletions
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;
+ };
+ };
+}