8814c364a3
and turn it in to a list. The current setting of system.forbiddenDependenciesRegex is a string, meaning only one such regex as any additional setting would result in conflicts. As maintainers have already started using this setting eg. in profiles, it would be good if this setting would accept a list of regex to allow the end user to make use of it in addition to package maintainers.
31 lines
1.1 KiB
Nix
31 lines
1.1 KiB
Nix
# WARNING: If you enable this profile, you will NOT be able to switch to a new
|
|
# configuration and thus you will not be able to rebuild your system with
|
|
# nixos-rebuild!
|
|
|
|
{ lib, ... }:
|
|
|
|
{
|
|
|
|
# Disable switching to a new configuration. This is not a necessary
|
|
# limitation of a perlless system but just a current one. In the future,
|
|
# perlless switching might be possible.
|
|
system.switch.enable = lib.mkDefault false;
|
|
|
|
# Remove perl from activation
|
|
boot.initrd.systemd.enable = lib.mkDefault true;
|
|
system.etc.overlay.enable = lib.mkDefault true;
|
|
systemd.sysusers.enable = lib.mkDefault true;
|
|
|
|
# Random perl remnants
|
|
system.disableInstallerTools = lib.mkDefault true;
|
|
programs.less.lessopen = lib.mkDefault null;
|
|
programs.command-not-found.enable = lib.mkDefault false;
|
|
boot.enableContainers = lib.mkDefault false;
|
|
environment.defaultPackages = lib.mkDefault [ ];
|
|
documentation.info.enable = lib.mkDefault false;
|
|
|
|
# Check that the system does not contain a Nix store path that contains the
|
|
# string "perl".
|
|
system.forbiddenDependenciesRegexes = ["perl"];
|
|
|
|
}
|