make an iso profile for building isos
nix-build "<nixpkgs/nixos>" -A config.system.build.isoImage -I nixos-config=$PWD/profiles/iso -o iso
This commit is contained in:
parent
858aa43c40
commit
890df16225
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,5 +2,6 @@
|
|||
\#*
|
||||
*~
|
||||
result
|
||||
iso
|
||||
_*.nix
|
||||
!.gitignore
|
||||
|
|
13
profiles/iso/default.nix
Normal file
13
profiles/iso/default.nix
Normal file
|
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user