4 imports = [ ../../../modules/virtualisation/incus-virtual-machine.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-virtual-machine-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
32 dhcpcd.enable = false;
34 useHostResolvConf = false;
39 networks."50-enp5s0" = {
40 matchConfig.Name = "enp5s0";
45 linkConfig.RequiredForOnline = "routable";