run0 broken, need sudo

This commit is contained in:
Gerg-L 2024-12-07 13:09:14 -05:00
parent efd960026c
commit 1cfe7ab312
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -18,6 +18,7 @@
MANPAGER = "page -t man"; MANPAGER = "page -t man";
}; };
shellAliases = { shellAliases = {
sudo = "sudo ";
#make run0 use aliases #make run0 use aliases
run0 = "run0 --background='' "; run0 = "run0 --background='' ";
s = "run0"; s = "run0";
@ -44,10 +45,13 @@
interactiveShellInit = "fetch-rs"; interactiveShellInit = "fetch-rs";
}; };
#begone sudo security.sudo = {
security = { execWheelOnly = true;
#sudo.enable = lib.mkForce false; extraConfig = ''
#wrappers.su.setuid = lib.mkForce false; Defaults timestamp_timeout=1
Defaults env_keep += "EDITOR VISUAL PAGER SYSTEMD_PAGERSECURE MANPAGER"
Defaults lecture = never
'';
}; };
#zsh stuff #zsh stuff
@ -113,7 +117,7 @@
format = '' format = ''
$cmd_duration$git_metrics$git_state$git_branch $cmd_duration$git_metrics$git_state$git_branch
$status$directory$character''; $status$directory$character'';
right_format = "$nix_shell\${custom.direnv} $time"; right_format = "$sudo$nix_shell\${custom.direnv} $time";
continuation_prompt = " "; continuation_prompt = " ";
character = { character = {
success_symbol = "[\\$](#9ece6a bold)"; success_symbol = "[\\$](#9ece6a bold)";
@ -153,6 +157,10 @@
time_format = "%I:%M %p"; time_format = "%I:%M %p";
disabled = false; disabled = false;
}; };
sudo = {
format = "[ ](#7aa2f7)";
disabled = false;
};
}; };
}; };
}; };