From 9eca5c83dfb8abd67f31eda4603ed7e35f012652 Mon Sep 17 00:00:00 2001 From: sid Date: Sat, 2 May 2026 21:33:14 +0200 Subject: [PATCH 1/2] add jirafeau --- constants.nix | 4 ++++ flake.lock | 8 ++++---- hosts/rx4/services/default.nix | 1 + hosts/rx4/services/jirafeau.nix | 20 ++++++++++++++++++++ hosts/sid/services/nginx.nix | 7 +++++++ 5 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 hosts/rx4/services/jirafeau.nix diff --git a/constants.nix b/constants.nix index e38e39d..3dc7ded 100644 --- a/constants.nix +++ b/constants.nix @@ -21,6 +21,10 @@ rec { fqdn = "git." + domain; port = 3456; }; + jirafeau = rec { + subdomain = "f"; + fqdn = subdomain + "." + domain; + }; miniflux = { fqdn = "rss." + domain; port = 8085; diff --git a/flake.lock b/flake.lock index e00e855..b7c54b9 100644 --- a/flake.lock +++ b/flake.lock @@ -2519,11 +2519,11 @@ "stylix": "stylix_3" }, "locked": { - "lastModified": 1777741303, - "narHash": "sha256-zSzzDpJdKhzQbShaAJ+J97kllAQ4nttFr4VMoln2LJo=", + "lastModified": 1777750263, + "narHash": "sha256-3c085GHJBwd/t9bA7V0vGzh7PQDOeGHn3TgtURs2K7k=", "ref": "release-25.11", - "rev": "e801c318a76d147e167ec97342d4d86b302681b8", - "revCount": 35, + "rev": "a0a39253f4cea70bf7e22da5e5644df9707dfb95", + "revCount": 46, "type": "git", "url": "https://git.sid.ovh/sid/synix.git" }, diff --git a/hosts/rx4/services/default.nix b/hosts/rx4/services/default.nix index 94cc10c..385a957 100644 --- a/hosts/rx4/services/default.nix +++ b/hosts/rx4/services/default.nix @@ -12,6 +12,7 @@ outputs.nixosModules.tailscale ./forgejo.nix + ./jirafeau.nix ./miniflux.nix ./netdata.nix ./nginx.nix diff --git a/hosts/rx4/services/jirafeau.nix b/hosts/rx4/services/jirafeau.nix new file mode 100644 index 0000000..b498c8d --- /dev/null +++ b/hosts/rx4/services/jirafeau.nix @@ -0,0 +1,20 @@ +{ + inputs, + constants, + pkgs, + ... +}: + +{ + imports = [ inputs.core.nixosModules.jirafeau ]; + + services.jirafeau = { + enable = true; + package = pkgs.synix.jirafeau; + reverseProxy = { + enable = true; + subdomain = constants.services.jirafeau.subdomain; + forceSSL = false; + }; + }; +} diff --git a/hosts/sid/services/nginx.nix b/hosts/sid/services/nginx.nix index 1b538ac..b266858 100644 --- a/hosts/sid/services/nginx.nix +++ b/hosts/sid/services/nginx.nix @@ -35,6 +35,13 @@ in address = constants.hosts.rx4.ip; port = constants.services.forgejo.port; }; + virtualHosts."${constants.services.jirafeau.fqdn}" = { + enableACME = ssl; + forceSSL = ssl; + locations."/" = { + proxyPass = "http://${constants.hosts.rx4.ip}"; + }; + }; virtualHosts."${constants.services.miniflux.fqdn}" = mkVirtualHost { inherit ssl; address = constants.hosts.rx4.ip; -- 2.51.2 From 7c76daf8737eed1ae9a7f2e8b14e2b2c53b7af66 Mon Sep 17 00:00:00 2001 From: sid Date: Sat, 2 May 2026 21:34:16 +0200 Subject: [PATCH 2/2] add jirafeau --- hosts/rx4/services/jirafeau.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/rx4/services/jirafeau.nix b/hosts/rx4/services/jirafeau.nix index b498c8d..47195a9 100644 --- a/hosts/rx4/services/jirafeau.nix +++ b/hosts/rx4/services/jirafeau.nix @@ -6,7 +6,7 @@ }: { - imports = [ inputs.core.nixosModules.jirafeau ]; + imports = [ inputs.synix.nixosModules.jirafeau ]; services.jirafeau = { enable = true; -- 2.51.2