diff --git a/nixos/modules/profiles/perlless.nix b/nixos/modules/profiles/perlless.nix index 6257589ef9eb..f34c3d2d210b 100644 --- a/nixos/modules/profiles/perlless.nix +++ b/nixos/modules/profiles/perlless.nix @@ -1,8 +1,4 @@ -# 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, ... }: +{ lib, pkgs, ... }: { @@ -31,4 +27,8 @@ # string "perl". system.forbiddenDependenciesRegexes = ["perl"]; + # Re-add nixos-rebuild to the systemPackages that was removed by the + # `system.disableInstallerTools` option. + environment.systemPackages = [pkgs.nixos-rebuild]; + }