From 09513b5c4e4babfaefdd06c592ef34c0908dc572 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Thu, 30 May 2024 00:47:47 +0000 Subject: oh god what have i done --- iso.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 iso.nix (limited to 'iso.nix') diff --git a/iso.nix b/iso.nix new file mode 100644 index 0000000..cfd9260 --- /dev/null +++ b/iso.nix @@ -0,0 +1,24 @@ +# Build: +# nix-build '' -A config.system.build.isoImage -I nixos-config=iso.nix +# +# Test: +# $ nix-shell -p qemu --run "qemu-system-x86_64 -enable-kvm -m 256 -cdrom result/iso/nixos-*.iso" +{ + config, + pkgs, + ... +}: { + imports = [ + + + # Provide an initial copy of the NixOS channel so that the user + # doesn't need to run "nix-channel --update" first. + + ]; + environment.systemPackages = [pkgs.git pkgs.sops]; + + # The build process is slow because of compression - use a faster compressor + isoImage.squashfsCompression = "gzip -Xcompression-level 1"; + + console.keyMap = "emacs2"; +} -- cgit v1.2.3