2023-08-25 03:00:42 +00:00
|
|
|
|
# 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’).
|
|
|
|
|
|
2024-07-17 03:26:36 +00:00
|
|
|
|
{ modulesPath, ... }:
|
2023-08-25 03:00:42 +00:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[
|
|
|
|
|
# Include the default lxd configuration.
|
2023-11-22 12:25:17 +00:00
|
|
|
|
"${modulesPath}/virtualisation/lxc-container.nix"
|
2023-08-25 03:00:42 +00:00
|
|
|
|
# Include the container-specific autogenerated configuration.
|
|
|
|
|
./lxd.nix
|
|
|
|
|
];
|
|
|
|
|
|
2024-02-11 19:28:31 +00:00
|
|
|
|
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";
|
|
|
|
|
};
|
|
|
|
|
};
|
2023-08-25 03:00:42 +00:00
|
|
|
|
|
2023-10-27 08:30:17 +00:00
|
|
|
|
system.stateVersion = "@stateVersion@"; # Did you read the comment?
|
2023-08-25 03:00:42 +00:00
|
|
|
|
}
|