2023-05-15 14:54:05 +02:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2024-04-16 12:23:50 +02:00
|
|
|
# more descriptive hostname than just "nixos"
|
|
|
|
networking.hostName = lib.mkDefault "nixos-installer";
|
|
|
|
|
2023-05-15 14:54:05 +02:00
|
|
|
# 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
|
2023-12-12 11:10:33 +01:00
|
|
|
boot.kernelPackages = lib.mkDefault (pkgs.zfs.override {
|
|
|
|
removeLinuxDRM = pkgs.hostPlatform.isAarch64;
|
|
|
|
}).latestCompatibleLinuxPackages;
|
|
|
|
boot.zfs.removeLinuxDRM = lib.mkDefault pkgs.hostPlatform.isAarch64;
|
2023-05-15 14:54:05 +02:00
|
|
|
|
|
|
|
documentation.enable = false;
|
|
|
|
|
2024-01-15 17:03:47 +01:00
|
|
|
environment.systemPackages = [
|
|
|
|
# for zapping of disko
|
|
|
|
pkgs.jq
|
|
|
|
# for copying extra files of nixos-anywhere
|
|
|
|
pkgs.rsync
|
|
|
|
];
|
2023-05-15 14:54:05 +02:00
|
|
|
|
2023-11-19 13:23:42 +01:00
|
|
|
imports = [
|
|
|
|
./nix-settings.nix
|
|
|
|
];
|
|
|
|
|
2023-12-10 11:57:48 +01:00
|
|
|
# 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;
|
2023-05-15 14:54:05 +02:00
|
|
|
}
|