[nix] Modularized the container backend so I can easily switch it with an option
This commit is contained in:
@@ -10,11 +10,11 @@ in
|
||||
|
||||
sops.secrets = {
|
||||
"traefik/oauth2-client-secret" = {
|
||||
restartUnits = [ "podman-traefik.service" ];
|
||||
restartUnits = [ "${config.local.container-backend}-traefik.service" ];
|
||||
mode = "0400";
|
||||
};
|
||||
"traefik/oauth2-plugin-secret" = {
|
||||
restartUnits = [ "podman-traefik.service" ];
|
||||
restartUnits = [ "${config.local.container-backend}-traefik.service" ];
|
||||
mode = "0400";
|
||||
};
|
||||
};
|
||||
@@ -47,7 +47,7 @@ in
|
||||
"8448:8448"
|
||||
];
|
||||
volumes = [
|
||||
"/var/run/podman/podman.sock:/var/run/docker.sock:ro"
|
||||
"${config.local.container-socket}:/var/run/docker.sock:ro"
|
||||
# All the configs from the config directory
|
||||
"${traefikConfigDir}:/etc/traefik"
|
||||
# Oauth2 config containing secrets
|
||||
|
||||
Reference in New Issue
Block a user