aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/scripts/default.nix')
-rw-r--r--modules/scripts/default.nix42
1 files changed, 20 insertions, 22 deletions
diff --git a/modules/scripts/default.nix b/modules/scripts/default.nix
index abecc38..fd610d0 100644
--- a/modules/scripts/default.nix
+++ b/modules/scripts/default.nix
@@ -20,27 +20,25 @@
];
config = {
- home.packages = [
- pkgs.file
- config.terminal.bat.package
- ]
- ++ lib.filter (x: x != null) (lib.mapAttrsToList (_: s: s.package) config.scripts)
- ++ lib.filter (x: x != null) (
- lib.mapAttrsToList (
- name: sc:
- if sc.enable && sc.desktop.enable then
- pkgs.makeDesktopItem {
- name = name;
- desktopName = sc.desktop.displayName;
- exec = "${lib.getExe config.terminal.kitty.package} -e ${lib.getExe sc.package}";
- icon = "kitty";
- categories = [ "Utility" ];
- terminal = false;
- type = "Application";
- }
- else
- null
- ) config.scripts
- );
+ home.packages =
+ [ ]
+ ++ lib.filter (x: x != null) (lib.mapAttrsToList (_: s: s.package) config.scripts)
+ ++ lib.filter (x: x != null) (
+ lib.mapAttrsToList (
+ name: sc:
+ if sc.enable && sc.desktop.enable then
+ pkgs.makeDesktopItem {
+ name = name;
+ desktopName = sc.desktop.displayName;
+ exec = "${lib.getExe config.terminal.kitty.package} -e ${lib.getExe sc.package}";
+ icon = "kitty";
+ categories = [ "Utility" ];
+ terminal = false;
+ type = "Application";
+ }
+ else
+ null
+ ) config.scripts
+ );
};
}