at master 871 B view raw
1# Edit this configuration file to define what should be installed on 2# your system. Help is available in the configuration.nix(5) man page 3# and in the NixOS manual (accessible by running ‘nixos-help’). 4 5{ modulesPath, ... }: 6 7{ 8 imports = [ 9 # Include the default incus configuration. 10 "${modulesPath}/virtualisation/incus-virtual-machine.nix" 11 # Include the container-specific autogenerated configuration. 12 ./incus.nix 13 ]; 14 15 networking = { 16 dhcpcd.enable = false; 17 useDHCP = false; 18 useHostResolvConf = false; 19 }; 20 21 systemd.network = { 22 enable = true; 23 networks."50-enp5s0" = { 24 matchConfig.Name = "enp5s0"; 25 networkConfig = { 26 DHCP = "ipv4"; 27 IPv6AcceptRA = true; 28 }; 29 linkConfig.RequiredForOnline = "routable"; 30 }; 31 }; 32 33 system.stateVersion = "@stateVersion@"; # Did you read the comment? 34}