4 imports = [ ../../../modules/virtualisation/lxc-container.nix ];
6 virtualisation.lxc.templates.nix = {
8 target = "/etc/nixos/incus.nix";
16 # copy the config for nixos-rebuild
17 system.activationScripts.config =
19 config = pkgs.substituteAll {
20 src = ./incus-container-image-inner.nix;
21 stateVersion = lib.trivial.release;
25 if [ ! -e /etc/nixos/configuration.nix ]; then
26 install -m 0644 -D ${config} /etc/nixos/configuration.nix
31 dhcpcd.enable = false;
33 useHostResolvConf = false;
38 networks."50-eth0" = {
39 matchConfig.Name = "eth0";
44 linkConfig.RequiredForOnline = "routable";