Compare commits

..

2 commits

Author SHA1 Message Date
70a093ed7a builders: revamp compile step 2024-11-05 17:11:49 -08:00
f95a2b8e0e snowhawk: removing some whitespace 2024-11-05 16:11:44 -08:00
2 changed files with 7 additions and 18 deletions

View file

@ -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", }:
@ -86,8 +73,6 @@ rec {
modules = [ modules = [
inputs.home-manager.darwinModules.home-manager inputs.home-manager.darwinModules.home-manager
./hosts/${hostname}/configuration.nix ./hosts/${hostname}/configuration.nix
{ {
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit inputs self pkgs; inherit inputs self pkgs;
@ -97,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;
} }

View file

@ -25,7 +25,7 @@
builders = import ./builders.nix inputs; builders = import ./builders.nix inputs;
in in
{ {
nixosConfigurations = builders.compileSystems [ nixosConfigurations = builders.compileNixosSystems [
{ hostname = "snowhawk"; } { hostname = "snowhawk"; }
]; ];