nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix --verbose
Last active
December 29, 2023 12:46
-
-
Save stuart-warren/dc8d4ddf512cac8c4fb4f54560bf0d0c to your computer and use it in GitHub Desktop.
Build NixOS iso for intel macbook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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