From 0ff5c04d23721ec8390684823ef5bf820b9f2a91 Mon Sep 17 00:00:00 2001 From: Sascha Koenig Date: Thu, 10 Jul 2025 19:30:30 +0200 Subject: [PATCH] outline config + paperless overlay --- flake.lock | 12 ++++++------ flake.nix | 2 +- hosts/m3-atlas/services/headscale.nix | 3 ++- hosts/m3-atlas/services/outline.nix | 11 ++++++++++- overlays/default.nix | 1 + 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 8153fb7..955f64f 100644 --- a/flake.lock +++ b/flake.lock @@ -251,19 +251,19 @@ "type": "github" } }, - "nixpkgs-9472de4": { + "nixpkgs-45570c2": { "locked": { - "lastModified": 1738854639, - "narHash": "sha256-P6CUfI32vWOhNcOPoQQCdQihqEX8baa6SeMET/Ivimc=", + "lastModified": 1750950224, + "narHash": "sha256-vMCk6wKJVgR7H2pVrQV4/qygzTtvpnS/9jCT3cjzXVM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9472de43946f312ab6c82ea25c416217c025c3db", + "rev": "45570c299dc2b63c8c574c4cd77f0b92f7e2766e", "type": "github" }, "original": { "owner": "nixos", "repo": "nixpkgs", - "rev": "9472de43946f312ab6c82ea25c416217c025c3db", + "rev": "45570c299dc2b63c8c574c4cd77f0b92f7e2766e", "type": "github" } }, @@ -388,7 +388,7 @@ "hyprpanel": "hyprpanel", "nixos-generators": "nixos-generators", "nixpkgs": "nixpkgs_4", - "nixpkgs-9472de4": "nixpkgs-9472de4", + "nixpkgs-45570c2": "nixpkgs-45570c2", "nixpkgs-locked": "nixpkgs-locked", "nixpkgs-master": "nixpkgs-master", "nixpkgs-stable": "nixpkgs-stable", diff --git a/flake.nix b/flake.nix index 00286fa..534dbf3 100644 --- a/flake.nix +++ b/flake.nix @@ -17,7 +17,7 @@ }; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05"; - nixpkgs-9472de4.url = "github:nixos/nixpkgs/9472de43946f312ab6c82ea25c416217c025c3db"; + nixpkgs-45570c2.url = "github:nixos/nixpkgs/45570c299dc2b63c8c574c4cd77f0b92f7e2766e"; nixpkgs-locked.url = "github:nixos/nixpkgs/2744d988fa116fc6d46cdfa3d1c936d0abd7d121"; nixpkgs-master.url = "github:nixos/nixpkgs/master"; diff --git a/hosts/m3-atlas/services/headscale.nix b/hosts/m3-atlas/services/headscale.nix index 9e9ca13..30df40d 100644 --- a/hosts/m3-atlas/services/headscale.nix +++ b/hosts/m3-atlas/services/headscale.nix @@ -60,12 +60,13 @@ services = { headscale = { enable = true; - adminUser = "m3tam3re"; + adminUser = "m3tam3re@m3ta.loc"; port = 3009; settings = { server_url = "https://va.m3tam3re.com"; dns = { base_domain = "m3ta.loc"; + nameservers.global = ["8.8.8.8"]; }; logtail.enabled = false; policy.path = "${aclFile}"; diff --git a/hosts/m3-atlas/services/outline.nix b/hosts/m3-atlas/services/outline.nix index d7e9af9..13646aa 100644 --- a/hosts/m3-atlas/services/outline.nix +++ b/hosts/m3-atlas/services/outline.nix @@ -1,8 +1,17 @@ { services.outline = { + enable = true; port = 3019; + publicUrl = "https://ol.m3ta.dev"; databaseUrl = "postgresql://outline:outline@127.0.0.1:5432/outline"; - storage = "local"; + storage = { + storageType = "local"; + }; + }; + systemd.services.outline.serviceConfig = { + Environment = [ + "PGSSLMODE=disable" + ]; }; # Traefik configuration specific to littlelink services.traefik.dynamicConfigOptions.http = { diff --git a/overlays/default.nix b/overlays/default.nix index 2e100de..9a3f56d 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -15,6 +15,7 @@ }; nodejs_24 = inputs.nixpkgs-stable.legacyPackages.${prev.system}.nodejs_24; + paperless-ngx = inputs.nixpkgs-45570c2.legacyPackages.${prev.system}.paperless-ngx; # trezord = inputs.nixpkgs-2744d98.legacyPackages.${prev.system}.trezord; # mesa = inputs.nixpkgs-master.legacyPackages.${prev.system}.mesa; # hyprpanel = inputs.hyprpanel.packages.${prev.system}.default.overrideAttrs (prev: {