2023-10-17 14:40:26 +00:00
|
|
|
# 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, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2024-06-06 03:12:09 +00:00
|
|
|
# switch-to-configuration-ng reimplements switch-to-configuration, but
|
|
|
|
# without perl.
|
|
|
|
system.switch = lib.mkDefault {
|
|
|
|
enable = false;
|
|
|
|
enableNg = true;
|
|
|
|
};
|
2023-10-17 14:40:26 +00:00
|
|
|
|
|
|
|
# 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;
|
2024-06-22 06:27:58 +00:00
|
|
|
boot.loader.grub.enable = lib.mkDefault false;
|
2023-10-17 14:40:26 +00:00
|
|
|
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".
|
2024-04-05 12:34:12 +00:00
|
|
|
system.forbiddenDependenciesRegexes = ["perl"];
|
2023-10-17 14:40:26 +00:00
|
|
|
|
|
|
|
}
|