mkMirroredModulesFlakeModule

This commit is contained in:
greyweather committed 2026-09-01 16:12:22 +01:00
1 parent 97a47d7f10
commit 54f33fd6c3
1 file changed
+6
+6
View File
@@ -42,5 +42,11 @@
mkEnumFromDirContents = dir: nixpkgs.lib.types.enum (map (name: nixpkgs.lib.removeSuffix ".nix" name) (builtins.attrNames (builtins.readDir dir)));
mkOptionalListOfType = type: nixpkgs.lib.types.either (type) (nixpkgs.lib.types.listOf (type));
mkMirroredModulesFlakeModule = moduleName: func: {
flake.nixosModules.${moduleName} = func;
flake.homeModules.${moduleName} = func;
};
};
}