{ 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; }; }