Remove the doas module

This commit is contained in:
SebastianStork 2024-04-21 18:56:35 +02:00
parent 541febf747
commit 759979860f
2 changed files with 0 additions and 29 deletions

View file

@ -3,7 +3,6 @@
./flatpak.nix ./flatpak.nix
./vm.nix ./vm.nix
./wlan.nix ./wlan.nix
./doas.nix
./vpn.nix ./vpn.nix
./comma.nix ./comma.nix
./auto-gc.nix ./auto-gc.nix

View file

@ -1,28 +0,0 @@
{
config,
pkgs,
lib,
...
}: {
options.myConfig.doas.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.doas.enable {
security.sudo.enable = false;
environment.systemPackages = [pkgs.git];
security.doas = {
enable = true;
extraRules = [
{
groups = ["wheel"];
keepEnv = true;
persist = true;
}
];
};
environment.shellAliases.sudo = "doas";
programs.bash.interactiveShellInit = "complete -F _command doas";
};
}