Compare commits
No commits in common. "70a093ed7aa6a349d50f4c8c76b5e249fb0d6875" and "d80210517149e9e5d4f60dfa1026f6c9f63d04eb" have entirely different histories.
70a093ed7a
...
d802105171
2 changed files with 18 additions and 7 deletions
23
builders.nix
23
builders.nix
|
@ -42,6 +42,12 @@ rec {
|
|||
}
|
||||
];
|
||||
});
|
||||
compileSystems =
|
||||
systems:
|
||||
lib.right
|
||||
builtins.listToAttrs
|
||||
(map toPartialNixosConfig)
|
||||
systems;
|
||||
|
||||
toPartialHomeManagerConfig =
|
||||
{ user, system ? "x86_64-linux", hostname ? "", configHostname ? "" }:
|
||||
|
@ -61,6 +67,13 @@ rec {
|
|||
./hosts/${configHost}/home.nix
|
||||
];
|
||||
});
|
||||
compileHomes =
|
||||
systems:
|
||||
lib.right
|
||||
builtins.listToAttrs
|
||||
(map toPartialHomeManagerConfig)
|
||||
systems;
|
||||
|
||||
|
||||
toPartialDarwinConfig =
|
||||
{ hostname, system ? "aarch64-darwin", }:
|
||||
|
@ -73,6 +86,8 @@ rec {
|
|||
modules = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
./hosts/${hostname}/configuration.nix
|
||||
|
||||
|
||||
{
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs self pkgs;
|
||||
|
@ -82,14 +97,10 @@ rec {
|
|||
];
|
||||
});
|
||||
|
||||
compileSystems =
|
||||
toPartialConfiguration:
|
||||
compileDarwinSystems =
|
||||
systems:
|
||||
lib.right
|
||||
builtins.listToAttrs
|
||||
(map toPartialConfiguration)
|
||||
(map toPartialDarwinConfig)
|
||||
systems;
|
||||
compileNixosSystems = compileSystems toPartialNixosConfig;
|
||||
compileDarwinSystems = compileSystems toPartialDarwinConfig;
|
||||
compileHomes = compileSystems toPartialHomeManagerConfig;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
builders = import ./builders.nix inputs;
|
||||
in
|
||||
{
|
||||
nixosConfigurations = builders.compileNixosSystems [
|
||||
nixosConfigurations = builders.compileSystems [
|
||||
{ hostname = "snowhawk"; }
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue