From e0011f16b64f156a498546c276faafab3df13df1 Mon Sep 17 00:00:00 2001 From: Wesley Irvin Date: Sat, 17 Jun 2023 21:04:34 -0400 Subject: [PATCH] Timeshift and tmux Added in support for timeshift and added in cron services with correct entry so that timeshift will take snapshots properly on a schedule. Added in and configured tmux support. Was thinking of using zellij but tmux just integrates so much nicer to nix. --- base-config.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/base-config.nix b/base-config.nix index fea7854..588a8cf 100644 --- a/base-config.nix +++ b/base-config.nix @@ -142,6 +142,14 @@ # Now add the zsh shell to /etc/shells so others can set their shell environment.shells = with pkgs; [ zsh ]; + # Enable tmux support and configure it to our usage + programs.tmux = { + enable = true; + keyMode = "vi"; + shortcut = "s"; + clock24 = true; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; @@ -152,6 +160,12 @@ # List services that you want to enable: + # Enable Vixie cron service + services.cron.enable = true; + services.cron.systemCronJobs = [ + "0 * * * * root timeshift --check --scripted" + ]; + # Enable the OpenSSH daemon. # services.openssh.enable = true;