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

|
2025-02-10 01:43:36 +01:00
|
|
|

|
2024-06-07 14:11:10 +02:00
|
|
|
[](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
|
|
|
```
|
|
|
|
|
2025-02-10 01:43:36 +01:00
|
|
|
Check if the Hostname of your System matches one of the [Systems](./systems/README.md).
|
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
|
|
|
|
2025-02-10 01:43:36 +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
|
2025-02-10 01:43:36 +01:00
|
|
|
sudo nixos-rebuild switch --flake .#LoyAdjo
|
2024-11-14 01:52:37 +01:00
|
|
|
```
|
2024-11-14 01:56:29 +01:00
|
|
|
|
2024-11-14 01:52:37 +01:00
|
|
|
> **Warning**
|
|
|
|
>
|
2025-02-10 01:43:36 +01:00
|
|
|
> This will change the Hostname of your System to LoyAdjo!
|
2024-11-14 01:56:29 +01:00
|
|
|
|
2024-11-14 01:52:37 +01:00
|
|
|
</details>
|
|
|
|
|
2025-02-10 01:43:36 +01:00
|
|
|
Install NixOS System with 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
|
|
|
```
|
|
|
|
|
2025-02-10 01:43:36 +01:00
|
|
|
### Updating the Flake based NixOS installation
|
2024-08-12 02:42:53 +02:00
|
|
|
```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 .
|
|
|
|
```
|
|
|
|
|
2025-02-10 01:43:36 +01:00
|
|
|
### 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
|
|
|
|
2025-02-10 01:43:36 +01:00
|
|
|
## Used Work
|
2024-06-07 14:11:10 +02:00
|
|
|
|
2025-02-10 01:43:36 +01:00
|
|
|
[Server Icon](./assets/server-solid.svg) © [FontAwesome](https://fontawesome.com) under the [CC BY 4.0 License](https://creativecommons.org/licenses/by/4.0/)
|
2024-12-10 19:46:59 +01:00
|
|
|
|
2024-06-07 14:11:10 +02:00
|
|
|
## License
|
|
|
|
|
2025-02-10 01:43:36 +01:00
|
|
|
[MIT © kB01](./LICENSE)
|