all repos — dotfiles @ b014e77ebaf6a6fc8b4e8850e59379a8be302ca3

my *nix dotfiles

nix: use networkmanager, fix copy/paste in tmux
Anirudh Oppiliappan x@icyphox.sh
Thu, 17 Mar 2022 12:23:09 +0530
commit

b014e77ebaf6a6fc8b4e8850e59379a8be302ca3

parent

7370c9c8a57c265e1ff7e0810f4ed72c1631b47c

2 files changed, 10 insertions(+), 2 deletions(-)

jump to
M nix/hosts/lapis/configuration.nixnix/hosts/lapis/configuration.nix

@@ -12,6 +12,12 @@ boot.kernel.sysctl."net.ipv4.ip_forward" = 1;

networking = { nameservers = [ "1.1.1.1" "1.0.0.1" ]; + networkmanager = { + enable = true; + insertNameservers = [ "1.1.1.1" "1.0.0.1" ]; + wifi.backend = "iwd"; + }; + dhcpcd.enable = false; hostName = "lapis"; useDHCP = false; interfaces.wlan0.useDHCP = true;
M nix/programs/tmux.nixnix/programs/tmux.nix

@@ -20,6 +20,8 @@ unbind-key C-b

bind-key C-q send-prefix set -g update-environment "KEYBOARD_LAYOUT" + setw -g mode-keys vi + bind r source-file ~/.config/tmux/tmux.conf set-option -g default-terminal xterm-256color-italic

@@ -51,9 +53,9 @@ bind-key ) swap-window -t +2

bind-key ( swap-window -t -1 unbind -T copy-mode MouseDragEnd1Pane - bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard" + bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -sel c" bind-key -T copy-mode-vi v send-keys -X begin-selection - bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c " + bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -sel c" bind-key -T copy-mode-vi r send-keys -X rectangle-toggle bind P paste-buffer