diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2023-11-04 09:12:07 +0100 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-11-12 14:09:31 +0100 |
commit | 44cf4801c0937b76cc6f416a0b160b5d1b3286af (patch) | |
tree | 037020fae2ba8c120dd05b538d4a024445d7b52d | |
parent | bd9dbc4b0cf7758711d49523bc90f22564b50605 (diff) | |
download | nixpkgs-44cf4801c0937b76cc6f416a0b160b5d1b3286af.tar nixpkgs-44cf4801c0937b76cc6f416a0b160b5d1b3286af.tar.gz nixpkgs-44cf4801c0937b76cc6f416a0b160b5d1b3286af.tar.bz2 nixpkgs-44cf4801c0937b76cc6f416a0b160b5d1b3286af.tar.lz nixpkgs-44cf4801c0937b76cc6f416a0b160b5d1b3286af.tar.xz nixpkgs-44cf4801c0937b76cc6f416a0b160b5d1b3286af.tar.zst nixpkgs-44cf4801c0937b76cc6f416a0b160b5d1b3286af.zip |
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)
-rw-r--r-- | nixos/modules/services/networking/nix-serve.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/nix-serve.nix b/nixos/modules/services/networking/nix-serve.nix index f37be31270b..8c4352bc95e 100644 --- a/nixos/modules/services/networking/nix-serve.nix +++ b/nixos/modules/services/networking/nix-serve.nix @@ -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" ]; |