Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Last active December 29, 2023 12:46
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 stuart-warren/dc8d4ddf512cac8c4fb4f54560bf0d0c to your computer and use it in GitHub Desktop.
Save stuart-warren/dc8d4ddf512cac8c4fb4f54560bf0d0c to your computer and use it in GitHub Desktop.
Build NixOS iso for intel macbook
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix --verbose
{config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix>
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
];
# configure proprietary drivers
nixpkgs.config.allowUnfree = true;
boot.initrd.kernelModules = [ "wl" ];
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
# programs that should be available in the installer
environment.systemPackages = with pkgs; [
bash
vim
git
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment