Merge pull request #257 from nix-community/perlless

move perlless profile to noninteractive profile
This commit is contained in:
Jörg Thalheim 2024-07-22 06:13:11 +02:00 committed by GitHub
commit 907bd49df1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View file

@ -2,7 +2,6 @@
config,
lib,
pkgs,
modulesPath,
...
}:
{
@ -21,6 +20,9 @@
documentation.enable = false;
documentation.man.man-db.enable = false;
# make it easier to debug boot failures
boot.initrd.systemd.emergencyAccess = true;
environment.systemPackages = [
pkgs.nixos-install-tools
# for zapping of disko
@ -31,10 +33,6 @@
imports = [
./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

View file

@ -1,7 +1,7 @@
# This module optimizes for non-interactive deployments by remove some store paths
# which are primarily useful for interactive installations.
{ lib, pkgs, ... }:
{ lib, pkgs, modulesPath, ... }:
{
disabledModules = [
# This module adds values to multiple lists (systemPackages, supportedFilesystems)
@ -12,6 +12,10 @@
imports = [
./zfs-minimal.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