Skip to content

Instantly share code, notes, and snippets.

@adisbladis
Last active August 29, 2022 18:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adisbladis/e5d20f9d013dc178457587d71df7c260 to your computer and use it in GitHub Desktop.
Save adisbladis/e5d20f9d013dc178457587d71df7c260 to your computer and use it in GitHub Desktop.
Nixos custom iso
# env NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix --no-out-link --show-trace
{ config, lib, pkgs, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix>
];
boot.kernelPackages = pkgs.linuxPackages_latest;
environment.systemPackages = with pkgs; [
# Custom packages goes here
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment