mkMirroredModulesFlakeModule
This commit is contained in:
1 file changed
+6
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user