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
];
}