From 890df162258855952958133b6ddc505553367bd6 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Wed, 28 Sep 2022 07:20:32 -0500 Subject: [PATCH] make an iso profile for building isos nix-build "" -A config.system.build.isoImage -I nixos-config=$PWD/profiles/iso -o iso --- .gitignore | 1 + profiles/iso/default.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 profiles/iso/default.nix diff --git a/.gitignore b/.gitignore index 4ca0f23..3a3ce66 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ \#* *~ result +iso _*.nix !.gitignore diff --git a/profiles/iso/default.nix b/profiles/iso/default.nix new file mode 100644 index 0000000..72b4a78 --- /dev/null +++ b/profiles/iso/default.nix @@ -0,0 +1,13 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = [ (toString ../base) "${import ../../nixpkgs-path.nix}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" ]; + + config = { + hardware.video.hidpi.enable = lib.mkDefault true; + isoImage.squashfsCompression = "gzip -Xcompression-level 1"; + }; +}