From c9becd28bf4c7acd30340512eb1cb1da105f9da7 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Fri, 7 Feb 2025 18:33:14 -0800 Subject: migration: cloc --- snowfall/modules/home/suites/dev/default.nix | 4 ++++ snowfall/modules/home/tools/cloc/default.nix | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 snowfall/modules/home/tools/cloc/default.nix (limited to 'snowfall/modules/home') diff --git a/snowfall/modules/home/suites/dev/default.nix b/snowfall/modules/home/suites/dev/default.nix index 2884897..fd58bce 100644 --- a/snowfall/modules/home/suites/dev/default.nix +++ b/snowfall/modules/home/suites/dev/default.nix @@ -13,6 +13,10 @@ in { apps = { vscode.enable = desktop.enable; }; + + tools = { + cloc.enable = true; + }; }; }; } 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 + ]; + }; +} -- cgit v1.2.3