From 8af06b270310d546495df07a7819aee48e96eeb1 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 22 May 2021 14:49:06 +0200 Subject: [PATCH] Alacritty --- home.nix | 2 ++ modules/alacritty.nix | 4 ++-- modules/ssh.nix | 45 +++++++++++++++++++++++++++++++++++++++++++ modules/tmux.nix | 21 ++++++++++++++++++++ 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 modules/ssh.nix create mode 100644 modules/tmux.nix diff --git a/home.nix b/home.nix index cc2f7a6..1a088f6 100644 --- a/home.nix +++ b/home.nix @@ -55,8 +55,10 @@ in { ./modules/qogir_theme.nix ./modules/rofi.nix ./modules/screen_locker.nix + ./modules/ssh.nix ./modules/sxhkd.nix ./modules/terminator.nix + ./modules/tmux.nix ]; programs = { diff --git a/modules/alacritty.nix b/modules/alacritty.nix index 2fe3f5c..a894bf3 100644 --- a/modules/alacritty.nix +++ b/modules/alacritty.nix @@ -48,7 +48,7 @@ in { }; }; normal = { - black = nord.n1; + black = nord.n0; red = nord.n11; green = nord.n14; yellow = nord.n13; @@ -75,7 +75,7 @@ in { blue = "#68809a"; magenta = "#8c738c"; cyan = "#6d96a5"; - white = "#aeb3bb"; + white = nord.n4; }; }; }; diff --git a/modules/ssh.nix b/modules/ssh.nix new file mode 100644 index 0000000..436ad48 --- /dev/null +++ b/modules/ssh.nix @@ -0,0 +1,45 @@ +{ + programs.ssh = { + enable = true; + compression = true; + matchBlocks = { + "gitlab.com" = { + hostname = "gitlab.com"; + identityFile = "~/.ssh/gitlab"; + identitiesOnly = true; + }; + "github.com" = { + hostname = "github.com"; + identityFile = "~/.ssh/github"; + identitiesOnly = true; + }; + "bitbucket.com" = { + hostname = "bitbucket.com"; + identityFile = "~/.ssh/bitbucket"; + identitiesOnly = true; + }; + "aur.archlinux.org" = { + hostname = "aur.archlinux.org"; + identityFile = "~/.ssh/aur"; + identitiesOnly = true; + }; + "heroku.com" = { + hostname = "heroku.com"; + identityFile = "~/.ssh/heroku"; + identitiesOnly = true; + }; + "ngrok.io" = { + identityFile = "~/.ssh/local"; + identitiesOnly = true; + }; + "172.27.108.?" = { + hostname = "172.27.108.*"; + identityFile = "~/.ssh/local"; + identitiesOnly = true; + }; + "*" = { + identityFile = "~/.ssh/id_ed25519"; + }; + }; + }; +} diff --git a/modules/tmux.nix b/modules/tmux.nix new file mode 100644 index 0000000..979ac5b --- /dev/null +++ b/modules/tmux.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + programs.tmux = { + enable = true; + clock24 = true; + escapeTime = 25; + plugins = with pkgs; [ + tmuxPlugins.continuum + tmuxPlugins.prefix-highlight + tmuxPlugins.nord + ]; + extraConfig = '' + set -g mouse on + ''; + + # set -g default-terminal "screen" + # set -ga terminal-overrides ",col:Tc" + + }; +} +