aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/tools/cloc
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-07 18:33:14 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:47 -0700
commitc9becd28bf4c7acd30340512eb1cb1da105f9da7 (patch)
tree1ef776a205a2d1e85ccf2c351354bf3e95b697aa /snowfall/modules/home/tools/cloc
parentfe3afdd7fbbb64d687ac728843543e28ab1ff1fd (diff)
migration: cloc
Diffstat (limited to 'snowfall/modules/home/tools/cloc')
-rw-r--r--snowfall/modules/home/tools/cloc/default.nix15
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
+ ];
+ };
+}