dotfiles/nix-conf/home/includes/linux-server.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2022-09-10 14:51:06 +00:00
{ config, pkgs, ... }:
{
2022-10-22 13:37:23 +00:00
imports = [
./common.nix
];
2022-09-10 14:51:06 +00:00
home.packages = with pkgs; [
emacs-nox
irssi
2022-10-22 13:37:23 +00:00
msmtp
neomutt
2022-11-01 11:57:27 +00:00
restic
2022-09-10 14:51:06 +00:00
];
2022-11-04 16:19:34 +00:00
services.gpg-agent = {
enable = true;
pinentryFlavor = "curses";
2022-11-08 12:03:33 +00:00
defaultCacheTtl = 34560000;
maxCacheTtl = 34560000;
2022-11-04 16:19:34 +00:00
};
2022-10-22 15:18:27 +00:00
programs.tmux = {
enable = true;
terminal = "screen-256color";
2022-11-07 21:11:09 +00:00
prefix = "C-a";
2022-10-22 15:18:27 +00:00
#tmuxp.enable = true;
extraConfig = ''
2022-11-11 07:41:01 +00:00
unbind-key R
bind-key R run-shell ' \
2022-11-09 20:54:27 +00:00
tmux source-file ~/.config/tmux/tmux.conf > /dev/null; \
tmux display-message "Sourced .config/tmux/tmux.conf!"'
2022-11-07 21:20:49 +00:00
bind-key C-a last-window
bind-key a send-prefix
2022-10-22 15:18:27 +00:00
2022-11-07 21:20:49 +00:00
set -g status-bg black
set -g status-fg white
2022-10-22 15:18:27 +00:00
2022-11-07 21:20:49 +00:00
setw -g window-status-current-format "#[fg=red,bold][#[fg=default]#F#I:#W#F#[fg=red,bold]]#[default]"
setw -g window-status-format "#[fg=green]{#[default]#F#I:#W#F#[fg=green]}#[default]"
2022-10-22 15:18:27 +00:00
2022-11-07 21:20:49 +00:00
set -g status-left-length 17
set -g status-interval 1
set -g status-left "#[fg=yellow]#h#[default]"
2022-11-24 10:00:38 +00:00
set -g status-right "#[fg=blue]%a%d/%m#[fg=yellow]%H:%M:%S"
2022-10-22 15:18:27 +00:00
'';
};
2022-11-14 20:26:04 +00:00
programs.vim.packageConfigurable = pkgs.vim;
2022-09-10 14:51:06 +00:00
}