aboutsummaryrefslogtreecommitdiffstats
path: root/modules/lib/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 03:45:10 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 03:50:33 +0530
commit1a39cf221e3f647df0767c88d89a54e3813e7019 (patch)
treeb3df1afb0bcc0942a364f267f993ed1a9bfb9434 /modules/lib/default.nix
parente9e375f5f5263964fe89479a2610081000959774 (diff)
downloadhome-manager-config-1a39cf221e3f647df0767c88d89a54e3813e7019.tar.gz
home-manager-config-1a39cf221e3f647df0767c88d89a54e3813e7019.zip
refactor: adding explicit options to enable scripts
- some scripts that are not critical to the functioning of other options, can be enabled/disabled
Diffstat (limited to 'modules/lib/default.nix')
-rw-r--r--modules/lib/default.nix48
1 files changed, 0 insertions, 48 deletions
diff --git a/modules/lib/default.nix b/modules/lib/default.nix
deleted file mode 100644
index fd54fa2..0000000
--- a/modules/lib/default.nix
+++ /dev/null
@@ -1,48 +0,0 @@
-# Internal aggregation for script modules registered via mkScriptModule
-{
- config,
- lib,
- ...
-}:
-{
- options.scriptPaths = lib.mkOption {
- type = lib.types.listOf (lib.types.listOf lib.types.str);
- default = [ ];
- internal = true;
- description = "Attr paths of script modules registered via mkScriptModule.";
- };
-
- config = {
- home.packages = lib.filter (p: p != null) (
- map (path: (lib.getAttrFromPath path config).package) config.scriptPaths
- );
-
- xdg.desktopEntries = lib.listToAttrs (
- map
- (
- path:
- let
- name = lib.last path;
- sc = lib.getAttrFromPath path config;
- in
- lib.nameValuePair name {
- name = sc.desktop.displayName;
- exec = "${lib.getExe config.terminal.kitty.package} --class ${name} -e ${lib.getExe sc.package}";
- icon = sc.desktop.icon;
- categories = [ "Utility" ];
- terminal = false;
- type = "Application";
- }
- )
- (
- lib.filter (
- path:
- let
- sc = lib.getAttrFromPath path config;
- in
- sc.enable && sc.desktop.enable
- ) config.scriptPaths
- )
- );
- };
-}