From 750663add93ee940997467ba77fbf815082842e6 Mon Sep 17 00:00:00 2001 From: isabel Date: Fri, 19 Jul 2024 20:46:40 +0100 Subject: [PATCH] nixos/perlless: correct documented warning --- nixos/modules/profiles/perlless.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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]; + }