nixos-greynix/README.md

38 lines
1 KiB
Markdown
Raw Normal View History

2024-11-10 15:46:30 +08:00
# My NixOS Flake Config
2024-11-10 20:35:23 +08:00
My NixOS repo with that has the configs for 2 of my NixOS machines.
2024-11-10 15:46:30 +08:00
2024-11-10 20:35:23 +08:00
**Note to self:**
I have no files in /etc/nixos now. I wonder if I should `ln` them there. Hmm.
2024-11-10 15:46:30 +08:00
2024-11-10 20:37:18 +08:00
## How to use this:
2024-11-10 20:35:23 +08:00
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
```
2024-11-10 20:37:18 +08:00
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
2024-11-10 20:35:23 +08:00
# Structure of NixOS Config
2024-11-10 15:46:30 +08:00
```
└── nixos-config
   ├── base.nix
   ├── bluenix
   │   ├── configuration.nix
   │   └── hardware-configuration.nix
   ├── flake.nix
   ├── fonts.nix
   ├── gnome.nix
   ├── greynix
   │   ├── configuration.nix
   │   └── hardware-configuration.nix
   ├── home.nix
   └── systemd.nix
```