mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
36 lines
869 B
Nix
36 lines
869 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 lxd configuration.
|
||
"${modulesPath}/virtualisation/lxc-container.nix"
|
||
# Include the container-specific autogenerated configuration.
|
||
./lxd.nix
|
||
];
|
||
|
||
networking = {
|
||
dhcpcd.enable = false;
|
||
useDHCP = false;
|
||
useHostResolvConf = false;
|
||
};
|
||
|
||
systemd.network = {
|
||
enable = true;
|
||
networks."50-eth0" = {
|
||
matchConfig.Name = "eth0";
|
||
networkConfig = {
|
||
DHCP = "ipv4";
|
||
IPv6AcceptRA = true;
|
||
};
|
||
linkConfig.RequiredForOnline = "routable";
|
||
};
|
||
};
|
||
|
||
system.stateVersion = "@stateVersion@"; # Did you read the comment?
|
||
}
|