flake: home-manager: refactor 'hosts' -> 'homes'

This makes more sense as a name.
This commit is contained in:
Bruno BELANYI 2023-12-07 20:30:35 +00:00
parent 20ab679542
commit bdc3e63fff

View file

@ -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;
}; };
}; };
} }