summary refs log tree commit diff stats
path: root/modules/by-name/re/resolvconf/module.nix
blob: ff996968836013f08d7e8a8c893053602f06c17d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  config,
  lib,
  ...
}: let
  cfg = config.vhack.resolvconf;
in {
  options.vhack.resolvconf = {
    # NOTE(@bpeetz): This condition is taken directly from NixOS. <2024-12-25>
    enable = lib.mkEnableOption "resolvconf" // {default = !(config.environment.etc ? "resolv.conf");};
  };

  config = lib.mkIf cfg.enable {
    users.groups.resolvconf.gid = config.vhack.constants.ids.gids.resolvconf;
  };
}