nixos-module/server/lxc-containers: prevent restart on host nixos-rebuild switch

This commit is contained in:
Astro 2023-06-04 23:14:47 +02:00
parent 87cf64653c
commit f73d4b64dc
1 changed files with 2 additions and 0 deletions

View File

@ -252,6 +252,8 @@ in
Restart = "always";
RestartSec = "1s";
};
# Prevent restart on host nixos-rebuild switch
restartIfChanged = false;
};
# Starts all the containers after boot