This commit is contained in:
benstrb 2026-03-28 00:04:05 +01:00
parent 86090fa40e
commit f86275f331
5 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{
inputs,
lib,
...
}: {
options.flake.lib = lib.mkOption {
type = lib.types.attrsOf lib.types.unspecified;
default = {};
};
config.flake.lib = {
mkNixos = system: name: {
${name} = inputs.nixpkgs.lib.nixosSystem {
modules = [
inputs.self.modules.nixos.${name}
{nixpkgs.hostPlatform = lib.mkDefault system;}
];
};
};
};
}