mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
nixos/nix-serve: also set extra-allowed-users
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)
This commit is contained in:
parent
bd9dbc4b0c
commit
44cf4801c0
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user