blob: 5ceaea967093ffa8e76d176dcc71ff0ea43658c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ config, lib, ... }:
with lib;
let
cfg = config.security.sudo;
in
{
meta.maintainers = [
lib.maintainers.samasaur or "samasaur"
];
options = {
security.sudo.extraConfig = mkOption {
type = types.nullOr types.lines;
default = null;
description = ''
Extra configuration text appended to {file}`sudoers`.
'';
};
};
config = {
environment.etc = {
"sudoers.d/10-nix-darwin-extra-config" = mkIf (cfg.extraConfig != null) {
text = cfg.extraConfig;
};
};
};
}
|