Skip to content

Commit

Permalink
Add flags that allow podman to run the program
Browse files Browse the repository at this point in the history
  • Loading branch information
antifuchs committed Aug 29, 2023
1 parent 91bd25c commit cfae929
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,19 @@ in {
# The tsnet auth key.
"${config.virtualisation.oci-sidecars.tsnsrv.authKeyPath}:${config.virtualisation.oci-sidecars.tsnsrv.authKeyPath}"
];
extraOptions = [
"--network=container:${sidecar.forContainer}"
];
extraOptions =
[
"--network=container:${sidecar.forContainer}"
]
++ (
if (config.virtualisation.oci-containers.backend == "podman")
then [
"--passwd"
"--hostuser=${config.users.users.tsnsrv-sidecar.name}"
"--group-add=keep-groups"
]
else []
);
cmd =
["-stateDir=/state"]
++ (serviceArgs {
Expand Down

0 comments on commit cfae929

Please sign in to comment.