dev.fron.io nixrc / ad117d6
hosts(delta): enable grocy and zeta proxy Tony Olagbaiye 23 days ago
5 changed file(s) with 47 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
14171417 },
14181418 "priv": {
14191419 "locked": {
1420 "narHash": "sha256-pAg4HMG63KwaEJKuL5N8fNObzeadI1gcqVXZ1sR6mKs=",
1420 "narHash": "sha256-HDw+NaGZGVY0s+xE0Lp7/zjPJ11uufzFIu28OP6GFZA=",
14211421 "ref": "default",
1422 "rev": "d3e46e789db44fc84690530c90deadacf727c98d",
1423 "revCount": 17,
1422 "rev": "5cef25bde2f86791db162d0d1439072dc9804dae",
1423 "revCount": 18,
14241424 "type": "hg",
14251425 "url": "ssh://bao@delta/../../srv/hg/nixpriv"
14261426 },
198198 services.searx.enable = true;
199199 services.hydra.enable = false; # disabled because holy wtf
200200 services.flake-ci.enable = true;
201 services.grocy.enable = true;
201202 services.gitfs = {
202203 enable = true;
203204 mounts = {
215216 services.minecraft-server = {
216217 enable = true;
217218 eula = true;
219 package = pkgs.papermc;
218220 declarative = true;
219221 serverProperties = {
220222 motd = "Kany0 City";
44 ./services/gitfs.nix
55 ./services/hydroxide/default.nix
66 ./services/ipfs-cluster/default.nix
7 ./services/grocy.nix
78 ./security/mitigations.nix
89 ./system/machines.nix
910 ./networking/nftables.nix
0 { config, lib, domains, ... }:
1
2 {
3 config = lib.mkIf config.services.grocy.enable {
4 services.grocy = {
5 nginx.enableSSL = false;
6 hostName = "grocy.${domains.home}";
7 settings = {
8 currency = "GBP";
9 culture = "en_GB";
10 calendar.firstDayOfWeek = 1;
11 calendar.showWeekNumber = true;
12 };
13 };
14 services.nginx.virtualHosts.${config.services.grocy.hostName}.listen = [{
15 addr = "[::]";
16 port = 8789;
17 ssl = false;
18 }{
19 addr = "0.0.0.0";
20 port = 8789;
21 ssl = false;
22 }];
23 };
24 }
228228 { main = "media.${domains.home}"; }
229229 ];
230230 };
231 grocy-http = {
232 entryPoints = [ "http" ];
233 rule = "Host(`grocy.${domains.home}`)";
234 service = "grocy";
235 };
236 grocy-https = grocy-http // {
237 entryPoints = [ "https" ];
238 tls.domains = [
239 { main = "grocy.${domains.home}"; }
240 ];
241 };
231242 };
232243
233244 middlewares = {
266277 searx.loadBalancer = {
267278 servers = [
268279 { url = "http://${hosts.wireguard.ipv4.delta}:8888"; }
280 ];
281 };
282 grocy.loadBalancer = {
283 servers = [
284 { url = "http://${hosts.wireguard.ipv4.delta}:8789"; }
269285 ];
270286 };
271287 hydra.loadBalancer = {