5 ../../../modules/virtualisation/lxd-virtual-machine.nix
8 virtualisation.lxc.templates.nix = {
10 target = "/etc/nixos/lxd.nix";
12 when = ["create" "copy"];
15 # copy the config for nixos-rebuild
16 system.activationScripts.config = let
17 config = pkgs.substituteAll {
18 src = ./lxd-virtual-machine-image-inner.nix;
19 stateVersion = lib.trivial.release;
22 if [ ! -e /etc/nixos/configuration.nix ]; then
23 install -m 0644 -D ${config} /etc/nixos/configuration.nix
29 dhcpcd.enable = false;
31 useHostResolvConf = false;
36 networks."50-enp5s0" = {
37 matchConfig.Name = "enp5s0";
42 linkConfig.RequiredForOnline = "routable";