builders: revamp compile step
parent
f95a2b8e0e
commit
70a093ed7a
21
builders.nix
21
builders.nix
|
@ -42,12 +42,6 @@ rec {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
compileSystems =
|
|
||||||
systems:
|
|
||||||
lib.right
|
|
||||||
builtins.listToAttrs
|
|
||||||
(map toPartialNixosConfig)
|
|
||||||
systems;
|
|
||||||
|
|
||||||
toPartialHomeManagerConfig =
|
toPartialHomeManagerConfig =
|
||||||
{ user, system ? "x86_64-linux", hostname ? "", configHostname ? "" }:
|
{ user, system ? "x86_64-linux", hostname ? "", configHostname ? "" }:
|
||||||
|
@ -67,13 +61,6 @@ rec {
|
||||||
./hosts/${configHost}/home.nix
|
./hosts/${configHost}/home.nix
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
compileHomes =
|
|
||||||
systems:
|
|
||||||
lib.right
|
|
||||||
builtins.listToAttrs
|
|
||||||
(map toPartialHomeManagerConfig)
|
|
||||||
systems;
|
|
||||||
|
|
||||||
|
|
||||||
toPartialDarwinConfig =
|
toPartialDarwinConfig =
|
||||||
{ hostname, system ? "aarch64-darwin", }:
|
{ hostname, system ? "aarch64-darwin", }:
|
||||||
|
@ -95,10 +82,14 @@ rec {
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
compileDarwinSystems =
|
compileSystems =
|
||||||
|
toPartialConfiguration:
|
||||||
systems:
|
systems:
|
||||||
lib.right
|
lib.right
|
||||||
builtins.listToAttrs
|
builtins.listToAttrs
|
||||||
(map toPartialDarwinConfig)
|
(map toPartialConfiguration)
|
||||||
systems;
|
systems;
|
||||||
|
compileNixosSystems = compileSystems toPartialNixosConfig;
|
||||||
|
compileDarwinSystems = compileSystems toPartialDarwinConfig;
|
||||||
|
compileHomes = compileSystems toPartialHomeManagerConfig;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue