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