From f6a49e6e7476334ad3de6ad6041807c2ee18bccc Mon Sep 17 00:00:00 2001 From: tootbrute Date: Sun, 10 Nov 2024 20:37:18 +0800 Subject: [PATCH] Update NixOS config. --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e88aab..015b0b5 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ My NixOS repo with that has the configs for 2 of my NixOS machines. **Note to self:** I have no files in /etc/nixos now. I wonder if I should `ln` them there. Hmm. -## Notes for newbies on how to use this +## How to use this: 1. Change hostnames in the flake 2. Update things back up to github with: ``` @@ -12,7 +12,12 @@ git add . #add all files git commit -m "Update NixOS config." #commit message git push origin main #put updated files in git repo ``` -3. In the ./nixos-config, deploy this with the command `sudo nixos-rebuild switch --flake .#HOSTNAME` +3. In the `./nixos-config` directory, deploy with the command `sudo nixos-rebuild switch --flake .#HOSTNAME` + +## Deploy to new system: +*not tested yet* +1. git clone ? +2. nixos-rebuild switch --flake .#HOSTNAME # Structure of NixOS Config ```