Skip to content

Instantly share code, notes, and snippets.

@YellowOnion
Created January 20, 2020 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YellowOnion/60f7eb0b2fcd5a0f5bc5e97bb2f8e8a6 to your computer and use it in GitHub Desktop.
Save YellowOnion/60f7eb0b2fcd5a0f5bc5e97bb2f8e8a6 to your computer and use it in GitHub Desktop.
{ lib, pkgs, ... }:
with lib;
{
imports = [
<nixpkgs/nixos/modules/profiles/minimal.nix>
<nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix>
];
fonts.fontconfig.enable = false;
isoImage.makeEfiBootable = true;
isoImage.makeUsbBootable = true;
system.build.squashfsStore = mkForce (pkgs.callPackage (pkgs.path + "/nixos/lib/make-squashfs.nix")
{
storeContents = config.isoImage.storeContents;
#comp = "zstd";
}
);
environment.systemPackages = with pkgs; [
bash
wget
dmidecode
pciutils
];
}
# nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=/opt/1vyrain-small.squashfs.
nix --show-trace
error: while evaluating the attribute 'sources' of the derivation 'nixos.iso' at /nix/var/nix/profiles/per-user/root/channels/nixpkgs/nixos/lib/make-iso9660-image.nix:49:3:
cannot coerce a set to a string, at /nix/var/nix/profiles/per-user/root/channels/nixpkgs/nixos/lib/make-iso9660-image.nix:49:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment