mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34:56 +08:00
16 lines
233 B
Nix
16 lines
233 B
Nix
{ user, ... }:
|
|
{
|
|
security = {
|
|
doas = {
|
|
enable = true;
|
|
extraRules = [
|
|
{
|
|
users = [ user ];
|
|
noPass = true;
|
|
keepEnv = true;
|
|
}
|
|
];
|
|
};
|
|
sudo.enable = true;
|
|
};
|
|
}
|