Skip to content

Commit

Permalink
cachix-agent: check for nix.enable
Browse files Browse the repository at this point in the history
(cherry picked from commit 42e16f3)
  • Loading branch information
emilazy committed Feb 14, 2025
1 parent 4884d2a commit a66e5da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/services/cachix-agent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ in {
};

config = mkIf cfg.enable {
# TODO: Upstream this to NixOS.
assertions = [
{
assertion = config.nix.enable;
message = ''`services.cachix-agent.enable` requires `nix.enable`'';
}
];

launchd.daemons.cachix-agent = {
script = ''
. ${cfg.credentialsFile}
Expand Down

0 comments on commit a66e5da

Please sign in to comment.