Extract networking domain from host configs
All checks were successful
Check flake / build-amd64-linux (push) Successful in 4m22s

This commit is contained in:
2024-08-11 10:06:26 +01:00
parent 19dbe4c226
commit b74bfc9683
4 changed files with 8 additions and 5 deletions

View File

@ -55,13 +55,14 @@
let
inherit (nixpkgs) lib;
domain = "mesh.vimium.net";
forEverySystem = lib.getAttrs lib.systems.flakeExposed;
forEachSystem = lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
];
mkDeployNode = hostName: {
hostname = "${hostName}.mesh.vimium.net";
hostname = "${hostName}.${domain}";
profiles.system = {
user = "root";
@ -89,7 +90,12 @@
specialArgs = { inherit self; };
modules = [
{ networking.hostName = name; }
{
networking = {
inherit domain;
hostName = name;
};
}
./hosts/${name}
];
}))