diff options
author | Ben Sima <ben@bsima.me> | 2021-06-11 07:59:14 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-11-26 13:47:35 -0500 |
commit | 6e1f615b4b0e36b98d179dc4bcab79acdc200c56 (patch) | |
tree | 08800893ac874c99a078267cde8e2d24b7b7e022 /Biz | |
parent | 72a7aaa39e7552970f466e712e1f7ef91aeb03c8 (diff) |
Deploy grocy
Diffstat (limited to 'Biz')
-rw-r--r-- | Biz/Cloud.nix | 1 | ||||
-rw-r--r-- | Biz/Cloud/Grocy.nix | 17 | ||||
-rw-r--r-- | Biz/Cloud/Web.nix | 7 |
3 files changed, 24 insertions, 1 deletions
diff --git a/Biz/Cloud.nix b/Biz/Cloud.nix index dc72fa9..2a30b48 100644 --- a/Biz/Cloud.nix +++ b/Biz/Cloud.nix @@ -15,6 +15,7 @@ bild.os { ./Users.nix ./Cloud/Chat.nix ./Cloud/Git.nix + ./Cloud/Grocy.nix ./Cloud/Hardware.nix ./Cloud/Mail.nix ./Cloud/Networking.nix diff --git a/Biz/Cloud/Grocy.nix b/Biz/Cloud/Grocy.nix new file mode 100644 index 0000000..3f63cc7 --- /dev/null +++ b/Biz/Cloud/Grocy.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + services.grocy = { + enable = true; + hostName = "grocy.simatime.com"; + nginx.enableSSL = false; # set in Web.nix + settings = { + calendar = { + firstDayOfWeek = 1; + showWeekNumber = true; + }; + currency = "USD"; + culture = "en"; + }; + }; +} diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 2a47fc1..fd28eee 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -42,7 +42,7 @@ in statusPage = true; user = "nginx"; - group = "www-data"; + group = "nginx"; virtualHosts = { ${rootDomain} = { @@ -152,6 +152,10 @@ in # proxyWebsockets = true; # }; #}; + "grocy.${rootDomain}" = { + useACMEHost = rootDomain; + forceSSL = true; + }; }; }; }; @@ -166,5 +170,6 @@ in "dandel-rovbur.${rootDomain}" "sabten.${rootDomain}" "cal.${rootDomain}" + "grocy.${rootDomain}" ];# } |