From 02f1cb4dae4f466d79e102f890f093fb9e97e7f7 Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Sun, 30 Aug 2026 22:42:35 -0700 Subject: power settings, palette cleanup --- users/kassouni/palette/default.nix | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'users/kassouni/palette/default.nix') 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. ''; }; -- cgit v1.3.1