summaryrefslogtreecommitdiff
path: root/hosts/himeji/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/himeji/configuration.nix')
-rw-r--r--hosts/himeji/configuration.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/hosts/himeji/configuration.nix b/hosts/himeji/configuration.nix
index 05362ff..04f7e04 100644
--- a/hosts/himeji/configuration.nix
+++ b/hosts/himeji/configuration.nix
@@ -18,10 +18,14 @@
containers = {
engine = "docker";
- extraOptions = [
- "--restart=on-failure"
- "--pull=${if config.modules.containers.engine == "podman" then "newer" else "always"}"
- ];
+ extraOptions =
+ let
+ engine = config.modules.containers.engine;
+ in
+ [
+ "--pull=${if engine == "podman" then "newer" else "always"}"
+ ]
+ ++ (if engine == "podman" then [ "--restart=on-failure" ] else [ ]);
};
};
};