My NixOS flake: a desktop with NVIDIA and CUDA, a laptop on Hyprland and a home server without a screen (´ω`♡%)
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
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 misbehavesThe 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 installThe 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
MATLAB runs through Nix too (★^O^★):
nix run gitlab:doronbehar/nix-matlab#matlab-shell
nix shell gitlab:doronbehar/nix-matlab#matlab --command /run/media/rokokol/MATHWORKS_R2025A/install| 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 |
The configuration is split into layers, and each layer has its own README:
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
- 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 🤬❄️ |
❄️ made with declarative love · NixOS ❄️