reverse-proxy: update caddy modules
1 file changed, 16 insertions(+), 12 deletions(-)
changed files
M system/roles/server.nix → system/roles/server.nix
@@ -40,19 +40,23 @@ services.journald.extraConfig = '' MaxRetentionSec=1 month ''; - systemd.services.update-home-manager = { - startAt = "weekly"; - path = with pkgs; [ - openssh - nix - config.programs.git.package - ]; - serviceConfig = rec { - Type = "oneshot"; - User = "alin"; - ExecStart = "${lib.getExe pkgs.nh} home switch --file ${config.systemd.services.update-nixfiles.serviceConfig.WorkingDirectory} homeConfigurations.${User}@%H --no-nom"; + systemd.services.update-home-manager = + let + nixfiles = lib.removePrefix "-" config.systemd.services.update-nixfiles.serviceConfig.WorkingDirectory; + in + { + startAt = "weekly"; + path = with pkgs; [ + openssh + nix + config.programs.git.package + ]; + serviceConfig = rec { + Type = "oneshot"; + User = "alin"; + ExecStart = "${lib.getExe pkgs.nh} home switch --file ${nixfiles} homeConfigurations.${User}@%H --no-nom"; + }; }; - }; services.syncthing = { dataDir = "/srv/syncthing";