Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.nix
  • conf/machines/thinkpad/hardware-configuration.nix
  • conf/modules/de/noct.nix
  • conf/modules/de/umb.nix
  • conf/services/searxng.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-daemon disabled
  • default TLP mode set to battery
  • CPU governor set to performance on AC and powersave on battery
  • fingerprint daemon and UPower enabled
  • Umbriel compositor and Noctalia shell enabled through a host-specific module
  • SearXNG listening on 127.0.0.1:9090

nix-baxcalibur

HP configuration.

Files:

  • conf/machines/hp/configuration.nix
  • conf/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; Umbriel, Noctalia, and SearXNG stay ThinkPad-specific.

Add another host

See Adding a new machine for the full workflow.