mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #269280 from tazjin/nix-serve-unflaked
nixos/nix-serve: fix module compatibility with unflaked Nix
This commit is contained in:
commit
ab21317170
@ -67,7 +67,9 @@ in
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
nix.settings.extra-allowed-users = [ "nix-serve" ];
|
||||
nix.settings = lib.optionalAttrs (lib.versionAtLeast config.nix.package.version "2.4") {
|
||||
extra-allowed-users = [ "nix-serve" ];
|
||||
};
|
||||
|
||||
systemd.services.nix-serve = {
|
||||
description = "nix-serve binary cache server";
|
||||
|
Loading…
Reference in New Issue
Block a user