aboutsummaryrefslogtreecommitdiffstats
path: root/modules/system/bottom
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-02 18:18:07 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-02 18:18:07 +0530
commit2e0f6163f61cb1e4195f1a08ad1148e57a4f5843 (patch)
treec844351a0d22cb8a68d84b91630612b9c486abca /modules/system/bottom
parentd213c8b40f891bd83f2977f89b25ca341ee01ca4 (diff)
downloadhome-manager-config-2e0f6163f61cb1e4195f1a08ad1148e57a4f5843.tar.gz
home-manager-config-2e0f6163f61cb1e4195f1a08ad1148e57a4f5843.zip
feat: Added package option to each module, darkman service
- Added package options to each module which defines the package/derivation that should be used in all other modules - Added a systemd oneshot service that autosets darkman to dark mode - Removed the prompt from rofi
Diffstat (limited to 'modules/system/bottom')
-rw-r--r--modules/system/bottom/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/system/bottom/default.nix b/modules/system/bottom/default.nix
index 113ba51..fc72ec3 100644
--- a/modules/system/bottom/default.nix
+++ b/modules/system/bottom/default.nix
@@ -2,19 +2,22 @@
{
config,
lib,
- pkgs,
...
}:
{
options.system.bottom = {
enable = lib.mkEnableOption "Enables bottom.";
- package = lib.mkPackageOption pkgs "bottom" { };
+ package = lib.mkOption {
+ type = lib.types.package;
+ readOnly = true;
+ default = config.programs.bottom.package;
+ description = "The bottom package to use.";
+ };
};
config = lib.mkIf config.system.bottom.enable {
programs.bottom = {
enable = true;
- package = config.system.bottom.package;
};
};
}