aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-08 17:26:38 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:51 -0700
commit49c1cdbcf34dc137612c3eaf3c843d49323d1901 (patch)
tree5d38aef9959952550382f4b6e55c481079de8d70 /snowfall/modules/home
parent98242c2f0d37306b72398159d89a39bed6bbc3a2 (diff)
migration: btop
Diffstat (limited to 'snowfall/modules/home')
-rw-r--r--snowfall/modules/home/suites/common/default.nix1
-rw-r--r--snowfall/modules/home/tools/btop/default.nix15
2 files changed, 16 insertions, 0 deletions
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;
+ };
+ };
+}