further figration

This commit is contained in:
Danilo Reyes
2025-10-12 14:12:19 -06:00
parent c3d20aa28f
commit 8664061145
18 changed files with 27 additions and 20 deletions

View File

@@ -196,6 +196,29 @@ in
shellType: bashContent: zshContent:
if shellType == "bash" then { initExtra = bashContent; } else { initContent = zshContent; };
mergeAliases = baseAliases: extraAliases: baseAliases // extraAliases;
importDotfile = path: import path;
mkScriptOptions = lib: {
enable = lib.mkEnableOption "Whether to enable this script";
install = lib.mkEnableOption "Whether to install the script package";
service = lib.mkEnableOption "Whether to enable the script service";
name = lib.mkOption {
type = lib.types.str;
description = "Name of the script.";
};
timer = lib.mkOption {
type = lib.types.str;
default = "*:0";
description = "Systemd timer schedule.";
};
description = lib.mkOption {
type = lib.types.str;
description = "Description of the service.";
};
package = lib.mkOption {
type = lib.types.package;
description = "Package containing the executable script.";
};
};
getServicesWithNativeFirewall =
config: blacklist:
config.my.servers