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

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-11-13 02:02:37 -08:00

26 lines
461 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
'';
};
})
{
security.pam.services.sudo = {
fprintAuth = false;
};
}
];
}