No description
base | ||
desktop | ||
hosts/desktop/valhalla | ||
server | ||
flake.lock | ||
flake.nix | ||
README.md |
NixOS System flakes
This is currently in heavy development. The goal is to create a reusable structure for Freelock infrastructure, to make recreating a host or building a new one a breeze.
Creating a new host
Start with a bare NixOS install, sort out the hardware-specific needs (partitioning scheme - /boot, swap, /nix partitions, etc).
- Clone this repository.
- Create a directory under hosts for the host, based on the hostname.
- Copy the hardware-configuration.nix into the new directory.
- Copy a default.nix from a similar host into the new directory.
- Edit to include the appropriate modules and any host-specific settings.
- Add a stanza in the top-level flake.nix for the new host.
- Commit changes and push to central repo.
- Delete /etc/nixos and move this directory into place (for servers at least -- can symlink if user-managed).
sudo nixos-rebuild switch
.