From f55cb13ecfc7727286ab0351b2a93896c3cb933d Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 4 Jun 2023 23:14:47 +0200 Subject: [PATCH] nixos-module/server/lxc-containers: prevent restart on host nixos-rebuild switch --- nix/nixos-module/server/lxc-containers.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nix/nixos-module/server/lxc-containers.nix b/nix/nixos-module/server/lxc-containers.nix index 7d15833..459f570 100644 --- a/nix/nixos-module/server/lxc-containers.nix +++ b/nix/nixos-module/server/lxc-containers.nix @@ -252,6 +252,8 @@ in Restart = "always"; RestartSec = "1s"; }; + # Prevent restart on host nixos-rebuild switch + restartIfChanged = false; }; # Starts all the containers after boot