top-level configurations for all my NixOS machines
Go to file
2022-05-22 09:40:36 +00:00
machines machine: uninsane: port to home-manager 2022-05-22 09:40:36 +00: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 port to a flake 2022-05-21 01:59:51 +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 lappy-gpt: inline nixos-generate logic for better boot consistency 2022-05-21 22:00:38 -07:00
flake.nix convert lappy-gpt to use a helper which we'll be able to replicate for other machines 2022-05-22 01:38:19 -07:00
image.nix enable microcode updates for intel (desktop) 2022-05-21 23:31:38 -07:00
readme.md add a #lappy-gpt target which builds a flat, flashable image. 2022-05-21 18:05: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 (MBR-formatted image with nothing on the first part and only /nix on the second part), use nix build:

nix build "/etc/nixos/#nixosConfigurations.lappy-sd.config.system.build.sdImage"

to build a distributable image (MBR-formatted ISO with the nix store as a squashfs), use nix build:

nix build "/etc/nixos/#nixosConfigurations.lappy-iso.config.system.build.isoImage"

alternatively, boot into a bare NixOS image and run

NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz nix-shell -p nixos-generators --run "nixos-generate --flake /etc/nixos/#lappy --format raw-efi"

or

nix build .#lappy-gpt