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
|
let
|
||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
|
|
||||||
|
domain = "mesh.vimium.net";
|
||||||
forEverySystem = lib.getAttrs lib.systems.flakeExposed;
|
forEverySystem = lib.getAttrs lib.systems.flakeExposed;
|
||||||
forEachSystem = lib.genAttrs [
|
forEachSystem = lib.genAttrs [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
];
|
];
|
||||||
mkDeployNode = hostName: {
|
mkDeployNode = hostName: {
|
||||||
hostname = "${hostName}.mesh.vimium.net";
|
hostname = "${hostName}.${domain}";
|
||||||
|
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
@ -89,7 +90,12 @@
|
|||||||
specialArgs = { inherit self; };
|
specialArgs = { inherit self; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
{ networking.hostName = name; }
|
{
|
||||||
|
networking = {
|
||||||
|
inherit domain;
|
||||||
|
hostName = name;
|
||||||
|
};
|
||||||
|
}
|
||||||
./hosts/${name}
|
./hosts/${name}
|
||||||
];
|
];
|
||||||
}))
|
}))
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
domain = "mesh.vimium.net";
|
|
||||||
hostId = "d24ae953";
|
hostId = "d24ae953";
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostId = "08ac2f14";
|
hostId = "08ac2f14";
|
||||||
domain = "mesh.vimium.net";
|
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostId = "08bf6db3";
|
hostId = "08bf6db3";
|
||||||
domain = "mesh.vimium.net";
|
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user