update readmes

This commit is contained in:
John Bowdre 2023-08-04 11:54:33 -05:00
parent 34d3e9bcc2
commit 00db2d1055
2 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,10 @@
# Work profile overlay
_Inspired by [Published my Nix Dotfiles](https://www.chrisportela.com/posts/published-nix-dotfiles/)._
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:
1. Clone the private repo to my machine.
2. `cd` into the private repo.
3. Run `home-manager switch --flake .#<username>@<hostname>` to activate the work profile (and then use the `switch-home` function to (re)activate it in the future).
When the public repo gets updated, I run `nix flake update` to pull in the changes before doing `switch-home` to reapply the config.

View file

@ -1,7 +1,9 @@
# Config files
## Nix
I've started the process of leveraging [Nix](https://nixos.org/explore.html) to manage my system configurations. This repo holds files used for managing user environments with [Home Manager](https://github.com/nix-community/home-manager). The goods are in [flake.nix](./flake.nix).
I've started the process of leveraging [Nix](https://nixos.org/explore.html) to manage my system configurations. This repo holds files used for managing user environments with [Home Manager](https://github.com/nix-community/home-manager), largely adapted from the wonderful examples at [nix-starter-configs](https://github.com/Misterio77/nix-starter-configs).
I've also set this up so that I can overlay a flake stored in a private repo, say for work-specific configurations. That will allow me to use the same base configs for both work and personal machines, but with some additional work-specific stuff on top. There's an example of how I did that in [.example_work_profile](./.example_work_profile).
I've preserved my previous configs in the [.legacy_dotfiles](./.legacy_dotfiles) directory, but I'm not actively maintaining them anymore.
The [.example_work_profile](./.example_work_profile) directory demonstrates how I use a private repo to overlay my work-specific configurations on top of my personal ones.