-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/timezone: stop using mode direct-symlink for linking localtime #284641
Conversation
The indirection wasn't introduced in my PR, it was introduced before in 0762396 -- with justification. If this turns out to be fine anyway -- given that it's the last use of |
This indeed breaks systemd:
|
So the solution would now be keeping |
Wouldn't the following code work:
This keeps the indirection because the systemd requirements, but fixes perlless activation since creating a symlink to a non-existent absolute path is allowed. It looks like nixpkgs/nixos/modules/system/etc/setup-etc.pl Lines 113 to 134 in 5fd6c33
Neither are the case here, so it is likely safe to remove this entirely. |
I believe the systemd patch will need to be updated too: nixpkgs/pkgs/os-specific/linux/systemd/0007-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch Line 73 in a5ae45e
|
Any status update on this? |
I just ran into the same issue:
Is there a workaround? (Apart from unsetting |
I don't think so, sadly. |
Setting |
Closing in favor of #314579 |
Description of changes
This surfaces from #270727 (comment).
We are currently having an unnecessary level of indirection, namely
/etc/localtime -> /etc/zoneinfo/<tz> -> /nix/store/<tzdata>/share/zoneinfo/<tz>
Which was introduced in #26608 for no obvious reasons.
It can be reduced to
/etc/localtime -> /nix/store/<tzdata>/share/zoneinfo/<tz>
and the relevant nixos tests still pass.
This also removed the last in-tree user of the undocumented
direct-symlink
mode of etc files.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.