diff --git a/home/home.nix b/home/home.nix index bfca7ae..bc68c18 100644 --- a/home/home.nix +++ b/home/home.nix @@ -19,7 +19,7 @@ in { ./programs/less.nix ./programs/neovim.nix ./programs/nix-index - ./programs/tealdeer.nix + ./programs/tealdeer ./programs/tmux.nix ./programs/zsh diff --git a/home/programs/tealdeer.nix b/home/programs/tealdeer/auto-update-tldr-db.nix similarity index 59% rename from home/programs/tealdeer.nix rename to home/programs/tealdeer/auto-update-tldr-db.nix index 0d3b1dc..2882c82 100644 --- a/home/programs/tealdeer.nix +++ b/home/programs/tealdeer/auto-update-tldr-db.nix @@ -1,10 +1,8 @@ { pkgs, lib, ... }: { - programs.tealdeer.enable = true; - - systemd.user.services.tealdeer-refresh = { + systemd.user.services.update-tldr-db = { Unit = { - Description = "Refresh tealdeer contents"; + Description = "Update tealdeer database"; }; Service = { @@ -15,13 +13,13 @@ }; }; - systemd.user.timers.tealdeer-refresh = { + systemd.user.timers.update-tldr-db = { Unit = { - Description = "Refresh tealdeer contents"; + Description = "Update tealdeer database"; }; Timer = { - Unit = "tealdeer-refresh.service"; + Unit = "update-tldr-db.service"; OnCalendar = "daily"; Persistent = true; }; diff --git a/home/programs/tealdeer/default.nix b/home/programs/tealdeer/default.nix new file mode 100644 index 0000000..e0b0314 --- /dev/null +++ b/home/programs/tealdeer/default.nix @@ -0,0 +1,8 @@ +{ pkgs, lib, ... }: +{ + imports = [ + ./auto-update-tldr-db.nix + ]; + + programs.tealdeer.enable = true; +}