Compare commits
No commits in common. "f7c3edf779a2691474986f836a185989571c13d9" and "82bb877bfbde832ad0cf964a2eb1895ef430369f" have entirely different histories.
f7c3edf779
...
82bb877bfb
1 changed files with 2 additions and 51 deletions
|
@ -4,8 +4,10 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
../../modules/nix.nix
|
../../modules/nix.nix
|
||||||
|
../../modules/network-server.nix
|
||||||
../../modules/locale.nix
|
../../modules/locale.nix
|
||||||
../../modules/server-cli.nix
|
../../modules/server-cli.nix
|
||||||
|
../../modules/nix.nix
|
||||||
../../modules/sshd.nix
|
../../modules/sshd.nix
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -37,57 +39,6 @@
|
||||||
services.proxmox-ve = {
|
services.proxmox-ve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ipAddress = "192.168.122.42";
|
ipAddress = "192.168.122.42";
|
||||||
|
|
||||||
# Make vmbr0 bridge visible in Proxmox web interface
|
|
||||||
bridges = [ "vmbr0" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.useDHCP = false;
|
|
||||||
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
links."10-wan" = {
|
|
||||||
matchConfig.Path = "pci-0000:01:00.0";
|
|
||||||
linkConfig.Name = "wan";
|
|
||||||
};
|
|
||||||
|
|
||||||
networks."10-wan" = {
|
|
||||||
matchConfig.Name = "enp1s0";
|
|
||||||
networkConfig = {
|
|
||||||
# start a DHCP Client for IPv4 Addressing/Routing
|
|
||||||
DHCP = "ipv4";
|
|
||||||
# accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC)
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
# make routing on this interface a dependency for network-online.target
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# Actually set up the vmbr0 bridge
|
|
||||||
networks."10-lan" = {
|
|
||||||
matchConfig.Name = [ "ens18" ];
|
|
||||||
networkConfig = {
|
|
||||||
Bridge = "vmbr0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
netdevs."vmbr0" = {
|
|
||||||
netdevConfig = {
|
|
||||||
Name = "vmbr0";
|
|
||||||
Kind = "bridge";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networks."10-lan-bridge" = {
|
|
||||||
matchConfig.Name = "vmbr0";
|
|
||||||
networkConfig = {
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
DHCP = "ipv4";
|
|
||||||
};
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue