Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Oct 19, 2024
1 parent 636ccbb commit d45d875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
};
conduit = {
url = "github:girlbossceo/conduwuit";
inputs.nixpkgs.follows = "nixpkgs";
# inputs.nixpkgs.follows = "nixpkgs";
};
nyx = {
# url = "/home/elen/Src/nyx";
Expand Down
5 changes: 5 additions & 0 deletions repack/caddy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 = [
Expand Down

0 comments on commit d45d875

Please sign in to comment.