mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
34 lines
871 B
Nix
34 lines
871 B
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ modulesPath, ... }:
|
||
|
||
{
|
||
imports = [
|
||
# Include the default incus configuration.
|
||
"${modulesPath}/virtualisation/incus-virtual-machine.nix"
|
||
# Include the container-specific autogenerated configuration.
|
||
./incus.nix
|
||
];
|
||
|
||
networking = {
|
||
dhcpcd.enable = false;
|
||
useDHCP = false;
|
||
useHostResolvConf = false;
|
||
};
|
||
|
||
systemd.network = {
|
||
enable = true;
|
||
networks."50-enp5s0" = {
|
||
matchConfig.Name = "enp5s0";
|
||
networkConfig = {
|
||
DHCP = "ipv4";
|
||
IPv6AcceptRA = true;
|
||
};
|
||
linkConfig.RequiredForOnline = "routable";
|
||
};
|
||
};
|
||
|
||
system.stateVersion = "@stateVersion@"; # Did you read the comment?
|
||
}
|