mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-02-07 11:43:06 +01:00
17 lines
355 B
Nix
17 lines
355 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
namespace,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
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 ];
|
|
};
|
|
}
|