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

View file

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