Commit b2f67d3f authored by Vincent Ambo's avatar Vincent Ambo
Browse files

nixos/nix-serve: fix module compatibility with unflaked Nix

The option `extra-allowed-users` was introduced in Nix 2.4, and fails
config validation on Nix 2.3.
parent 59d85cec
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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";