mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-24 10:12:17 +00:00
.. | ||
work_overrides | ||
flake.nix | ||
README.md |
Work profile overlay
Inspired by the post Published my Nix Dotfiles by @chrisportela.
This repo demonstrates how I use a private repo to overlay my work-specific configurations on top of my personal ones. To use it, I just:
- Clone the private repo to my machine.
cd
into the private repo.- Run
home-manager switch --flake .#<username>@<hostname>
to activate the work profile (and then use theswitch-home
function to (re)activate it in the future).
When the public dotfiles
repo gets updated, I use the update-dotfiles
function to pull in the changes (nix flake lock --update-input dotfiles ${config.home.homeDirectory}/.dotfiles/
) and reapply the config (switch-home
).