hosts: homes: add work cloudtop
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
a046569743
commit
606cd8cf84
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
16
hosts/homes/ambroisie@ambroisie/default.nix
Normal file
16
hosts/homes/ambroisie@ambroisie/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue