mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
6f1f3c810d
The install-grub script is perl, so the perlless profile should disable it by default.
34 lines
1.1 KiB
Nix
34 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, ... }:
|
|
|
|
{
|
|
|
|
# switch-to-configuration-ng reimplements switch-to-configuration, but
|
|
# without perl.
|
|
system.switch = lib.mkDefault {
|
|
enable = false;
|
|
enableNg = true;
|
|
};
|
|
|
|
# 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;
|
|
boot.loader.grub.enable = 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"];
|
|
|
|
}
|