From 4284ed2a9db6918851c3b820aabff938f2abcece Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Wed, 14 Jun 2023 20:30:26 -0700 Subject: [PATCH] Fixed issue with internal server error Seems like I should have added the nix-serve user to both allowed-users and trusted-users. --- modules/services/nix-serve/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/services/nix-serve/default.nix b/modules/services/nix-serve/default.nix index e1e12aa..d8c24b2 100644 --- a/modules/services/nix-serve/default.nix +++ b/modules/services/nix-serve/default.nix @@ -22,7 +22,12 @@ in { }; config = mkIf cfg.enable { - nix.settings.allowed-users = ["nix-serve"]; + nix.settings = { + allowed-users = ["nix-serve"]; + trusted-users = ["nix-serve"]; + }; + + environment.systemPackages = [pkgs.nix-serve]; services = { nix-serve = {