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:
Jörg Thalheim 2023-11-04 09:12:07 +01:00 committed by Jörg Thalheim
parent bd9dbc4b0c
commit 44cf4801c0

View File

@ -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" ];