create gcroots directory for buildbot

This commit is contained in:
Jörg Thalheim 2023-11-04 12:29:35 +01:00
parent 3bf9f399f9
commit 21a9864cd7

View file

@ -32,6 +32,12 @@ in
};
config = lib.mkIf cfg.enable {
nix.settings.extra-allowed-users = [ "buildbot-worker" ];
# Allow buildbot-worker to create gcroots
systemd.tmpfiles.rules = [
"d /nix/var/nix/gcroots/per-user/${config.users.users.buildbot-worker.name} 0755 ${config.users.users.buildbot-worker.name} root - -"
];
users.users.buildbot-worker = {
description = "Buildbot Worker User.";
isSystemUser = true;