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";
@ -64,7 +65,7 @@
emacs = "emacs -nw"; emacs = "emacs -nw";
# docker # docker
d = "docker"; d = "docker";
dc = "docker-compose"; dc = "docker-compose";
de = "docker exec -it"; de = "docker exec -it";
@ -77,25 +78,25 @@
# git # git
g = "git"; g = "git";
ga = "git add -A"; ga = "git add -A";
gb = "git branch"; gb = "git branch";
gc = "git commit"; gc = "git commit";
gca = "git commit -a"; gca = "git commit -a";
gco = "git checkout"; gco = "git checkout";
gd = "git diff"; gd = "git diff";
gp = "git pull --prune"; gp = "git pull --prune";
gpu = "git push origin HEAD"; gpu = "git push origin HEAD";
gs = "git status -sb"; gs = "git status -sb";
# time / date # time / date
tdate = "date +%Y.%m.%d..%H.%M"; tdate = "date +%Y.%m.%d..%H.%M";
ttime = "date +%H.%M"; ttime = "date +%H.%M";
ddate = "date +%Y.%m.%d"; ddate = "date +%Y.%m.%d";
dday = "date +%A"; dday = "date +%A";
# nixos-rebuild # nixos-rebuild
ns = "nix-shell -p"; ns = "nix-shell -p";
nr = "sudo nixos-rebuild"; nr = "sudo nixos-rebuild";
nrs = "sudo nixos-rebuild --upgrade switch"; nrs = "sudo nixos-rebuild --upgrade switch";
nrt = "sudo nixos-rebuild test"; nrt = "sudo nixos-rebuild test";
nrb = "sudo nixos-rebuild build"; nrb = "sudo nixos-rebuild build";