Bunch of stuff to get this ready for a two user system
This commit is contained in:
parent
2144d9ef61
commit
7eb3b1a0fa
119 changed files with 214 additions and 214 deletions
18
system/settings/security/doas/default.nix
Normal file
18
system/settings/security/doas/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
security = {
|
||||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{ # Give wheel root access
|
||||
groups = [ "wheel" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ doas-sudo-shim ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue