diff options
Diffstat (limited to 'hostnix/elmo')
| -rw-r--r-- | hostnix/elmo/configuration.nix | 1 | ||||
| -rw-r--r-- | hostnix/elmo/flake.lock | 6 | ||||
| -rw-r--r-- | hostnix/elmo/git.nix | 1 | ||||
| -rw-r--r-- | hostnix/elmo/n8n.nix | 48 | ||||
| -rw-r--r-- | hostnix/elmo/system.nix | 8 |
5 files changed, 12 insertions, 52 deletions
diff --git a/hostnix/elmo/configuration.nix b/hostnix/elmo/configuration.nix index eadd00c..41a3ae9 100644 --- a/hostnix/elmo/configuration.nix +++ b/hostnix/elmo/configuration.nix @@ -13,7 +13,6 @@ ./hardware-configuration.nix ./home-assistant.nix ./media.nix - ./n8n.nix ./oidc.nix ./privacy-frontends.nix ./rss.nix diff --git a/hostnix/elmo/flake.lock b/hostnix/elmo/flake.lock index e5c9611..6d86e86 100644 --- a/hostnix/elmo/flake.lock +++ b/hostnix/elmo/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1767453323, - "narHash": "sha256-qD2wEyuXmRjLD9ZCg7NKp7nDSyA0WSOlIkcKvtZ2j5I=", + "lastModified": 1776067740, + "narHash": "sha256-B35lpsqnSZwn1Lmz06BpwF7atPgFmUgw1l8KAV3zpVQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ea156c6c3a5b67b0120f92f664853914a58d3b05", + "rev": "7e495b747b51f95ae15e74377c5ce1fe69c1765f", "type": "github" }, "original": { diff --git a/hostnix/elmo/git.nix b/hostnix/elmo/git.nix index 246e0ec..24340be 100644 --- a/hostnix/elmo/git.nix +++ b/hostnix/elmo/git.nix @@ -20,6 +20,7 @@ services.cgit."git.mou.fo" = { enable = true; scanPath = "/srv/git"; + gitHttpBackend.checkExportOkFiles = false; settings = { section-from-path = -1; clone-url = "git@git.mou.fo:$CGIT_REPO_URL"; diff --git a/hostnix/elmo/n8n.nix b/hostnix/elmo/n8n.nix deleted file mode 100644 index ad9435e..0000000 --- a/hostnix/elmo/n8n.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ lib, pkgs, ... }: - -{ - services.n8n = { - enable = true; - # TODO webhookUrl = "http://n8n.elmo.mou.fo"; - }; - - systemd.services.n8n = { - environment = { - # services.n8n.settings is deprecated for environment variables. - N8N_CONFIG_FILES = lib.mkForce null; - - N8N_LISTEN_ADDRESS = "::1"; - N8N_PORT = "7856"; - - N8N_RUNNERS_ENABLED = "true"; - N8N_RUNNERS_BROKER_LISTEN_ADDRESS = "::1"; - N8N_RUNNERS_BROKER_PORT = "7857"; - - # TODO - N8N_SECURE_COOKIE = "false"; - - # https://docs.n8n.io/hosting/configuration/configuration-examples/isolation/ - N8N_TEMPLATES_ENABLED = "false"; - }; - - # Override the single instance of pkgs.n8n to use a custom derivation. - # Looks like n8n build fails with less than 16GB of memory. - # https://github.com/n8n-io/n8n/issues/14736 - serviceConfig.ExecStart = let - pkg = pkgs.n8n.overrideAttrs(_: { - # https://github.com/n8n-io/n8n/blob/53594a90e438f25cea40b6e2510a2ba7c7ee9c32/.github/workflows/docker-build-push.yml - NODE_OPTIONS = "--max-old-space-size=7168"; - }); - in - lib.mkForce "${pkg}/bin/n8n"; - }; - - services.nginx.virtualHosts."n8n.elmo.mou.fo" = { - # TODO enableACME = true; - # TODO forceSSL = true; - locations."/" = { - proxyPass = "http://[::1]:7856"; - proxyWebsockets = true; - }; - }; -} diff --git a/hostnix/elmo/system.nix b/hostnix/elmo/system.nix index c40313e..8630abc 100644 --- a/hostnix/elmo/system.nix +++ b/hostnix/elmo/system.nix @@ -1,7 +1,15 @@ { config, pkgs, ... }: { + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + nix.settings.auto-optimise-store = true; + boot.loader.systemd-boot.enable = true; + boot.loader.systemd-boot.configurationLimit = 10; boot.loader.efi.canTouchEfiVariables = true; boot.tmp.useTmpfs = true; |
