diff options
Diffstat (limited to 'snowfall/modules/home/tools')
| -rw-r--r-- | snowfall/modules/home/tools/cloc/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/snowfall/modules/home/tools/cloc/default.nix b/snowfall/modules/home/tools/cloc/default.nix new file mode 100644 index 0000000..376bd14 --- /dev/null +++ b/snowfall/modules/home/tools/cloc/default.nix @@ -0,0 +1,15 @@ +{ options, config, lib, pkgs, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.tools.cloc; +in { + options.${namespace}.tools.cloc = with types; { + enable = mkEnableOption "cloc"; + }; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + cloc + ]; + }; +} |