aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/tools/cloc/default.nix
blob: 376bd145b867b6eaec26b45d06d650777e38670d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
    ];
  };
}