Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cachix systemd service for static-haskell-nix CI builder
{
systemd.services.static-haskell-nix-cachix-push-daemon = {
requiredBy = [ "multi-user.target" ];
after = [
"network-online.target"
];
environment.HOME = "/root";
path = [ pkgs.nix ]; # cachix shells out to nix binaries
serviceConfig = {
ExecStart = "${pkgs.cachix}/bin/cachix push static-haskell-nix --watch-store";
Restart = "always";
RestartSec = 5;
TimeoutSec = 10;
};
unitConfig = {
StartLimitIntervalSec = 0; # ensure Restart=always is always honoured
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.