aux-config/README.md

98 lines
2.5 KiB
Markdown
Raw Normal View History

2024-06-07 14:11:10 +02:00
# My NixOS Configurations
![Forgejo Issues](https://img.shields.io/gitea/issues/open/kb01/nix-config?gitea_url=https%3A%2F%2Fgit.kb-one.de)
![Forgejo Release](https://img.shields.io/gitea/v/release/kb01/nix-config?gitea_url=https%3A%2F%2Fgit.kb-one.de)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](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
2024-11-26 22:09:02 +01:00
git clone https://git.kb-one.de/kb01/aux-config ~/Project/aux-config
2024-07-16 12:26:24 +02:00
```
2024-11-14 01:52:37 +01:00
Check if your Hostname matches one of the [Hosts](#hosts) in the config.
2024-07-16 12:26:24 +02:00
```bash
2024-11-14 01:52:37 +01:00
hostname
2024-07-16 12:26:24 +02:00
```
2024-11-14 01:52:37 +01:00
<details>
<summary>Hostname does not Match (click to expand)</summary>
2024-11-14 01:56:29 +01:00
2024-11-14 01:52:37 +01:00
Install NixOS on the current system with forced hostname.
2024-11-14 01:56:29 +01:00
2024-11-14 01:52:37 +01:00
```bash
cd ~/Project/aux-config
sudo nixos-rebuild switch --flake .#voloxo
```
2024-11-14 01:56:29 +01:00
2024-11-14 01:52:37 +01:00
> **Warning**
>
> This will change the Hostname of your System to voloxo!
2024-11-14 01:56:29 +01:00
2024-11-14 01:52:37 +01:00
</details>
Install NixOS for your current Hostname.
2024-08-12 02:42:53 +02:00
```bash
2024-11-14 01:52:37 +01:00
cd ~/Project/aux-config
sudo nixos-rebuild switch --flake .
2024-08-12 02:42:53 +02:00
```
### Updating the Flake Based NixOS Installation
```bash
2024-11-14 01:52:37 +01:00
cd ~/Project/aux-config
2024-08-12 02:42:53 +02:00
sudo nix flake --update # This Updates the flake.lock
sudo nixos-rebuild switch --flake .
```
### Modify NixOS Installation
2024-07-16 12:26:24 +02:00
1. Edit the config in ~/Project/aux-config `vim system/x86_64-linux/$HOST/default.nix`
2024-11-14 01:52:37 +01:00
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`
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-11-26 22:09:02 +01:00
User: [kb@HyperC](./homes/x86_64-linux/kb@HyperC)
2024-06-07 14:11:10 +02:00
Cpu: Intel i5-7300U
2024-06-07 14:11:10 +02:00
Ram: 8GB
2024-11-26 22:09:02 +01:00
### [LoyAdjo](./systems/x86_64-linux/LoyAdjo)
2024-08-12 01:03:17 +02:00
My Gaming Desktop
2024-11-26 22:09:02 +01:00
User: [kb@LoyAdjo](./homes/x86_64-linux/kb@LoyAdjo)
2024-08-12 01:03:17 +02:00
Cpu: AMD Ryzen 5 5600X
Ram: 32GB
Gpu: NVIDIA GeForce GTX 1070
2024-11-14 01:53:44 +01:00
### [kb-games-01](./systems/x86_64-linux/kb-games-01)
2024-11-27 01:25:01 +01:00
My KVM Server for Gameservers (wip)
2024-11-14 01:52:37 +01:00
Cpu: AMD EPYC 7702P 64-Core (4 Cores)
Ram: 16GB
2024-11-27 01:25:01 +01:00
### [U3ncSovm](./systems/x86_64-linux/U3ncSovm)
My NAS Server, currently under construction only as VM.
Cpu: 3 Cores of Host
Ram: 3GB of Host
Build: `nixos-rebuild build-vm --flake .#U3ncSovm`
2024-06-07 14:11:10 +02:00
## License
[MIT © kB01](../LICENSE)