I’m thinking that maybe a possible solution to set up my dotfiles on a machine M using Home Manager could be the following could:
Build the Home Manager configuration for M on a NixOS server of mine.
Recursively replace all the symlinks built by Home Manager for M with the files they point to, excluding .nix*. This way the conf is now self-contained and doesn’t depend on the store.
Send all the files generated this way to M.
This way I could use a single Home Manager configuration to set up dotfiles for both the Nix systems I have access to, and the non-Nix ones with minimal overhead.
Is there a project that does this, or that solves the issue I raised in any other way? I don’t know Home Manager or Nix well enough to develop something like this myself…
I’m thinking that maybe a possible solution to set up my dotfiles on a machine
M
using Home Manager could be the following could:Build the Home Manager configuration for
M
on a NixOS server of mine.Recursively replace all the symlinks built by Home Manager for
M
with the files they point to, excluding.nix*
. This way the conf is now self-contained and doesn’t depend on the store.Send all the files generated this way to
M
.This way I could use a single Home Manager configuration to set up dotfiles for both the Nix systems I have access to, and the non-Nix ones with minimal overhead.
Is there a project that does this, or that solves the issue I raised in any other way? I don’t know Home Manager or Nix well enough to develop something like this myself…