blob: 0e35af3a73608efb96b65aef618b68f1e35b6518 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{
config,
lib,
...
}: let
cfg = config.vhack.dhcpcd;
in {
options.vhack.dhcpcd = {
enable = (lib.mkEnableOption "dhcpcd") // {default = config.networking.dhcpcd.enable;};
};
config = lib.mkIf cfg.enable {
users = {
users.dhcpcd.uid = config.vhack.constants.ids.uids.dhcpcd;
groups.dhcpcd.gid = config.vhack.constants.ids.gids.dhcpcd;
};
};
}
|