refactor(access): network interface config

This commit is contained in:
arcnmx 2024-03-23 21:13:01 -07:00
parent ee3834d72a
commit f2fddc1001
42 changed files with 466 additions and 189 deletions

View file

@ -1,4 +1,7 @@
_: {
imports = [
./proxmox.nix
];
arch = "x86_64";
type = "NixOS";
modules = [

View file

@ -106,22 +106,6 @@ in {
unitConfig.RequiresMountsFor = mapAttrsToList (path: _: path) plexLibrary;
};
systemd.network.networks.eth0 = {
name = "eth0";
matchConfig = {
MACAddress = "BC:24:11:34:F4:A8";
Type = "ether";
};
address = ["10.1.1.44/24"];
gateway = ["10.1.1.1"];
DHCP = "no";
};
access.internal = {
enable = true;
macAddress = "BC:24:19:34:F4:A8";
vmid = 102;
};
sops.defaultSopsFile = ./secrets.yaml;
system.stateVersion = "21.05";

View file

@ -0,0 +1,17 @@
_: {
proxmox = {
vm.id = 102;
container = {
enable = true;
lxc.configJsonFile = ./lxc.json;
};
network.interfaces = {
net0 = {
macAddress = "BC:24:11:34:F4:A8";
address4 = "10.1.1.44/24";
address6 = "auto";
};
net1.internal.enable = true;
};
};
}