This commit is contained in:
iFargle 2023-09-01 17:22:07 +09:00
parent 55f1b35d93
commit bfad276eb5

View file

@ -9,7 +9,7 @@
# https://github.com/justjanne/powerline-go#customization # https://github.com/justjanne/powerline-go#customization
settings = { settings = {
hostname-only-if-ssh = true; hostname-only-if-ssh = true;
cwd-max-depth = 2; cwd-max-depth = 1;
condensed = true; condensed = true;
theme = "gruvbox"; theme = "gruvbox";
}; };
@ -24,8 +24,6 @@
"git" "git"
"docker" "docker"
"exit" "exit"
];
modulesRight = [
"root" "root"
]; ];
}; };
@ -34,11 +32,13 @@
bash = { bash = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
initExtra = ''
GPG_TTY=$(tty)
'';
sessionVariables = { sessionVariables = {
# Set the GTK Theme # Set the GTK Theme
# GTK_THEME = "Gruvbox-Dark-BL"; # GTK_THEME = "Gruvbox-Dark-BL";
XDG_DATA_HOME = "$HOME/.local/share"; XDG_DATA_HOME = "$HOME/.local/share";
GPG_TTY="$(tty)";
# Disable askpass for cli auth: # Disable askpass for cli auth:
SSH_ASKPASS = ""; SSH_ASKPASS = "";
}; };
@ -46,9 +46,11 @@
sops-edit() { sops-edit() {
nix-shell -p sops --run "sops $1" nix-shell -p sops --run "sops $1"
} }
sops-update() { sops-update() {
nix-shell -p sops --run "sops updatekeys $1" nix-shell -p sops --run "sops updatekeys $1"
} }
nix-clean-all() { nix-clean-all() {
sudo nix-channel --update sudo nix-channel --update
sudo nix-env -u --always sudo nix-env -u --always
@ -56,7 +58,6 @@
} }
''; '';
shellAliases = { shellAliases = {
# nVidia prime selector alias: # nVidia prime selector alias:
prime-select = "nvidia-offload"; prime-select = "nvidia-offload";