From 8a5a13718e6dc8d682bc81e1d2eae82d51fb3473 Mon Sep 17 00:00:00 2001 From: Lorwp Date: Tue, 21 Jan 2025 12:41:30 +1100 Subject: [PATCH] Use a path for appsettings instead of a string --- build/package/nix/tgstation-server.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/package/nix/tgstation-server.nix b/build/package/nix/tgstation-server.nix index 1d9577bcc7..6515edb0e2 100644 --- a/build/package/nix/tgstation-server.nix +++ b/build/package/nix/tgstation-server.nix @@ -77,10 +77,10 @@ in }; production-appsettings = lib.mkOption { - type = lib.types.lines; + type = lib.types.path; default = ''''; description = '' - The contents of appsettings.Production.yml in the /etc/tgstation-server.d directory. + A formatted appsettings.Production.yml file. ''; }; @@ -119,7 +119,7 @@ in mode = "0644"; }; "tgstation-server.d/appsettings.Production.yml" = { - text = cfg.production-appsettings; + source = cfg.production-appsettings; group = cfg.groupname; mode = "0640"; };