From ef3a9a84f2b4df1724eae902476db9e398ab8eff Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Sun, 29 Nov 2020 20:50:23 -0500 Subject: [PATCH] Add proper documentation for Nixpkgs --- INSTALL.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index b28c7f3..afbcff3 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -6,6 +6,34 @@ If you are a tpm user, you can install the theme and keep up to date by adding t set -g @plugin 'dracula/tmux' +### Install with [Nix](https://nixos.org) + +If you're using [home-manager](https://github.com/nix-community/home-manager), an example config would look similar to this: +Then run `home-manager switch`, the `Activating theme` section doesn't apply here. + +```nix +programs.tmux = { + enable = true; + clock24 = true; + plugins = with pkgs.tmuxPlugins; [ + sensible + yank + { + plugin = dracula; + extraConfig = '' + set -g @dracula-show-battery false + set -g @dracula-show-powerline true + set -g @dracula-refresh-rate 10 + ''; + } + ]; + + extraConfig = '' + set -g mouse on + ''; +}; +``` + #### Activating theme 1. Make sure `run -b '~/.tmux/plugins/tpm/tpm'` is at the bottom of your .tmux.conf