This commit is contained in:
parent
75fbeeb43c
commit
e4ba8da535
1 changed files with 20 additions and 3 deletions
23
README.md
23
README.md
|
@ -4,9 +4,11 @@
|
||||||

|

|
||||||
[](https://github.com/RichardLitt/standard-readme)
|
[](https://github.com/RichardLitt/standard-readme)
|
||||||
|
|
||||||
This repository contains my NixOS Configuration Files.
|
This repository contains my Flake based NixOS Configuration Files.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
### Setup
|
||||||
Clone this Repository somewhere you can edit it easily:
|
Clone this Repository somewhere you can edit it easily:
|
||||||
```bash
|
```bash
|
||||||
git clone https://git.kb-one.de/kb01/aux-config ~/Projects/aux-config
|
git clone https://git.kb-one.de/kb01/aux-config ~/Projects/aux-config
|
||||||
|
@ -22,13 +24,28 @@ sudo rm -R /etc/nixos
|
||||||
sudo git clone ~/Projects/aux-config /etc/nixos
|
sudo git clone ~/Projects/aux-config /etc/nixos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Install Nixos Variant
|
||||||
|
```bash
|
||||||
|
cd /etc/nixos
|
||||||
|
sudo nixos-rebuild switch --flake .#voloxo # Or use any other Host
|
||||||
|
```
|
||||||
|
Future Rebuilds don't need the Host Specifie, because it is now set. `sudo nixos-rebuild switch --flake .`
|
||||||
|
|
||||||
|
### Updating the Flake Based NixOS Installation
|
||||||
|
```bash
|
||||||
|
cd /etc/nixos
|
||||||
|
sudo nix flake --update # This Updates the flake.lock
|
||||||
|
sudo nixos-rebuild switch --flake .
|
||||||
|
```
|
||||||
|
|
||||||
|
### Modify NixOS Installation
|
||||||
Now When you want to change your System, you ...
|
Now When you want to change your System, you ...
|
||||||
1. Edit the config in ~/Project/aux-config `vim system/x86_64-linux/$HOST/default.nix`
|
1. Edit the config in ~/Project/aux-config `vim system/x86_64-linux/$HOST/default.nix`
|
||||||
2. Commit the Changes locally `git commit -m "Some Changes"`
|
2. Commit the Changes locally `git commit -m "Some Changes"`
|
||||||
3. Now you `cd /etc/nixos`
|
3. Now you `cd /etc/nixos`
|
||||||
4. Update the Changes `sudo git pull --rebase`
|
4. Update the Changes `sudo git pull`
|
||||||
5. Build your System to apply the changes `sudo nixos-rebuild switch --flake .`
|
5. Build your System to apply the changes `sudo nixos-rebuild switch --flake .`
|
||||||
6. If you are Satisfied with your Changes, switch to ~/Projects/aux-config and Push your Changes to the Remote
|
6. When you're satisfied with your changes, go to ~/Projects/aux-config and push your changes to the remote
|
||||||
|
|
||||||
## Hosts
|
## Hosts
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue