nixos-configuration/README.md
2023-08-27 13:28:13 +02:00

518 B

nixos-configuration

When adding a new host:

  1. install NixOS via the graphical installer
  2. mv /etc/hardware-configuration ./devicename-hardware-configuration.nix
  3. copy an existing devicename.nix
  4. change import to new-devicename-hardware-configuration.nix
  5. set the hostname and optional imports in new-devicename.nix
  6. ln -s ./new-devicename.nix /etc/nixos/configuration.nix
  7. sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
  8. apply