2024-06-07 14:11:10 +02:00
|
|
|
# My NixOS Configurations
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|
[](https://github.com/RichardLitt/standard-readme)
|
|
|
|
|
2024-08-12 02:42:53 +02:00
|
|
|
This repository contains my Flake based NixOS Configuration Files.
|
2024-06-07 14:11:10 +02:00
|
|
|
|
2024-07-16 12:26:24 +02:00
|
|
|
## Usage
|
2024-08-12 02:42:53 +02:00
|
|
|
|
|
|
|
### Setup
|
2024-07-16 12:26:24 +02:00
|
|
|
Clone this Repository somewhere you can edit it easily:
|
|
|
|
```bash
|
|
|
|
git clone https://git.kb-one.de/kb01/aux-config ~/Projects/aux-config
|
|
|
|
```
|
|
|
|
|
|
|
|
> **Warning**
|
|
|
|
>
|
|
|
|
> Only do this if you know what you are doing.
|
2024-07-16 12:29:52 +02:00
|
|
|
|
2024-07-16 12:26:24 +02:00
|
|
|
Now clone your local Git-Repo to /etc/nixos:
|
|
|
|
```bash
|
|
|
|
sudo rm -R /etc/nixos
|
|
|
|
sudo git clone ~/Projects/aux-config /etc/nixos
|
|
|
|
```
|
|
|
|
|
2024-08-12 02:42:53 +02:00
|
|
|
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
|
2024-07-16 12:29:52 +02:00
|
|
|
Now When you want to change your System, you ...
|
2024-07-16 12:26:24 +02:00
|
|
|
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`
|
2024-08-12 02:42:53 +02:00
|
|
|
4. Update the Changes `sudo git pull`
|
2024-07-16 12:26:24 +02:00
|
|
|
5. Build your System to apply the changes `sudo nixos-rebuild switch --flake .`
|
2024-08-12 02:42:53 +02:00
|
|
|
6. When you're satisfied with your changes, go to ~/Projects/aux-config and push your changes to the remote
|
2024-07-16 12:26:24 +02:00
|
|
|
|
2024-06-07 14:11:10 +02:00
|
|
|
## Hosts
|
|
|
|
|
2024-08-12 02:25:50 +02:00
|
|
|
### [HyperC](./systems/x86_64-linux/HyperC)
|
2024-06-07 14:11:10 +02:00
|
|
|
Surface Pro 2017 Tablet
|
2024-07-16 12:29:52 +02:00
|
|
|
|
2024-06-07 14:11:10 +02:00
|
|
|
Cpu: Intel i5-7300U
|
2024-07-16 12:29:52 +02:00
|
|
|
|
2024-06-07 14:11:10 +02:00
|
|
|
Ram: 8GB
|
|
|
|
|
2024-08-12 02:27:28 +02:00
|
|
|
### [yerukall](.systems/x86_64-linux/yerukall)
|
2024-07-16 12:26:24 +02:00
|
|
|
Lenovo Thinkpad E14 Gen 4
|
2024-07-16 12:29:52 +02:00
|
|
|
|
2024-07-16 12:26:24 +02:00
|
|
|
Cpu: AMD Ryzen 5 5625U
|
2024-07-16 12:29:52 +02:00
|
|
|
|
2024-07-16 12:26:24 +02:00
|
|
|
Ram: 16GB
|
|
|
|
|
2024-08-12 02:27:28 +02:00
|
|
|
### [voloxo](.systems/x86_64-linux/voloxo)
|
2024-08-12 01:03:17 +02:00
|
|
|
My Gaming Desktop
|
|
|
|
|
|
|
|
Cpu: AMD Ryzen 5 5600X
|
|
|
|
|
|
|
|
Ram: 32GB
|
|
|
|
|
|
|
|
Gpu: NVIDIA GeForce GTX 1070
|
|
|
|
|
2024-06-07 14:11:10 +02:00
|
|
|
## License
|
|
|
|
|
|
|
|
[MIT © kB01](../LICENSE)
|