nixpkgs/nixos/modules/system
Naïm Favier 37e42d01a0
nixos/etc: skip resolv.conf in nixos-enter chroot
nixos-enter sets up /etc/resolv.conf as a bind mount from the host
system, so trying to activate a system that sets
`environment.etc."resolv.conf"` (e.g. with systemd-resolved enabled)
results in an unhelpful warning.

Skip linking /etc/resolv.conf if we're in a nixos-enter environment, as
determined by the IN_NIXOS_ENTER environment variable.

Make the warnings more helpful, indicating which file we failed to link.

Unlink temporary files in case of failure.
2023-01-02 01:41:29 +01:00
..
activation Merge pull request #207163 from NixOS/rfc0125-improvements 2022-12-23 00:43:29 +01:00
boot Merge pull request #208033 from ncfavier/systemd-boot-skip-regression 2022-12-30 20:45:56 +01:00
etc nixos/etc: skip resolv.conf in nixos-enter chroot 2023-01-02 01:41:29 +01:00
build.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00