No description
|
||
---|---|---|
.github/workflows | ||
modules | ||
systems/x86_64-linux | ||
.gitignore | ||
flake.nix | ||
LICENCE | ||
README.md |
My NixOS Configurations
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 ~/Projects/aux-config
Warning
Only do this if you know what you are doing.
Now clone your local Git-Repo to /etc/nixos:
sudo rm -R /etc/nixos
sudo git clone ~/Projects/aux-config /etc/nixos
Install Nixos Variant
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
cd /etc/nixos
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 ...
- Edit the config in ~/Project/aux-config
vim system/x86_64-linux/$HOST/default.nix
- Commit the Changes locally
git commit -m "Some Changes"
- Now you
cd /etc/nixos
- Update the Changes
sudo git pull
- Build your System to apply the changes
sudo nixos-rebuild switch --flake .
- When you're satisfied with your changes, go to ~/Projects/aux-config and push your changes to the remote
Hosts
HyperC
Surface Pro 2017 Tablet
Cpu: Intel i5-7300U
Ram: 8GB
yerukall
Lenovo Thinkpad E14 Gen 4
Cpu: AMD Ryzen 5 5625U
Ram: 16GB
voloxo
My Gaming Desktop
Cpu: AMD Ryzen 5 5600X
Ram: 32GB
Gpu: NVIDIA GeForce GTX 1070