Skip to content

Commit

Permalink
nixos/nix-serve: also set extra-allowed-users
Browse files Browse the repository at this point in the history
This fixes the case where users enable nix-serve but also have allowed-users set.
Having extra-allowed-users is a no-op when nix.settings.allowed-users is set to "*" (the default)
  • Loading branch information
Mic92 committed Nov 12, 2023
1 parent bd9dbc4 commit 44cf480
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/services/networking/nix-serve.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ in
};

config = mkIf cfg.enable {
nix.settings.extra-allowed-users = [ "nix-serve" ];

systemd.services.nix-serve = {
description = "nix-serve binary cache server";
after = [ "network.target" ];
Expand Down

0 comments on commit 44cf480

Please sign in to comment.