Add tealdeer module

This commit is contained in:
2022-09-04 11:15:30 -07:00
parent f9e7cbc2cb
commit a1f1b21e34
3 changed files with 19 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
./modules/git.nix
./modules/direnv.nix
./modules/emacs.nix
./modules/tealdeer.nix
./modules/work.nix
./modules/dotfiles.nix
];

13
nix/modules/tealdeer.nix Normal file
View File

@@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
tealdeer
];
home.activation = {
updateTLDRCache = lib.hm.dag.entryAfter ["writeBoundary"] ''
$DRY_RUN_CMD ${pkgs.tealdeer}/bin/tldr -u
'';
};
}