dotfiles/modules/os/cli/sudo.nix

21 lines
375 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
let
cfg = config.my.cli.sudo;
in {
options.my.cli.sudo = {
insults.enable = lib.mkEnableOption null;
};
config = lib.mkMerge [
(lib.mkIf cfg.insults.enable {
security.sudo = {
package = pkgs.sudo.override {withInsults = true;};
extraConfig = ''
Defaults insults
'';
};
})
];
}