flake: home-manager: refactor 'hosts' -> 'homes'
This makes more sense as a name.
This commit is contained in:
parent
20ab679542
commit
bdc3e63fff
|
@ -39,7 +39,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
hosts = {
|
homes = {
|
||||||
"ambroisie@bazin" = "x86_64-linux";
|
"ambroisie@bazin" = "x86_64-linux";
|
||||||
"ambroisie@mousqueton" = "x86_64-linux";
|
"ambroisie@mousqueton" = "x86_64-linux";
|
||||||
};
|
};
|
||||||
|
@ -50,13 +50,13 @@ in
|
||||||
legacyPackages = {
|
legacyPackages = {
|
||||||
homeConfigurations =
|
homeConfigurations =
|
||||||
let
|
let
|
||||||
filteredHosts = lib.filterAttrs (_: v: v == system) hosts;
|
filteredHomes = lib.filterAttrs (_: v: v == system) homes;
|
||||||
allHosts = filteredHosts // {
|
allHomes = filteredHomes // {
|
||||||
# Default configuration
|
# Default configuration
|
||||||
ambroisie = system;
|
ambroisie = system;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.mapAttrs mkHome allHosts;
|
lib.mapAttrs mkHome allHomes;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue