1
0
Fork 0

feat: Add hosts file entries for systems

This commit is contained in:
lwad 2024-05-27 12:16:15 +01:00
parent 362f724166
commit 041fda2136

View file

@ -89,7 +89,20 @@
};
useUserPackages = true;
};
networking.networkmanager.unmanaged = [ "tailscale0" ];
networking = {
hosts = lib.concatMapAttrs (hostname: address:
if hostname == config.networking.hostName then
{ }
else {
${address} = [ hostname ];
}) {
akame = "100.76.94.126";
asui = "100.75.42.142";
ryuko = "100.113.1.60";
shinobu = "100.111.168.15";
};
networkmanager.unmanaged = [ "tailscale0" ];
};
nix = {
nixPath =
[ "nixpkgs=${inputs.nixpkgs}" "home-manager=${inputs.home-manager}" ];