move perlless profile to noninteractive profile

this borked our iso
This commit is contained in:
Jörg Thalheim 2024-07-21 16:20:42 +02:00
parent accee00573
commit 067aa8908b
2 changed files with 8 additions and 6 deletions

View file

@ -2,7 +2,6 @@
config, config,
lib, lib,
pkgs, pkgs,
modulesPath,
... ...
}: }:
{ {
@ -21,6 +20,9 @@
documentation.enable = false; documentation.enable = false;
documentation.man.man-db.enable = false; documentation.man.man-db.enable = false;
# make it easier to debug boot failures
boot.initrd.systemd.emergencyAccess = true;
environment.systemPackages = [ environment.systemPackages = [
pkgs.nixos-install-tools pkgs.nixos-install-tools
# for zapping of disko # for zapping of disko
@ -31,10 +33,6 @@
imports = [ imports = [
./nix-settings.nix ./nix-settings.nix
# reduce closure size by removing perl
"${modulesPath}/profiles/perlless.nix"
# FIXME: we still are left with nixos-generate-config due to nixos-install-tools
{ system.forbiddenDependenciesRegexes = lib.mkForce []; }
]; ];
# Don't add nixpkgs to the image to save space, for our intended use case we don't need it # Don't add nixpkgs to the image to save space, for our intended use case we don't need it

View file

@ -1,7 +1,7 @@
# This module optimizes for non-interactive deployments by remove some store paths # This module optimizes for non-interactive deployments by remove some store paths
# which are primarily useful for interactive installations. # which are primarily useful for interactive installations.
{ lib, pkgs, ... }: { lib, pkgs, modulesPath, ... }:
{ {
disabledModules = [ disabledModules = [
# This module adds values to multiple lists (systemPackages, supportedFilesystems) # This module adds values to multiple lists (systemPackages, supportedFilesystems)
@ -12,6 +12,10 @@
imports = [ imports = [
./zfs-minimal.nix ./zfs-minimal.nix
./no-bootloaders.nix ./no-bootloaders.nix
# reduce closure size by removing perl
"${modulesPath}/profiles/perlless.nix"
# FIXME: we still are left with nixos-generate-config due to nixos-install-tools
{ system.forbiddenDependenciesRegexes = lib.mkForce []; }
]; ];
# among others, this prevents carrying a stdenv with gcc in the image # among others, this prevents carrying a stdenv with gcc in the image