No description
Find a file
2024-03-23 11:32:22 -07:00
base Config rearrange 2024-03-10 01:00:55 -08:00
desktop WIP - overlay in flake 2024-03-23 11:31:50 -07:00
hosts Config updates for katmai 2024-03-22 11:18:50 -07:00
ops Update pkg name and flake.lock 2024-03-17 10:36:48 -07:00
server Config rearrange 2024-03-10 01:00:55 -08:00
users Move users out to individual files 2024-03-17 09:21:24 -07:00
flake.lock Flake update 2024-03-20 07:51:13 -07:00
flake.nix WIP - overlay in flake 2024-03-23 11:31:50 -07:00
README.md Set up flake layout 2024-03-09 23:30:07 -08:00

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).

  1. Clone this repository.
  2. Create a directory under hosts for the host, based on the hostname.
  3. Copy the hardware-configuration.nix into the new directory.
  4. Copy a default.nix from a similar host into the new directory.
  5. Edit to include the appropriate modules and any host-specific settings.
  6. Add a stanza in the top-level flake.nix for the new host.
  7. Commit changes and push to central repo.
  8. Delete /etc/nixos and move this directory into place (for servers at least -- can symlink if user-managed).
  9. sudo nixos-rebuild switch.