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

deployed home-manager profiles do not clean up managed files #286

Open
menixator opened this issue Aug 10, 2024 · 1 comment
Open

deployed home-manager profiles do not clean up managed files #286

menixator opened this issue Aug 10, 2024 · 1 comment

Comments

@menixator
Copy link

I noticed this issue while trying to remove the ssh configs from a server I manage. The server has home-manager installed stand-alone.

Removing all the ssh configs does not remove the ssh_config file linked to the old generation. Somehow deploy-rs is inhibiting home-manager's cleanup functions.

I suspect it might have something to do with the fact that deploy-rs ends up creating two separate generations for every home-manager deployment but I haven't looked too deep into it. Will try to look into it further and update this issue.

@menixator
Copy link
Author

Defining a profilePath like so seems to have resolved this issue:

profilePath = "${self.homeConfigurations."user@host"}/nix/profiles/deployable-home";

by default the profile name ended up being "home-manager" and this ended up squeezing the "activatable-home-manager-generation" into the home-manager generations and preventing the cleanup.

image

Could we perhaps document how to properly use home-manager standalone with deploy-rs in the README?

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

No branches or pull requests

1 participant