custom nixos iso build confs
This commit is contained in:
commit
b47437ff17
6 changed files with 35 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
*.iso
|
||||
result
|
||||
7
common.nix
Normal file
7
common.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
|
||||
environment.systemPackages = with pkgs; [ git htop btop usbutils pciutils file iotop iftop tmux micro (pass.withExtensions (ext: [ext.pass-otp])) ];
|
||||
}
|
||||
12
graphical-iso.nix
Normal file
12
graphical-iso.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix>
|
||||
|
||||
# Provide an initial copy of the NixOS channel so that the user
|
||||
# doesn't need to run "nix-channel --update" first.
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
||||
./common.nix
|
||||
];
|
||||
|
||||
}
|
||||
12
minimal-iso.nix
Normal file
12
minimal-iso.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
|
||||
|
||||
# Provide an initial copy of the NixOS channel so that the user
|
||||
# doesn't need to run "nix-channel --update" first.
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
||||
./common.nix
|
||||
];
|
||||
|
||||
}
|
||||
1
scripts/build-graphical.sh
Normal file
1
scripts/build-graphical.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=graphical-iso.nix
|
||||
1
scripts/build-minimal.sh
Normal file
1
scripts/build-minimal.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=minimal-iso.nix
|
||||
Loading…
Add table
Add a link
Reference in a new issue