Add du-dust, and zellij to replace tmux

Reorganise some files
This commit is contained in:
Evie Litherland-Smith 2023-12-16 22:47:32 +00:00
parent b43cb891da
commit 1f331d1352
7 changed files with 30 additions and 60 deletions

View file

@ -25,12 +25,11 @@
homeModules = [ homeModules = [
./home/accounts/default.nix ./home/accounts/default.nix
./home/hyprland/default.nix ./home/hyprland/default.nix
./home/media/default.nix
./home/nyxt/default.nix ./home/nyxt/default.nix
./home/alacritty.nix ./home/alacritty.nix
./home/btop.nix
./home/default.nix ./home/default.nix
./home/emacs.nix ./home/emacs.nix
./home/media.nix
./home/pass.nix ./home/pass.nix
]; ];
stateVersion = "23.05"; stateVersion = "23.05";

View file

@ -1,15 +0,0 @@
{ config, lib, pkgs, ... }:
{
programs.btop = {
enable = true;
settings = {
color_theme = "tokyo-night";
graph_symbol = "braille";
update_ms = 1000;
proc_tree = true;
proc_colors = true;
proc_gradient = true;
};
};
}

View file

@ -1,14 +1,11 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }: {
{
home.packages = with pkgs; [ fd ripgrep dig nitch neofetch ];
stylix.targets = { stylix.targets = {
avizo.enable = true; avizo.enable = true;
fzf.enable = true; fzf.enable = true;
mako.enable = true; mako.enable = true;
rofi.enable = true; rofi.enable = true;
tmux.enable = true;
xresources.enable = true; xresources.enable = true;
zellij.enable = true;
}; };
xdg.configFile = { xdg.configFile = {
"style.css".text = with config.lib.stylix.colors.withHashtag; '' "style.css".text = with config.lib.stylix.colors.withHashtag; ''
@ -33,8 +30,8 @@
}; };
programs = { programs = {
bash.enable = true; bash.enable = true;
nushell.enable = true;
fish.enable = true; fish.enable = true;
bat.enable = true;
zsh.initExtra = '' zsh.initExtra = ''
xdg-query-program () { xdg-query-program () {
FILETYPE=$(xdg-mime query filetype $@) FILETYPE=$(xdg-mime query filetype $@)
@ -43,22 +40,14 @@
} }
rsync-local-config () { rsync-local-config () {
HOST=$1 HOST=$1
for TARGET in bat git emacs/init.el emacs/templates starship.toml; do for TARGET in bat/themes/tokyonight_night.tmTheme git/config starship.toml; do
SOURCE="${config.xdg.configHome}/$TARGET" SOURCE="${config.xdg.configHome}/$TARGET"
TMP_TARGET=/tmp/rsync-local-config TMP_TARGET=/tmp/rsync-local-config
TMP_SOURCE=$TMP_TARGET
NIX_SED="${pkgs.gnused}/bin/sed -i 's|/nix/.*/bin/||g'"
NIX_REPLACE="$NIX_SED $TMP_TARGET"
if [[ -e ${config.xdg.configHome}/$TARGET ]]; then if [[ -e ${config.xdg.configHome}/$TARGET ]]; then
if [[ -d $SOURCE ]]; then ${pkgs.rsync}/bin/rsync -avzL $SOURCE $TMP_TARGET
SOURCE=$SOURCE/ ${pkgs.coreutils}/bin/chmod u+rw -R $TMP_TARGET
TMP_SOURCE=$TMP_SOURCE/ ${pkgs.gnused}/bin/sed -i 's|/nix/.*/bin/||g' $TMP_TARGET
NIX_REPLACE="${pkgs.fd}/bin/fd -g '**' $TMP_TARGET -tfile -x $NIX_SED {};" ${pkgs.rsync}/bin/rsync -avzL --delete $TMP_TARGET $HOST:.config/$TARGET
fi
${pkgs.rsync}/bin/rsync -avzL --exclude=".git*" $SOURCE $TMP_TARGET
${pkgs.coreutils}/bin/chmod u+rw -R $TMP_SOURCE
${pkgs.bash}/bin/sh -c "$NIX_REPLACE"
${pkgs.rsync}/bin/rsync -avzL --delete --exclude=".git*" $TMP_SOURCE $HOST:.config/$TARGET
${pkgs.coreutils}/bin/rm -rf $TMP_SOURCE ${pkgs.coreutils}/bin/rm -rf $TMP_SOURCE
fi fi
done done
@ -78,6 +67,17 @@
set completion-ignore-case On set completion-ignore-case On
''; '';
}; };
btop = {
enable = true;
settings = {
color_theme = "tokyo-night";
graph_symbol = "braille";
update_ms = 1000;
proc_tree = true;
proc_colors = true;
proc_gradient = true;
};
};
direnv = { direnv = {
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
@ -89,7 +89,6 @@
enableBashIntegration = true; enableBashIntegration = true;
enableFishIntegration = true; enableFishIntegration = true;
}; };
bat.enable = true;
git = { git = {
enable = true; enable = true;
package = pkgs.gitFull; package = pkgs.gitFull;
@ -243,28 +242,10 @@
}; };
}; };
}; };
tmux = { zellij = {
enable = true; enable = true;
baseIndex = 1; enableBashIntegration = true;
clock24 = true; enableFishIntegration = true;
keyMode = "emacs";
mouse = true;
secureSocket = true;
sensibleOnTop = true;
shortcut = "Space";
terminal = "xterm-256color";
plugins = with pkgs.tmuxPlugins; [ yank tmux-fzf ];
extraConfig = ''
# https://old.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
set -ga terminal-overrides ",*256col*,alacritty:Tc"
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
set-environment -g COLORTERM "truecolor"
# easy-to-remember split pane commands
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
'';
}; };
}; };
} }

View file

@ -1 +1 @@
{ ... }: { imports = [ ./minecraft.nix ./marathon.nix ]; } { ... }: { imports = [ ./obs.nix ./minecraft.nix ./marathon.nix ]; }

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { pkgs, ... }:
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main"; let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
in { in {
networking = { networking = {
@ -13,6 +13,11 @@ in {
gitFull gitFull
zip zip
unzip unzip
fd
ripgrep
dig
du-dust
nitch
]; ];
localBinInPath = true; localBinInPath = true;
}; };