From bb1b8ca33f6fba9c6c1c620825e60cf2e8bbe828 Mon Sep 17 00:00:00 2001 From: Jet Date: Wed, 18 Mar 2026 17:03:28 -0700 Subject: [PATCH] feat: add noisepics to server --- configuration.nix | 1 + flake.lock | 21 +++++++++++++++++++++ flake.nix | 4 ++++ modules/noisepics.nix | 18 ++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 modules/noisepics.nix diff --git a/configuration.nix b/configuration.nix index f8b2428..e8cfe9a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -12,6 +12,7 @@ ./modules/ntfy.nix ./modules/uptime-kuma.nix ./modules/noisebell.nix + ./modules/noisepics.nix # mymx module is imported via flake input in flake.nix ]; diff --git a/flake.lock b/flake.lock index 63301f8..42852ad 100644 --- a/flake.lock +++ b/flake.lock @@ -295,6 +295,26 @@ "url": "https://git.extremist.software/jet/noisebell" } }, + "noisepics": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1773877610, + "narHash": "sha256-95MYG1YSdry/YUbUeaMlfAhYE9j4WxNjO4iRJuFo4T0=", + "ref": "refs/heads/main", + "rev": "acca19d3dd8249fe8648de22f3f0263fadf1db8a", + "revCount": 1, + "type": "git", + "url": "https://git.extremist.software/jet/noisepics" + }, + "original": { + "type": "git", + "url": "https://git.extremist.software/jet/noisepics" + } + }, "pi-service": { "inputs": { "crane": "crane", @@ -341,6 +361,7 @@ "mymx": "mymx", "nixpkgs": "nixpkgs", "noisebell": "noisebell", + "noisepics": "noisepics", "website": "website" } }, diff --git a/flake.nix b/flake.nix index 8736f96..ca021ce 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,9 @@ noisebell.url = "git+https://git.extremist.software/jet/noisebell"; noisebell.inputs.nixpkgs.follows = "nixpkgs"; + noisepics.url = "git+https://git.extremist.software/jet/noisepics"; + noisepics.inputs.nixpkgs.follows = "nixpkgs"; + agenix.url = "github:ryantm/agenix"; agenix.inputs.nixpkgs.follows = "nixpkgs"; }; @@ -30,6 +33,7 @@ inputs.website.nixosModules.default inputs.agenix.nixosModules.default inputs.noisebell.nixosModules.default + inputs.noisepics.nixosModules.default ./disk-config.nix ./configuration.nix diff --git a/modules/noisepics.nix b/modules/noisepics.nix new file mode 100644 index 0000000..cc5a4c9 --- /dev/null +++ b/modules/noisepics.nix @@ -0,0 +1,18 @@ +{ config, inputs, ... }: + +{ + age.secrets.noisepics-storagebox = { + file = "${inputs.noisepics}/secrets/noisepics-storagebox.age"; + mode = "0400"; + }; + + services.noisepics = { + enable = true; + domain = "noisepics.extremist.software"; + storagebox = { + enable = true; + address = "u563838.your-storagebox.de"; + credentialsFile = config.age.secrets.noisepics-storagebox.path; + }; + }; +}