From d45d875c814faea6c4b7ec78fe3a68b2069336e1 Mon Sep 17 00:00:00 2001 From: oluceps Date: Sat, 19 Oct 2024 23:23:22 +0800 Subject: [PATCH] + --- flake.nix | 2 +- repack/caddy.nix | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d9154dc3..50228014 100755 --- a/flake.nix +++ b/flake.nix @@ -207,7 +207,7 @@ }; conduit = { url = "github:girlbossceo/conduwuit"; - inputs.nixpkgs.follows = "nixpkgs"; + # inputs.nixpkgs.follows = "nixpkgs"; }; nyx = { # url = "/home/elen/Src/nyx"; diff --git a/repack/caddy.nix b/repack/caddy.nix index 7ddc6b0d..a1982f5e 100644 --- a/repack/caddy.nix +++ b/repack/caddy.nix @@ -90,6 +90,9 @@ in systemd.services.caddy = { preStart = "cp -f /etc/caddy/config.json /var/lib/caddy/backup.json"; + unitConfig = { + StartLimitIntervalSec = 0; + }; serviceConfig = let caddyBin = "${cfg.package}/bin/caddy"; @@ -103,6 +106,8 @@ in StateDirectory = "caddy"; AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ]; Environment = [ "XDG_DATA_HOME=%S" ]; + Restart = "always"; + RestartSec = 1; }; wantedBy = [ "multi-user.target" ]; after = [