nixos/timezone: stop using mode direct-symlink for linking localtime#284641
nixos/timezone: stop using mode direct-symlink for linking localtime#284641NickCao wants to merge 1 commit intoNixOS:masterfrom
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: |
|
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-symlinkmode of etc files.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.