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
inherit (inputs) self;
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;
specialArgs = {
inherit lib inputs self;
};
specialArgs = {inherit lib inputs self;};
modules = [
./del
systemDir
../modules
];
};
in {
niks = createSystem ./niks;
del = createSystem ./del;
#hape = lib.nixosSystem {
# system = "x86_64-linux";
@ -38,14 +30,6 @@ in {
# inputs.home-manager.nixosModules.home-manager
# ];
#};
chmura = lib.nixosSystem {
system = null;
specialArgs = {
inherit lib inputs self;
};
modules = [
./chmura
../modules
];
};
chmura = createSystem ./chmura;
}