24 lines
449 B
Nix
24 lines
449 B
Nix
{ ... }:
|
|
{
|
|
config.dendritic.features.security-sudo-rs = {
|
|
nixosModules = [
|
|
(
|
|
{ config, ... }:
|
|
let
|
|
user = config.dendritic.current.primaryUser;
|
|
in
|
|
{
|
|
security = {
|
|
sudo.enable = false;
|
|
sudo-rs = {
|
|
enable = true;
|
|
execWheelOnly = true;
|
|
wheelNeedsPassword = true;
|
|
};
|
|
};
|
|
|
|
}
|
|
)
|
|
];
|
|
};
|
|
}
|