hosts: homes: add work cloudtop
All checks were successful
continuous-integration/drone/push Build is passing

The unfortunate host naming can't be fixed at the moment...
This commit is contained in:
Bruno BELANYI 2023-03-09 10:21:36 +00:00
parent a046569743
commit 606cd8cf84
2 changed files with 29 additions and 3 deletions

View file

@ -38,14 +38,24 @@ let
inherit inputs;
};
};
hosts = {
"ambroisie@ambroisie" = "x86_64-linux"; # Unfortunate naming here...
};
in
{
perSystem = { system, ... }: {
# Work-around for https://github.com/nix-community/home-manager/issues/3075
legacyPackages = {
homeConfigurations = lib.mapAttrs mkHome {
ambroisie = system;
};
homeConfigurations =
let
filteredHosts = lib.filterAttrs (_: v: v == system) hosts;
allHosts = filteredHosts // {
# Default configuration
ambroisie = system;
};
in
lib.mapAttrs mkHome allHosts;
};
};
}