zaphyra's git: nixfiles

zaphyra's nixfiles

commit 21c7de5b4a7aeda4b1db6b55682ef81d4e7b93bb
parent 2b2991be29736b8c5745ea2c7d8d61e6b53d2c74
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 24 Aug 2025 19:19:39 +0200

config/nixos/modules/websites/gomuks.zaphyra.eu: add impermanence config and css patch
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/config/nixos/modules/websites/gomuks.zaphyra.eu.nix b/config/nixos/modules/websites/gomuks.zaphyra.eu.nix
@@ -1,5 +1,6 @@
 {
   povSelf,
+  inputs,
   config,
   pkgs,
   lib,

@@ -32,6 +33,8 @@ in
 
     dns.zones."${cfg.domain}".subdomains."${cfg.subdomain}".CNAME = [ "${config.networking.fqdn}." ];
 
+    modules.filesystem.impermanence.system.dirs = [ "/var/lib/private/gomuks-web" ];
+
     systemd.services.gomuks-web = {
       description = "gomuks-web";
 

@@ -45,13 +48,19 @@ in
 
       serviceConfig = {
         Type = "simple";
-        ExecStart = lib.getExe pkgs.tgc.gomuks-web;
+        ExecStart = lib.getExe (
+          pkgs.tgc.gomuks-web.override {
+            extraPatches = [
+              inputs.self.resources.patches.gomuks-web-css
+            ];
+          }
+        );
 
         DynamicUser = true;
-        User  = "gomuks-web";
+        User = "gomuks-web";
         Group = "gomuks-web";
 
-        StateDirectory   = "gomuks-web";
+        StateDirectory = "gomuks-web";
 
         Restart = "on-failure";
         RestartSec = "30s";