From 55e8c6cae5c14179740937e3fa01ef564e30ede0 Mon Sep 17 00:00:00 2001 From: Sascha Koenig Date: Thu, 10 Jul 2025 06:54:42 +0200 Subject: [PATCH] +outine, flake update --- hosts/m3-ares/configuration.nix | 2 +- .../m3-atlas/services/containers/baserow.nix | 2 +- hosts/m3-atlas/services/default.nix | 1 + hosts/m3-atlas/services/gitea.nix | 1 + hosts/m3-atlas/services/outline.nix | 24 +++++++++++++++++++ hosts/m3-atlas/services/postgres.nix | 2 ++ hosts/m3-kratos/configuration.nix | 2 +- 7 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 hosts/m3-atlas/services/outline.nix diff --git a/hosts/m3-ares/configuration.nix b/hosts/m3-ares/configuration.nix index e339885..0a9e725 100644 --- a/hosts/m3-ares/configuration.nix +++ b/hosts/m3-ares/configuration.nix @@ -26,7 +26,7 @@ boot.initrd.services.lvm.enable = false; boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback]; boot.kernelModules = ["v4l2loopback"]; - + boot.kernelPackages = pkgs.linuxPackages_latest; boot.extraModprobeConfig = '' options kvm_intel nested=1 options kvm_intel emulate_invalid_guest_state=0 diff --git a/hosts/m3-atlas/services/containers/baserow.nix b/hosts/m3-atlas/services/containers/baserow.nix index 0bf059e..bf9dea6 100644 --- a/hosts/m3-atlas/services/containers/baserow.nix +++ b/hosts/m3-atlas/services/containers/baserow.nix @@ -1,6 +1,6 @@ {config, ...}: { virtualisation.oci-containers.containers."baserow" = { - image = "docker.io/baserow/baserow:1.33.2"; + image = "docker.io/baserow/baserow:1.33.4"; environmentFiles = [config.age.secrets.baserow-env.path]; ports = ["127.0.0.1:3001:80"]; volumes = ["baserow_data:/baserow/data"]; diff --git a/hosts/m3-atlas/services/default.nix b/hosts/m3-atlas/services/default.nix index b451ff4..0e6d78a 100644 --- a/hosts/m3-atlas/services/default.nix +++ b/hosts/m3-atlas/services/default.nix @@ -6,6 +6,7 @@ ./minio.nix ./mysql.nix ./n8n.nix + ./outline.nix ./paperless.nix ./postgres.nix ./searx.nix diff --git a/hosts/m3-atlas/services/gitea.nix b/hosts/m3-atlas/services/gitea.nix index 18d26a2..d437e3b 100644 --- a/hosts/m3-atlas/services/gitea.nix +++ b/hosts/m3-atlas/services/gitea.nix @@ -6,6 +6,7 @@ ROOT_URL = "https://code.m3ta.dev"; HTTP_PORT = 3030; }; + mailer.SENDMAIL_PATH = "/run/wrappers/bin/sendmail"; service.DISABLE_REGISTRATION = true; }; lfs.enable = true; diff --git a/hosts/m3-atlas/services/outline.nix b/hosts/m3-atlas/services/outline.nix new file mode 100644 index 0000000..d7e9af9 --- /dev/null +++ b/hosts/m3-atlas/services/outline.nix @@ -0,0 +1,24 @@ +{ + services.outline = { + port = 3019; + databaseUrl = "postgresql://outline:outline@127.0.0.1:5432/outline"; + storage = "local"; + }; + # Traefik configuration specific to littlelink + services.traefik.dynamicConfigOptions.http = { + services.outline.loadBalancer.servers = [ + { + url = "http://localhost:3019/"; + } + ]; + + routers.outline = { + rule = "Host(`ol.m3ta.dev`)"; + tls = { + certResolver = "godaddy"; + }; + service = "outline"; + entrypoints = "websecure"; + }; + }; +} diff --git a/hosts/m3-atlas/services/postgres.nix b/hosts/m3-atlas/services/postgres.nix index 3c82f01..470816f 100644 --- a/hosts/m3-atlas/services/postgres.nix +++ b/hosts/m3-atlas/services/postgres.nix @@ -14,6 +14,8 @@ # Localhost connections (IPv4 and IPv6) host all postgres 127.0.0.1/32 scram-sha-256 host all postgres ::1/128 scram-sha-256 + host outline outline 127.0.0.1/32 scram-sha-256 + host outline outline ::1/128 scram-sha-256 host paperless paperless 127.0.0.1/32 scram-sha-256 host paperless paperless ::1/128 scram-sha-256 diff --git a/hosts/m3-kratos/configuration.nix b/hosts/m3-kratos/configuration.nix index dd81f83..84da518 100644 --- a/hosts/m3-kratos/configuration.nix +++ b/hosts/m3-kratos/configuration.nix @@ -14,7 +14,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.initrd.kernelModules = ["amdgpu"]; - boot.kernelPackages = pkgs.linuxPackages_6_14; + boot.kernelPackages = pkgs.linuxPackages_latest; services.xserver.videoDrivers = ["amdgpu"]; security.polkit.enable = true; security.pam.services.gdm.enableGnomeKeyring = true;