diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-08 16:46:12 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:50 -0700 |
| commit | 98c216f397f9964cc87991c47ed9ad79b75c9c5f (patch) | |
| tree | 0ef2b77e3fc708fc3ae3fd98f6d4d544d2195fbc /snowfall | |
| parent | 00d3797991dc45022909707549029657074bb549 (diff) | |
migration: move cloc to new generator
Diffstat (limited to 'snowfall')
| -rw-r--r-- | snowfall/modules/home/tools/cloc/default.nix | 15 | ||||
| -rw-r--r-- | snowfall/modules/home/tools/default.nix | 7 |
2 files changed, 7 insertions, 15 deletions
diff --git a/snowfall/modules/home/tools/cloc/default.nix b/snowfall/modules/home/tools/cloc/default.nix deleted file mode 100644 index 376bd14..0000000 --- a/snowfall/modules/home/tools/cloc/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ 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 - ]; - }; -} diff --git a/snowfall/modules/home/tools/default.nix b/snowfall/modules/home/tools/default.nix new file mode 100644 index 0000000..dc93cda --- /dev/null +++ b/snowfall/modules/home/tools/default.nix @@ -0,0 +1,7 @@ +{ lib, namespace, ... }: + +with lib; with lib.${namespace}; { + imports = [ + (mkSimpleTool "cloc" {}) + ]; +} |