From 4beca66d225e4a0fea6bf175fa912d824daab462 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 22 Mar 2024 11:15:18 -0400 Subject: [PATCH] home-manager: moved shell utilities to shell.nix; added alacritty --- home/aly.nix | 22 ++++++++++--------- home/common.nix | 16 -------------- home/shell.nix | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 26 deletions(-) create mode 100644 home/shell.nix diff --git a/home/aly.nix b/home/aly.nix index 8023c9d6..a3bc6b19 100644 --- a/home/aly.nix +++ b/home/aly.nix @@ -3,6 +3,7 @@ { imports = [ ./common.nix + ./shell.nix ]; # TODO please change the username & home directory to your own @@ -26,16 +27,17 @@ wget ]; - programs.eza = { + programs.alacritty = { enable = true; - git = true; - extraOptions = [ - "--group-directories-first" - "--header" - ]; + settings = { + selection.save_to_clipboard = true; + window = { + # blur = true; + decorations = "None"; + dynamic_padding = true; + opacity = 0.8; + startup_mode = "Maximized"; + }; + }; }; - - programs.fzf.enable = true; - programs.nnn.enable = true; - programs.tmux.enable = true; } diff --git a/home/common.nix b/home/common.nix index 2352875c..3d38bbe9 100644 --- a/home/common.nix +++ b/home/common.nix @@ -1,22 +1,6 @@ { config, pkgs, ... }: { - programs.bash = { - enable = true; - enableCompletion = true; - initExtra = - '' - export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ " - - ''; - }; - programs.neovim = { - enable = true; - viAlias = true; - vimAlias = true; - defaultEditor = true; - }; - dconf.enable = true; dconf.settings = { "org/gnome/desktop/datetime".automatic-timezone = true; diff --git a/home/shell.nix b/home/shell.nix new file mode 100644 index 00000000..646c087a --- /dev/null +++ b/home/shell.nix @@ -0,0 +1,56 @@ +{ config, pkgs, ... }: + +{ + programs.bash = { + enable = true; + enableCompletion = true; + initExtra = '' + export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ " + ''; + }; + + programs.emacs = { + enable = true; + package = pkgs.emacs-nox; + extraConfig = '' + (setq-default indent-tabs-mode nil) + (setq-default tab-width 4) + (setq indent-line-function 'insert-tab) + (xterm-mouse-mode 1) + ''; + }; + + programs.eza = { + enable = true; + git = true; + extraOptions = [ + "--group-directories-first" + "--header" + ]; + }; + + programs.fzf = { + enable = true; + tmux.enableShellIntegration = true; + }; + + programs.neovim = { + enable = true; + viAlias = true; + vimAlias = true; + defaultEditor = true; + }; + + programs.nnn.enable = true; + + programs.tmux = { + enable = true; + mouse = true; + newSession = true; + terminal = "tmux-256color"; + extraConfig = '' + set-option -g status-bg blue + set-option -g pane-active-border-style fg=blue + ''; + }; +} \ No newline at end of file