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

@@ -29,6 +29,11 @@ ctrl+shift+arrows
** aliases/scripts for upgrade/maintenance ** aliases/scripts for upgrade/maintenance
** docker ctrl-p fix ** docker ctrl-p fix
NixOS only, needs to be done at system level because user docker config.json may include auth information and therefore can't be Nix-managed NixOS only, needs to be done at system level because user docker config.json may include auth information and therefore can't be Nix-managed
** home manager activation scripts
https://rycee.gitlab.io/home-manager/options.html#opt-home.activation
*** build caches
tldr -u
* Linux * Linux
** Advanced key remapping ** Advanced key remapping
*** interception-tools *** interception-tools

View File

@@ -33,6 +33,7 @@
./modules/git.nix ./modules/git.nix
./modules/direnv.nix ./modules/direnv.nix
./modules/emacs.nix ./modules/emacs.nix
./modules/tealdeer.nix
./modules/work.nix ./modules/work.nix
./modules/dotfiles.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
'';
};
}