aux-config/README.md
kB01 d61cd420a4
All checks were successful
/ Check Nix Flake (push) Successful in 2m5s
Added Host Ohybke
2025-02-14 01:30:40 +01:00

2 KiB

My NixOS Configurations

Forgejo Issues Forgejo Last Commit standard-readme compliant

This repository contains my Flake based NixOS Configuration Files.

Usage

Setup

Clone this Repository somewhere you can edit it easily:

git clone https://git.kb-one.de/kb01/aux-config ~/Project/aux-config

Check if the Hostname of your System matches one of the Systems.

hostname
Hostname does not Match (click to expand)

Install NixOS on the current System with forced Hostname.

cd ~/Project/aux-config
sudo nixos-rebuild switch --flake .#LoyAdjo

Warning

This will change the Hostname of your System to LoyAdjo!

Install NixOS System with current Hostname.

cd ~/Project/aux-config
sudo nixos-rebuild switch --flake .

Updating the Flake based NixOS installation

cd ~/Project/aux-config
sudo nix flake --update   # This Updates the flake.lock
sudo nixos-rebuild switch --flake .

Modify NixOS installation

  1. Edit the config in ~/Project/aux-config vim system/x86_64-linux/$HOST/default.nix
  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

Used Work

Server Icon © FontAwesome under the CC BY 4.0 License

License

MIT © kB01