dotfiles/modules/os/cli/sudo.nix
eriedaberrie ddebcccb5b Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-09-23 15:10:43 -07:00

21 lines
375 B
Nix

{ 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
'';
};
})
];
}