Use a path for appsettings instead of a string

This commit is contained in:
Lorwp
2025-01-21 12:41:30 +11:00
parent 5a0f6fea02
commit 8a5a13718e
+3 -3
View File
@@ -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";
};