This repo is intended to live at /srv/dotfiles on shared NixOS machines.
Home Manager links user dotfiles to that shared checkout instead of to
$HOME/dotfiles, so the links work consistently for every managed user.
Set it up from any existing checkout:
just setup-shared-dotfilesThe setup command:
- copies the current checkout to
/srv/dotfileswhen needed - makes the checkout readable by everyone
- makes it writable by the
wheelgroup - sets directory setgid/default ACLs so new files stay group-writable
- configures Git for group sharing
- creates
/etc/nixos -> /srv/dotfiles/nixoswhen/etc/nixosis absent or already a symlink
Use a different target or group when needed:
just setup-shared-dotfiles --target /srv/dotfiles --group wheelIf a machine has a real /etc/nixos directory and you want to replace it with
the shared checkout symlink:
just setup-shared-dotfiles --force-etc-nixos