mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Fix doas
This commit is contained in:
parent
a3f4c3d6a6
commit
bc344d4b5a
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
|
|
@ -8,6 +9,8 @@
|
|||
config = lib.mkIf config.myConfig.doas.enable {
|
||||
security.sudo.enable = false;
|
||||
|
||||
environment.systemPackages = [pkgs.git];
|
||||
|
||||
security.doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
|
|
@ -20,6 +23,6 @@
|
|||
};
|
||||
|
||||
environment.shellAliases.sudo = "doas";
|
||||
programs.bash.interactiveShellInit = lib.mkIf config.myConfig.shell.bash.enable "complete -F _command doas";
|
||||
programs.bash.interactiveShellInit = "complete -F _command doas";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue