diff --git a/modules/system/etc.nix b/modules/system/etc.nix index 242570e7..b3d803ad 100644 --- a/modules/system/etc.nix +++ b/modules/system/etc.nix @@ -52,7 +52,9 @@ in fi if [ -e "$l" ]; then if [ "$(readlink $l)" != "$f" ]; then - echo "warning: not linking environment.etc.\"''${l#/etc/}\" because $l exists, skipping..." >&2 + if ! grep -q /etc/static "$l"; then + echo "warning: not linking environment.etc.\"''${l#/etc/}\" because $l exists, skipping..." >&2 + fi fi else ln -s "$f" "$l"