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