This commit is contained in:
Erwin Boskma 2023-01-17 23:55:24 +01:00
parent 4d87d0dcea
commit 4b28c13b60
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU
2 changed files with 12 additions and 15 deletions

View file

@ -1,10 +1,12 @@
{ self, ... } @ inputs:
{ modulesPath, ... }:
let
pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux;
in
{
imports = [
./hardware-configuration.nix
"${modulesPath}/virtualisation/proxmox-lxc.nix"
../../users/root
../../users/erwin
];
@ -17,13 +19,13 @@ in
};
};
proxmox.qemuConf = {
name = "heimdall";
proxmoxLXC = {
privileged = true;
};
networking = {
hostName = "heimdall";
useDHCP = false;
# hostName = "heimdall";
# useDHCP = false;
nat = {
enable = true;
@ -37,7 +39,7 @@ in
};
};
firewall.trustedInterfaces = [ "eth1" ];
# firewall.trustedInterfaces = [ "eth1" ];
bridges = {
br0 = {
@ -46,10 +48,10 @@ in
};
};
defaultGateway = {
address = "10.2.0.1";
interface = "eth1";
};
# defaultGateway = {
# address = "10.2.0.1";
# interface = "eth1";
# };
nameservers = [ "10.0.0.254" ];
wireguard.interfaces = {

View file

@ -1,5 +0,0 @@
{ modulesPath, ... }: {
imports = [
(modulesPath + "/virtualisation/proxmox-image.nix")
];
}