nixos-images/nix/installer.nix

41 lines
1 KiB
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
{
# more descriptive hostname than just "nixos"
networking.hostName = lib.mkDefault "nixos-installer";
# We are stateless, so just default to latest.
system.stateVersion = config.system.nixos.version;
# use latest kernel we can support to get more hardware support
boot.kernelPackages =
lib.mkDefault
(pkgs.zfs.override { removeLinuxDRM = pkgs.hostPlatform.isAarch64; }).latestCompatibleLinuxPackages;
2023-12-12 11:10:33 +01:00
boot.zfs.removeLinuxDRM = lib.mkDefault pkgs.hostPlatform.isAarch64;
documentation.enable = false;
2024-05-19 17:08:41 +02:00
documentation.man.man-db.enable = false;
# make it easier to debug boot failures
boot.initrd.systemd.emergencyAccess = true;
2024-01-15 17:03:47 +01:00
environment.systemPackages = [
2024-05-26 09:50:14 +02:00
pkgs.nixos-install-tools
2024-01-15 17:03:47 +01:00
# for zapping of disko
pkgs.jq
# for copying extra files of nixos-anywhere
pkgs.rsync
];
imports = [
./nix-settings.nix
];
# Don't add nixpkgs to the image to save space, for our intended use case we don't need it
system.installer.channel.enable = false;
}