Add du-dust, and zellij to replace tmux
Reorganise some files
This commit is contained in:
parent
b43cb891da
commit
1f331d1352
|
@ -25,12 +25,11 @@
|
|||
homeModules = [
|
||||
./home/accounts/default.nix
|
||||
./home/hyprland/default.nix
|
||||
./home/media/default.nix
|
||||
./home/nyxt/default.nix
|
||||
./home/alacritty.nix
|
||||
./home/btop.nix
|
||||
./home/default.nix
|
||||
./home/emacs.nix
|
||||
./home/media.nix
|
||||
./home/pass.nix
|
||||
];
|
||||
stateVersion = "23.05";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,14 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [ fd ripgrep dig nitch neofetch ];
|
||||
{ config, lib, pkgs, ... }: {
|
||||
stylix.targets = {
|
||||
avizo.enable = true;
|
||||
fzf.enable = true;
|
||||
mako.enable = true;
|
||||
rofi.enable = true;
|
||||
tmux.enable = true;
|
||||
xresources.enable = true;
|
||||
zellij.enable = true;
|
||||
};
|
||||
xdg.configFile = {
|
||||
"style.css".text = with config.lib.stylix.colors.withHashtag; ''
|
||||
|
@ -33,8 +30,8 @@
|
|||
};
|
||||
programs = {
|
||||
bash.enable = true;
|
||||
nushell.enable = true;
|
||||
fish.enable = true;
|
||||
bat.enable = true;
|
||||
zsh.initExtra = ''
|
||||
xdg-query-program () {
|
||||
FILETYPE=$(xdg-mime query filetype $@)
|
||||
|
@ -43,22 +40,14 @@
|
|||
}
|
||||
rsync-local-config () {
|
||||
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"
|
||||
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 [[ -d $SOURCE ]]; then
|
||||
SOURCE=$SOURCE/
|
||||
TMP_SOURCE=$TMP_SOURCE/
|
||||
NIX_REPLACE="${pkgs.fd}/bin/fd -g '**' $TMP_TARGET -tfile -x $NIX_SED {};"
|
||||
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.rsync}/bin/rsync -avzL $SOURCE $TMP_TARGET
|
||||
${pkgs.coreutils}/bin/chmod u+rw -R $TMP_TARGET
|
||||
${pkgs.gnused}/bin/sed -i 's|/nix/.*/bin/||g' $TMP_TARGET
|
||||
${pkgs.rsync}/bin/rsync -avzL --delete $TMP_TARGET $HOST:.config/$TARGET
|
||||
${pkgs.coreutils}/bin/rm -rf $TMP_SOURCE
|
||||
fi
|
||||
done
|
||||
|
@ -78,6 +67,17 @@
|
|||
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 = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
|
@ -89,7 +89,6 @@
|
|||
enableBashIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
bat.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
package = pkgs.gitFull;
|
||||
|
@ -243,28 +242,10 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
tmux = {
|
||||
zellij = {
|
||||
enable = true;
|
||||
baseIndex = 1;
|
||||
clock24 = 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}"
|
||||
'';
|
||||
enableBashIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{ ... }: { imports = [ ./minecraft.nix ./marathon.nix ]; }
|
||||
{ ... }: { imports = [ ./obs.nix ./minecraft.nix ./marathon.nix ]; }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
||||
in {
|
||||
networking = {
|
||||
|
@ -13,6 +13,11 @@ in {
|
|||
gitFull
|
||||
zip
|
||||
unzip
|
||||
fd
|
||||
ripgrep
|
||||
dig
|
||||
du-dust
|
||||
nitch
|
||||
];
|
||||
localBinInPath = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue