mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-12 12:46:37 +02:00
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-* ```
14 lines
245 B
Nix
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";
|
|
}
|