feat: massive refactoring...
This commit is contained in:
26
config/grocy-grocy.nix
Normal file
26
config/grocy-grocy.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
config,
|
||||
tools,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
lib = pkgs.lib;
|
||||
in
|
||||
{
|
||||
services.grocy = {
|
||||
enable = true;
|
||||
hostName = tools.build_hostname "grocy";
|
||||
settings = {
|
||||
calendar.firstDayOfWeek = 1;
|
||||
culture = config.globals.country_code;
|
||||
currency = config.globals.currency;
|
||||
};
|
||||
nginx.enableSSL = false;
|
||||
};
|
||||
environment.etc."grocy/config.php".text = lib.mkAfter ''
|
||||
// Arbitrary PHP code in grocy's configuration file
|
||||
Setting('AUTH_CLASS', 'Grocy\Middleware\ReverseProxyAuthMiddleware');
|
||||
Setting('REVERSE_PROXY_AUTH_HEADER', 'REMOTE_USER');
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user