From 00db2d105580b072b2adfb3968db69d880c80ec0 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 4 Aug 2023 11:54:33 -0500 Subject: [PATCH] update readmes --- .example_work_profile/README.md | 10 ++++++++++ README.md | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .example_work_profile/README.md diff --git a/.example_work_profile/README.md b/.example_work_profile/README.md new file mode 100644 index 0000000..34c7e96 --- /dev/null +++ b/.example_work_profile/README.md @@ -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 .#@` 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. \ No newline at end of file diff --git a/README.md b/README.md index 15c9c5e..cddd907 100644 --- a/README.md +++ b/README.md @@ -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.