1# WARNING: If you enable this profile, you will NOT be able to switch to a new
2# configuration and thus you will not be able to rebuild your system with
3# nixos-rebuild!
4
5{ lib, ... }:
6
7{
8
9 # Disable switching to a new configuration. This is not a necessary
10 # limitation of a perlless system but just a current one. In the future,
11 # perlless switching might be possible.
12 system.switch.enable = lib.mkDefault false;
13
14 # Remove perl from activation
15 boot.initrd.systemd.enable = lib.mkDefault true;
16 system.etc.overlay.enable = lib.mkDefault true;
17 systemd.sysusers.enable = lib.mkDefault true;
18
19 # Random perl remnants
20 system.disableInstallerTools = lib.mkDefault true;
21 programs.less.lessopen = lib.mkDefault null;
22 programs.command-not-found.enable = lib.mkDefault false;
23 boot.enableContainers = lib.mkDefault false;
24 environment.defaultPackages = lib.mkDefault [ ];
25 documentation.info.enable = lib.mkDefault false;
26
27 # Check that the system does not contain a Nix store path that contains the
28 # string "perl".
29 system.forbiddenDependenciesRegexes = ["perl"];
30
31}