puzzlevision/modules/nixos/tools/cachix/default.nix

18 lines
355 B
Nix
Raw Permalink Normal View History

2024-12-23 18:30:07 +01:00
{
lib,
pkgs,
namespace,
config,
...
}:
2024-12-23 18:30:07 +01:00
let
inherit (lib) mkEnableOption mkIf;
2024-12-23 18:30:07 +01:00
cfg = config.${namespace}.tools.cachix;
in {
options.${namespace}.tools.cachix = { enable = mkEnableOption "Enable the cachix binary cache service on your system."; };
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ cachix ];
};
}