mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 02:13:06 +01:00
18 lines
353 B
Nix
18 lines
353 B
Nix
|
{
|
||
|
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 ];
|
||
|
};
|
||
|
}
|
||
|
|