top-level configurations for all my NixOS machines
Go to file
2022-05-26 13:15:32 -07:00
helpers add cd../ shell aliases because i mistype it so often 2022-05-26 03:18:19 -07:00
machines disable powertop service: it breaks USB HID (mouse permanently asleep; keyboard powers off every 2 seconds) 2022-05-26 03:20:06 -07:00
modules migrate the nix install to an external USB drive. 2022-05-17 01:58:12 +00:00
pkgs toy around with explicitly spinning down the hard drive during shutdown 2022-05-18 10:40:28 +00:00
secrets secrets: document how to update a secret 2022-05-22 09:41:16 +00:00
.gitignore update readme to explain how to handle secrets with git 2022-05-21 02:08:49 +00:00
configuration.nix port to a flake 2022-05-21 01:59:51 +00:00
flake.lock flake: cleanup old mobile-pkgs attempts 2022-05-24 23:12:17 -07:00
flake.nix flake: cleanup old mobile-pkgs attempts 2022-05-24 23:12:17 -07:00
image.nix add img targets for desko and uninsane machines 2022-05-22 02:57:05 -07:00
readme.md flake: factor out some machine helpers 2022-05-22 14:40:29 -07:00
secrets.nix uninsane: add a hurricane electric ddns service 2022-05-24 17:24:11 -07:00
TODO.md TODO: erase ddclient (done); add video-driver TODO 2022-05-26 13:15:32 -07:00

after checking out, drop secrets into secrets/

to build:

nixos-rebuild --flake "/etc/nixos/#uninsane" {build,switch}

query with:

nix flake show

secrets

change files in secrets/. they need to be checked into git with some placeholder text for them to be exposed to the flake, but after that you can set them to their real value and run git update-index --assume-unchanged secrets/*

building images

to build a distributable image (GPT-formatted image with rootfs and /boot partition):

nix build .#imgs.lappy

this can then be dd'd onto a disk and directly booted from a EFI system. there's some post-processing to do before running a rebuild on the deployed system (e.g. change fstab UUIDs) refer to flake.nix for more details