commit de46741e3e711eeaf10552c3a57ff4279386e388
parent 4aa5d360f93cdb8c588ad75da7978322b2d4bda0
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 24 Aug 2025 19:19:39 +0200
parent 4aa5d360f93cdb8c588ad75da7978322b2d4bda0
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";