From 74191baf37367fbfd147188e07079d02c433850b Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sat, 4 Nov 2023 19:38:35 +0100 Subject: [PATCH] Add `tealdeer` --- home/features/cli/default.nix | 2 +- home/features/cli/tealdeer.nix | 14 ++++++++++++++ home/features/persistence.nix | 5 ----- 3 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 home/features/cli/tealdeer.nix diff --git a/home/features/cli/default.nix b/home/features/cli/default.nix index 6f6706b..757bac5 100644 --- a/home/features/cli/default.nix +++ b/home/features/cli/default.nix @@ -7,6 +7,7 @@ ./git.nix ./starship.nix ./direnv.nix + ./tealdeer.nix ./fish ]; @@ -29,7 +30,6 @@ neofetch # Display system information tokei # Useless but fun line of code counter (sloc alternative) bottom # System monitor - tldr # Example based cli docs inputs.agenix.packages.${pkgs.system}.agenix # Secret encryption inputs.deploy-rs.packages.${pkgs.system}.default # Deployment ]; diff --git a/home/features/cli/tealdeer.nix b/home/features/cli/tealdeer.nix new file mode 100644 index 0000000..f93ed11 --- /dev/null +++ b/home/features/cli/tealdeer.nix @@ -0,0 +1,14 @@ +# Example based cli docs +# https://dbrgn.github.io/tealdeer/ +{ config, pkgs, ... }: { + home.packages = [ pkgs.tealdeer ]; + + xdg.configFile."tealdeer/config.toml".text = '' + [updates] + auto_update = true + ''; + + satellite.persistence.at.cache.apps.tealdeer.directories = [ + "${config.xdg.cacheHome}/tealdeer" # page cache + ]; +} diff --git a/home/features/persistence.nix b/home/features/persistence.nix index 21ff062..e0848f3 100644 --- a/home/features/persistence.nix +++ b/home/features/persistence.nix @@ -96,9 +96,4 @@ # "${config.xdg.configHome}/syncthing" # Syncthing config data # ]; # # }}} - # {{{ Tldr - satellite.persistence.at.cache.apps.tldr.directories = [ - "${config.home.homeDirectory}/.tldrc" # tldr cache - ]; - # }}} }