Skip to content
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: allow files to be symlinked anywhere #8

Closed
wants to merge 1 commit into from

Conversation

lovesegfault
Copy link
Collaborator

@lovesegfault lovesegfault commented Jun 12, 2020

This removes the current restriction on files needing to exist in /etc and allows them to be symlinked anywhere on disk.

@lovesegfault
Copy link
Collaborator Author

@talyz review ping :)

@talyz
Copy link
Collaborator

talyz commented Sep 26, 2020

@lovesegfault Sorry I haven't reviewed this earlier; I believe we discussed this approach in another issue, so I thought I already had.

My issue with this is that it doesn't clean up symlinks when you switch to a new generation. This is something that we get for free with environment.etc, but we should also be able to use systemd units, as we do currently with the the home-manager bind mounts. That would also let us dynamically choose whether we symlink or bind mount files (symlink if the real file doesn't exist, bind mount if it does).

@lovesegfault lovesegfault deleted the full-link branch January 24, 2021 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants