diff --git a/config/hosts/yate/configuration.nix b/config/hosts/yate/configuration.nix new file mode 100644 index 0000000..6b4bb71 --- /dev/null +++ b/config/hosts/yate/configuration.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + networking = { + hostName = "yate"; + domain = "z9.ccchh.net"; + }; + + system.stateVersion = "23.11"; +} diff --git a/config/hosts/yate/default.nix b/config/hosts/yate/default.nix new file mode 100644 index 0000000..62851d8 --- /dev/null +++ b/config/hosts/yate/default.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./configuration.nix + ./networking.nix + ./yate.nix + ]; +} diff --git a/config/hosts/yate/networking.nix b/config/hosts/yate/networking.nix new file mode 100644 index 0000000..225edd2 --- /dev/null +++ b/config/hosts/yate/networking.nix @@ -0,0 +1,23 @@ +{ config, pkgs, ... }: + +{ + networking = { + interfaces.net0 = { + ipv4.addresses = [ + { + address = "10.31.208.12"; + prefixLength = 23; + } + ]; + }; + defaultGateway = "10.31.208.1"; + nameservers = [ + "10.31.210.1" + ]; + }; + + systemd.network.links."10-net0" = { + matchConfig.MACAddress = "BC:24:11:73:3E:F7"; + linkConfig.Name = "net0"; + }; +} diff --git a/config/hosts/yate/yate.nix b/config/hosts/yate/yate.nix new file mode 100644 index 0000000..7d4f8be --- /dev/null +++ b/config/hosts/yate/yate.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + environment.systemPackages = [ + pkgs.yate + ]; + + # Just disable it for now. + networking.firewall.enable = false; +} diff --git a/flake.nix b/flake.nix index dd47820..8a8ebf7 100644 --- a/flake.nix +++ b/flake.nix @@ -186,6 +186,15 @@ ./config/hosts/nix-box-june ]; }; + + yate = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + ./config/common + ./config/proxmox-vm + ./config/hosts/yate + ]; + }; }; packages.x86_64-linux = {