Hosts
The flake builds two NixOS hosts. Both import conf/shared.nix and then add
machine-specific options from conf/machines/{machine}/configuration.nix.
nix-haxorus
ThinkPad configuration.
Files:
conf/machines/thinkpad/configuration.nixconf/machines/thinkpad/hardware-configuration.nixconf/modules/de/hypr.nixconf/modules/de/hypr-home.nix
Flake target:
sudo nixos-rebuild test --flake .#nix-haxorus
sudo nixos-rebuild switch --flake .#nix-haxorus
Host-specific settings:
- hostname:
nix-haxorus - thermal daemon enabled
- TLP enabled
power-profiles-daemondisabled- default TLP mode set to battery
- CPU governor set to
performanceon AC andpowersaveon battery - fingerprint daemon enabled
- Hyprland desktop enabled through host-specific modules
nix-baxcalibur
HP configuration.
Files:
conf/machines/hp/configuration.nixconf/machines/hp/hardware-configuration.nix
Flake target:
sudo nixos-rebuild test --flake .#nix-baxcalibur
sudo nixos-rebuild switch --flake .#nix-baxcalibur
Host-specific settings:
- hostname:
nix-baxcalibur
The HP file imports shared config and hardware config. GNOME is enabled through shared config; Hyprland stays ThinkPad-specific.
Add another host
See Adding a New Machine for the full workflow.