{ config, pkgs, ... }: { home = { homeDirectory = "/root"; username = "root"; }; imports = [ ./common.nix ]; programs = { bash = { initExtra = '' awg-gen() { PRIVATE=$(awg genkey) echo "private: $PRIVATE" printf "public: " echo $PRIVATE | awg pubkey printf "preshared: " awg genpsk } session() { systemd-run -tGM bogale@ --user --wait $SHELL } ''; sessionVariables.SOPS_AGE_KEY_FILE = "/var/lib/sops-nix/key.txt"; }; tmux = { clock24 = true; enable = true; escapeTime = 0; extraConfig = '' bind f send-prefix bind h select-pane -L bind i split-window -v bind j select-pane -D bind k select-pane -U bind l select-pane -R bind u split-window -h set -g mouse on set -g prefix M-f set -s set-clipboard external set-option -a terminal-features "xterm-256color:RGB" set-option -g focus-events on unbind C-b ''; keyMode = "vi"; terminal = "screen-256color"; }; }; }