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

View file

@ -0,0 +1,16 @@
# Google Cloudtop configuration
{ ... }:
{
# Google specific configuration
home.homeDirectory = "/usr/local/google/home/ambroisie";
home.sessionVariables = {
# Some tooling (e.g: SSH) need to use this library
LD_PRELOAD = "/lib/x86_64-linux-gnu/libnss_cache.so.2\${LD_PRELOAD:+:}$LD_PRELOAD";
};
my.home = {
# I don't need a GPG agent
gpg.enable = false;
};
}