hosts: homes: add work cloudtop
continuous-integration/drone/push Build is passing Details

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

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