nix-config/hosts/iso/configuration.nix
Donovan Glover 6009841203
hosts: add iso
This makes it possible to build a custom NixOS installer iso with the
tools I want. Ideally I get to a point where I can use the iso like a
live cd with Hyprland and/or dwm installed with everything already
configured.

Build the iso with the following command:

```
nix build .#nixosConfigurations.iso.config.system.build.isoImage
```

Then, use qemu to test the iso:

```
qemu-system-x86_64 -enable-kvm -m 256 -cdrom ./result/iso/nixos-*
```
2024-12-15 18:07:35 -05:00

14 lines
245 B
Nix

{ pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
];
environment.systemPackages = with pkgs; [
neovim
];
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
}