mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Remove the doas module
This commit is contained in:
parent
541febf747
commit
759979860f
2 changed files with 0 additions and 29 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue