This commit is contained in:
parent
6bd354e4d4
commit
a95eb4e44e
1 changed files with 29 additions and 26 deletions
55
README.md
55
README.md
|
@ -11,41 +11,44 @@ This repository contains my Flake based NixOS Configuration Files.
|
|||
### Setup
|
||||
Clone this Repository somewhere you can edit it easily:
|
||||
```bash
|
||||
git clone https://git.kb-one.de/kb01/aux-config ~/Projects/aux-config
|
||||
git clone https://git.informatik.fh-nuernberg.de/SpiegelMa/aux-config ~/Project/aux-config
|
||||
```
|
||||
|
||||
> **Warning**
|
||||
>
|
||||
> Only do this if you know what you are doing.
|
||||
|
||||
Now clone your local Git-Repo to /etc/nixos:
|
||||
Check if your Hostname matches one of the [Hosts](#hosts) in the config.
|
||||
```bash
|
||||
sudo rm -R /etc/nixos
|
||||
sudo git clone ~/Projects/aux-config /etc/nixos
|
||||
hostname
|
||||
```
|
||||
<details>
|
||||
<summary>Hostname does not Match (click to expand)</summary>
|
||||
Install NixOS on the current system with forced hostname.
|
||||
```bash
|
||||
cd ~/Project/aux-config
|
||||
sudo nixos-rebuild switch --flake .#voloxo
|
||||
```
|
||||
> **Warning**
|
||||
>
|
||||
> This will change the Hostname of your System to voloxo!
|
||||
</details>
|
||||
|
||||
Install Nixos Variant
|
||||
Install NixOS for your current Hostname.
|
||||
```bash
|
||||
cd /etc/nixos
|
||||
sudo nixos-rebuild switch --flake .#voloxo # Or use any other Host
|
||||
cd ~/Project/aux-config
|
||||
sudo nixos-rebuild switch --flake .
|
||||
```
|
||||
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
|
||||
cd ~/Project/aux-config
|
||||
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 ...
|
||||
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"`
|
||||
3. Now you `cd /etc/nixos`
|
||||
4. Update the Changes `sudo git pull`
|
||||
5. Build your System to apply the changes `sudo nixos-rebuild switch --flake .`
|
||||
6. When you're satisfied with your changes, go to ~/Projects/aux-config and push your changes to the remote
|
||||
2. Stage the Changes if you created or deleted Files `git add .` (They will be ignored if you miss this step!)
|
||||
3. Build your System to apply the changes `sudo nixos-rebuild switch --flake .`
|
||||
4. Commit your Changes if satisfied `git commit -m "Added Software hello-world"`
|
||||
5. Then Push your Changes to the Remote, so that other systems can update `git push`
|
||||
|
||||
## Hosts
|
||||
|
||||
|
@ -56,13 +59,6 @@ Cpu: Intel i5-7300U
|
|||
|
||||
Ram: 8GB
|
||||
|
||||
### [yerukall](.systems/x86_64-linux/yerukall)
|
||||
Lenovo Thinkpad E14 Gen 4
|
||||
|
||||
Cpu: AMD Ryzen 5 5625U
|
||||
|
||||
Ram: 16GB
|
||||
|
||||
### [voloxo](.systems/x86_64-linux/voloxo)
|
||||
My Gaming Desktop
|
||||
|
||||
|
@ -72,6 +68,13 @@ Ram: 32GB
|
|||
|
||||
Gpu: NVIDIA GeForce GTX 1070
|
||||
|
||||
### [kb-games-01](.systems/x86_64-linux/kb-games-01)
|
||||
My KVM Server for Gameservers
|
||||
|
||||
Cpu: AMD EPYC 7702P 64-Core (4 Cores)
|
||||
|
||||
Ram: 16GB
|
||||
|
||||
## License
|
||||
|
||||
[MIT © kB01](../LICENSE)
|
||||
|
|
Loading…
Add table
Reference in a new issue