feat: add cachix configuration

This commit is contained in:
Jo 2024-12-23 18:30:07 +01:00
parent 14135dfb9e
commit ad97764694
4 changed files with 63 additions and 42 deletions

View file

@ -0,0 +1,17 @@
{
lib,
pkgs,
namespace,
config,
...
}: with lib; with lib.${namespace};
let
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 ];
};
}