1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 01:11:02 +03:00

nixos/github-runners: set DynamicUser=false if user not null

This commit is contained in:
Vincent Haupert 2024-02-09 15:25:17 +01:00
parent 3f13f8d85e
commit 35df23c07d

View file

@ -278,11 +278,12 @@ with lib;
# compiled code
LockPersonality = mkDefault false;
# Note that this has some interactions with the User setting; so you may
# want to consult the systemd docs if using both.
DynamicUser = mkDefault true;
}
(mkIf (cfg.user != null) { User = cfg.user; })
(mkIf (cfg.user != null) {
DynamicUser = false;
User = cfg.user;
})
cfg.serviceOverrides
];
}