1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/modules/server/grocy.nix

31 lines
604 B
Nix

{
config,
pkgs,
lib,
...
}:
with lib; {
config = let
cfg = config.elss.server.grocy;
in
mkIf cfg.enable {
services = {
grocy = {
enable = true;
hostName = "grocy.ellmauthaler.net";
settings = {
currency = "EUR";
culture = "de";
calendar = {
showWeekNumber = true;
firstDayOfWeek = 1;
};
};
};
nginx.virtualHosts."grocy.ellmauthaler.net" = {forceSSL = true;};
phpfpm.pools.grocy.phpPackage = mkForce pkgs.php81;
};
};
}