about summary refs log tree commit diff
path: root/nixos/modules/config/resolvconf.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-04-12Merge pull request #302608 from nbdd0121/dnsJanik1-3/+1
nixos/resolvconf: fix useLocalResolver when IPv6 is enabled
2024-04-08nixos/resolvconf: fix useLocalResolver when IPv6 is enabledGary Guo1-3/+1
resolvconf.conf is a shell script and unlike resolv.conf, multiple nameservers are specified by space separating them instead of adding multiple lines. Fixes: fc060cc3cb1ceb1825cc015abd16dc0fce326836
2024-03-17nixos/resolvconf: add option "trust-ad" when `useLocalResolver` is enabledSchweber1-1/+2
2024-03-15nixos/resolvconf: add `::1` as local dns resolverJanik H.1-0/+2
2023-03-29nixos/modules/config/resolvconf.nix: skip systemPackages if disabledGarry Filakhtov1-2/+2
A change made in #166308 added `networking.resolvconf.package` to the `environment.systemPackages` list, so it is installed as part of the system image. However it does so unconditionally, meaning that even if the `config.networking.resolvconf.enable` is set to false the package listed in the `networking.resolvconf.package` would still be intalled. This change makes it so the package installation will depend on the status of the `config.networking.resolvconf.enable` option instead.
2022-08-03nixos/*: automatically convert option docs to MDpennae1-3/+3
once again using nix-doc-munge (https://github.com/pennae/nix-doc-munge/commit/69d080323ae27c0d8da3967c62b925a9aedb2828)
2022-08-03nixos/*: replace <code> in option docs with <literal>pennae1-2/+2
markdown can't represent the difference without another extension and both the html manual and the manpage render them the same, so keeping the distinction is not very useful on its own. with the distinction removed we can automatically convert many options that use <code> tags to markdown. the manpage remains unchanged, html manual does not render differently (but class names on code tags do change from "code" to "literal").
2022-07-30treewide: automatically md-convert option descriptionspennae1-10/+10
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-06-21nixos/resolvconf: add `package`Naïm Favier1-3/+18
Expose the package that provides the system-wide `resolvconf` command (either openresolv or systemd) to allow implementation-agnostic modules.
2022-03-06nixos/resolvconf: allow disablingAlyssa Ross1-4/+2
For systems without internet connections, it doesn't make sense to require the existence of an /etc/resolv.conf file to disable resolvconf, so let's expose networking.resolveconf.enable as a public option that can be set to false.
2020-05-21nixos/resolvconf: always run systemctl of the currently running systemdFlorian Klink1-1/+1
2020-02-05nixos/resolvconf: Remove useHostResolvConf optionSilvan Mosberger1-9/+1
Never had any effect
2019-12-10nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger1-0/+6
A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
2019-07-15resolvconf service: initNikolay Amiantov1-0/+149
This is a refactor of how resolvconf is managed on NixOS. We split it into a separate service which is enabled internally depending on whether we want /etc/resolv.conf to be managed by it. Various services now take advantage of those configuration options. We also now use systemd instead of activation scripts to update resolv.conf. NetworkManager now uses the right option for rc-manager DNS automatically, so the configuration option shouldn't be exposed.