Skip to content

Commit

Permalink
nixos/dnscache: Provide explicit group for "dnscache" user
Browse files Browse the repository at this point in the history
Without this patch the module refuses to evaluate, complaining that
default "nogroup" is no longer supported.
  • Loading branch information
KAction authored and bjornfor committed Mar 20, 2024
1 parent 5393cc5 commit 5bb9228
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nixos/modules/services/networking/dnscache.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ in {

config = mkIf config.services.dnscache.enable {
environment.systemPackages = [ pkgs.djbdns ];
users.users.dnscache.isSystemUser = true;
users.users.dnscache = {
isSystemUser = true;
group = "dnscache";
};
users.groups.dnscache = {};

systemd.services.dnscache = {
description = "djbdns dnscache server";
Expand Down

0 comments on commit 5bb9228

Please sign in to comment.