# huix
**My NixOS flake: a desktop with NVIDIA and CUDA, a laptop on Hyprland and a home server without a screen** (´ω`♡%)



[](ASSETS.md)
[](WORKAROUNDS.md)
[](DEVIATIONS.md)
[](PITFALLS.md)
[](LICENSE)
[](https://github.com/rokokol/huix/actions/workflows/eval.yml)
[](https://deepwiki.com/rokokol/huix)
In short, this is my NixOS for a work PC, a laptop and a home server: Hyprland, nixvim and a pile of everyday applications. Some programs I keep outside the configuration, and for everything else I try to build a comfortable environment of my own
Commands
sudo nixos-rebuild switch --flake .#nixos-pc # or .#nixos-laptop
rebuild # the same alias for the current host
rebuilds # the same, but packages from the Yandex mirror, when the network misbehaves
The station keeps no checkout of its own: the PC builds it and ships it over Tailscale SSH
nixos-rebuild switch --flake .#nixos-station --target-host rokokol@nixos-station --sudo --ask-sudo-password
nix build .#station-boot-test -L # the station in virtual machines beside a router and the PC, only on request
nix build .#station-install-test -L # its installer image in virtual machines: the refusals, then a full install
The station installs from a flash drive. The installation guide explains the image and its secrets. What the station can do is in the system layer
If the hardware changed, inspect the output of sudo nixos-generate-config --show-hardware-config on that host before you update its hardware configuration. Preserve the existing file until you have reviewed the changes
Hosts
| Host | Purpose |
|---|---|
| Work PC | A work host for development and creative tasks |
| Convertible laptop | A work host with a touchscreen, a pen and a tablet mode |
| Home server | Keeps the backups, assembles the state of the hosts and serves the household services |
Repository map
The configuration is split into layers, and each layer has its own README:
Extracted into their own repositories
The pieces that outgrew the configuration live in flakes of their own: huix takes them as inputs and keeps one seam for each. The whole family, the configuration itself included, carries the huix topic
A few notes
- The light and the dark theme switch on the fly, and the choice survives reboots and rebuilds
- What runs on the machines is in the system layer and in the services section
an average nixos user :3
|
❄️❄️🚀 ALL YOUR PACKAGE MANAGERS ARE SHIT 🤬❄️ MUTABLE GARBAGE 🌋🚀❄️ YOU HAVE TO SWITCH ❄️ TO NIX ❄️❤️ 😍 SWITCH TO NIX ❄️❄️ SWITCH TO NIX, DAMN IT 😡❄️ 🚀 I NEED ❄️❄️ DECLARATIVENESS, DAMN IT 🚀❄️ THE DECLARATIVE NIX APPROACH 😍❤️🚀❄️ ALL YOUR OSES ARE IMPERATIVE 🤬💩 GARBAGE ❄️ ❄️ SWITCH TO NIX |