extract lib.nixosSystem into createSystem

This commit is contained in:
jacekpoz 2024-07-15 21:58:14 +02:00
parent 1493257c51
commit e107d8aa70
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -4,28 +4,20 @@
}: let }: let
inherit (inputs) self; inherit (inputs) self;
inherit (self) lib; inherit (self) lib;
in {
niks = lib.nixosSystem {
system = null;
specialArgs = {
inherit lib inputs self;
};
modules = [
./niks
../modules
];
};
del = lib.nixosSystem { createSystem = systemDir: lib.nixosSystem {
system = null; system = null;
specialArgs = { specialArgs = {inherit lib inputs self;};
inherit lib inputs self;
};
modules = [ modules = [
./del systemDir
../modules ../modules
]; ];
}; };
in {
niks = createSystem ./niks;
del = createSystem ./del;
#hape = lib.nixosSystem { #hape = lib.nixosSystem {
# system = "x86_64-linux"; # system = "x86_64-linux";
@ -38,14 +30,6 @@ in {
# inputs.home-manager.nixosModules.home-manager # inputs.home-manager.nixosModules.home-manager
# ]; # ];
#}; #};
chmura = lib.nixosSystem {
system = null; chmura = createSystem ./chmura;
specialArgs = {
inherit lib inputs self;
};
modules = [
./chmura
../modules
];
};
} }