summaryrefslogtreecommitdiff
path: root/users/kassouni/palette/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/kassouni/palette/default.nix')
-rw-r--r--users/kassouni/palette/default.nix20
1 files changed, 8 insertions, 12 deletions
diff --git a/users/kassouni/palette/default.nix b/users/kassouni/palette/default.nix
index 7e9eec4..403aa60 100644
--- a/users/kassouni/palette/default.nix
+++ b/users/kassouni/palette/default.nix
@@ -6,18 +6,15 @@
}:
let
cfg = config.kassouni.palette;
-
- # Every sibling .nix file is an ordinary home-manager module that appends to
- # kassouni.palette.commands, so dropping a file in here adds an entry.
- commandModules = map (file: ./. + "/${file}") (
- lib.attrNames (
- lib.filterAttrs (name: type: type == "regular" && name != "default.nix" && lib.hasSuffix ".nix" name)
- (builtins.readDir ./.)
- )
- );
in
{
- imports = commandModules;
+ imports = [
+ ./bluetooth.nix
+ ./reboot.nix
+ ./rebuild.nix
+ ./screenshot.nix
+ ./shutdown.nix
+ ];
options.kassouni.palette.commands = lib.mkOption {
type = lib.types.listOf (
@@ -40,8 +37,7 @@ in
);
default = [ ];
description = ''
- Entries shown in the rofi command palette. Menu order follows module
- import order, which is alphabetical by filename.
+ Entries shown in the rofi command palette.
'';
};