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
Best way to extract dotfiles from home-manager? #1658
Comments
I'm curious as to why you'd rather back up the files rather than the config that generated those files. It seems like a better idea to just backup your |
I'm with @cole-h on this - the output really doesn't matter so I don't really see the point in this. But just in case you really do want it, you can wire up a script that does something like this:
|
Hey all, sorry for the late reply. I somehow stopped getting GitHub notifications. Right now I'm doing:
Which is relying on the internal option Ideally it would be nice to have to have a command Thanks for the help! |
FWIW. I do something like
and include |
Issue description
I'd like to backup the dotfiles generated by home-manager. Looking at the source, it appears all the generated symlinks point to files in the
home-files
package so I could just backup this directory. I'm hesitant to depend on an internal API, however. Is there another way to get a list of all files managed by home-manager so I can back them up?Thanks!
Meta
Maintainer CC
Technical details
"x86_64-linux"
Linux 5.6.0-1020-oem, Pop!_OS, 20.04 LTS
yes
yes
nix-env (Nix) 2.3.9
"nixpkgs-21.03pre258115.8006772a054"
/nix/var/nix/profiles/per-user/root/channels/nixpkgs
The text was updated successfully, but these errors were encountered: