cleaned up duplicated code

This commit is contained in:
Danilo Reyes
2025-10-12 20:03:24 -06:00
parent e393a4481b
commit 30cff89a50
2 changed files with 1 additions and 74 deletions

View File

@@ -148,28 +148,6 @@ in
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