2023-04-13 22:08:30 +02:00
|
|
|
# This module optimizes for non-interactive deployments by remove some store paths
|
|
|
|
# which are primarily useful for interactive installations.
|
|
|
|
|
2023-05-07 22:19:04 +02:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2023-04-13 22:08:30 +02:00
|
|
|
disabledModules = [
|
|
|
|
# This module adds values to multiple lists (systemPackages, supportedFilesystems)
|
|
|
|
# which are impossible/unpractical to remove, so we disable the entire module.
|
|
|
|
"profiles/base.nix"
|
|
|
|
];
|
|
|
|
|
|
|
|
# among others, this prevents carrying a stdenv with gcc in the image
|
|
|
|
system.extraDependencies = lib.mkForce [];
|
|
|
|
|
|
|
|
# prevents shipping nixpkgs, unnecessary if system is evaluated externally
|
|
|
|
nix.registry = lib.mkForce {};
|
|
|
|
|
|
|
|
# would pull in nano
|
|
|
|
programs.nano.syntaxHighlight = lib.mkForce false;
|
|
|
|
|
2023-05-07 22:19:04 +02:00
|
|
|
# prevents nano, strace
|
|
|
|
environment.defaultPackages = lib.mkForce [ pkgs.rsync ];
|
2023-04-13 22:08:30 +02:00
|
|
|
|
|
|
|
# zfs support is accidentally disabled by excluding base.nix, re-enable it
|
|
|
|
boot = {
|
|
|
|
kernelModules = [ "zfs" ];
|
|
|
|
extraModulePackages = [ config.boot.kernelPackages.zfs ];
|
|
|
|
};
|
2023-05-07 21:32:47 +02:00
|
|
|
|
|
|
|
# we can drop this after 23.05 has been released, which has this set by default
|
|
|
|
hardware.enableRedistributableFirmware = lib.mkForce false;
|
2023-04-13 22:08:30 +02:00
|
|
|
}
|