nixpkgs/nixos/modules/system/etc
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
..
etc-activation.nix
etc.nix nixos/system: invariant option docs MD conversions 2022-07-24 13:01:47 +02:00
setup-etc.pl nixos/etc: skip resolv.conf in nixos-enter chroot 2023-01-02 01:41:29 +01:00
test.nix