Extract networking domain from host configs
All checks were successful
Check flake / build-amd64-linux (push) Successful in 4m22s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 4m22s
This commit is contained in:
parent
19dbe4c226
commit
b74bfc9683
10
flake.nix
10
flake.nix
@ -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}
|
||||
];
|
||||
}))
|
||||
|
@ -15,7 +15,6 @@
|
||||
};
|
||||
|
||||
networking = {
|
||||
domain = "mesh.vimium.net";
|
||||
hostId = "d24ae953";
|
||||
firewall = {
|
||||
enable = true;
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
networking = {
|
||||
hostId = "08ac2f14";
|
||||
domain = "mesh.vimium.net";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
networking = {
|
||||
hostId = "08bf6db3";
|
||||
domain = "mesh.vimium.net";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user