mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 13:22:04 +00:00
27 lines
428 B
Nix
27 lines
428 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.nmasur.presets.programs.doas;
|
||
|
in
|
||
|
|
||
|
{
|
||
|
|
||
|
options.nmasur.presets.programs.doas.enable = lib.mkEnableOption "doas sudo alternative";
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
|
||
|
# Alias sudo to doas for convenience
|
||
|
fish.shellAliases = {
|
||
|
sudo = "doas";
|
||
|
};
|
||
|
|
||
|
# Disable overriding our sudo alias with a TERMINFO alias
|
||
|
kitty.settings.shell_integration = "no-sudo";
|
||
|
};
|
||
|
|
||
|
}
|