nixos-images/nix/installer.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
{
2024-09-22 17:56:58 +02:00
imports = [
2024-10-23 20:49:48 +02:00
# ./latest-zfs-kernel.nix
2024-09-22 17:56:58 +02:00
./nix-settings.nix
];
# 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;
2024-08-16 11:13:08 +02:00
# Enable bcachefs support
boot.supportedFilesystems.bcachefs = lib.mkDefault true;
# use latest kernel we can support to get more hardware support
2024-10-23 20:49:48 +02:00
# boot.zfs.package = pkgs.zfsUnstable;
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
2024-09-18 16:31:09 +02:00
# alternative to nixos-generate-config
# TODO: use nixpkgs again after next nixos release
(pkgs.callPackage ./nixos-facter.nix {})
pkgs.disko
];
# 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;
}