mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 15:20:39 +02:00
fix: make user for nixseparatedebuginfod to allow it to use the nix-daemon
This commit is contained in:
parent
7b9cc4172a
commit
fe21c0030c
2 changed files with 15 additions and 0 deletions
|
@ -25,5 +25,6 @@
|
|||
rtkit = uidGid 984;
|
||||
gitea = uidGid 983;
|
||||
redis-paperless = uidGid 982;
|
||||
nixseparatedebuginfod = uidGid 981;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -19,5 +19,19 @@ lib.optionalAttrs (!minimal) {
|
|||
nix.settings.extra-sandbox-paths = ["/var/tmp/agenix-rekey"];
|
||||
|
||||
services.nixseparatedebuginfod.enable = true;
|
||||
# We need a system-level user to be able to use nix.settings.allowed-users with it.
|
||||
# TODO: remove once https://github.com/NixOS/nix/issues/9071 is fixed
|
||||
systemd.services.nixseparatedebuginfod.serviceConfig = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
User = "nixseparatedebuginfod";
|
||||
Group = "nixseparatedebuginfod";
|
||||
};
|
||||
users = {
|
||||
groups.nixseparatedebuginfod = {};
|
||||
users.nixseparatedebuginfod = {
|
||||
description = "nixseparatedebuginfod user";
|
||||
group = "nixseparatedebuginfod";
|
||||
};
|
||||
};
|
||||
nix.settings.allowed-users = ["nixseparatedebuginfod"];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue