Update NixOS config.
This commit is contained in:
parent
7824423337
commit
22d8e0f8d7
1 changed files with 14 additions and 2 deletions
16
README.md
16
README.md
|
@ -1,8 +1,20 @@
|
||||||
# My NixOS Flake Config
|
# My NixOS Flake Config
|
||||||
My attempt to have one repo and set of config files for both of my NixOS machines.
|
My NixOS repo with that has the configs for 2 of my NixOS machines.
|
||||||
|
|
||||||
My thoughts before is started this are [here](https://blog.arkadi.one/p/nixos-multiple-machine-flake/).
|
**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
|
||||||
|
1. Change hostnames in the flake
|
||||||
|
2. Update things back up to github with:
|
||||||
|
```
|
||||||
|
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`
|
||||||
|
|
||||||
|
# Structure of NixOS Config
|
||||||
```
|
```
|
||||||
└── nixos-config
|
└── nixos-config
|
||||||
├── base.nix
|
├── base.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue