add nix-serve user

This commit is contained in:
Patrick Neff 2024-04-14 17:34:51 +02:00
parent 94c5951403
commit 3493fc713d
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@
in
with lib; {
config = mkIf cfg.enable {
users = {
groups.nix-serve = {};
users.nix-serve = {
group = nix-serve;
isSystemUser = true;
};
};
services = {
nix-serve = {
secretKeyFile = "/var/cache-priv-key.pem";