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

This commit is contained in:
Jordan Holt 2024-08-11 10:06:26 +01:00
parent 19dbe4c226
commit b74bfc9683
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
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}
];
}))

View File

@ -15,7 +15,6 @@
};
networking = {
domain = "mesh.vimium.net";
hostId = "d24ae953";
firewall = {
enable = true;

View File

@ -12,7 +12,6 @@
networking = {
hostId = "08ac2f14";
domain = "mesh.vimium.net";
firewall = {
enable = true;
allowedTCPPorts = [

View File

@ -10,7 +10,6 @@
networking = {
hostId = "08bf6db3";
domain = "mesh.vimium.net";
firewall = {
enable = true;
allowedTCPPorts = [