about summary refs log tree commit diff
path: root/nixos/modules/profiles/perlless.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/profiles/perlless.nix')
-rw-r--r--nixos/modules/profiles/perlless.nix18
1 files changed, 7 insertions, 11 deletions
diff --git a/nixos/modules/profiles/perlless.nix b/nixos/modules/profiles/perlless.nix
index 010e4f8f2a28e..c331a90882676 100644
--- a/nixos/modules/profiles/perlless.nix
+++ b/nixos/modules/profiles/perlless.nix
@@ -1,26 +1,18 @@
-# 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, ... }:
 
 {
 
-  # Disable switching to a new configuration. This is not a necessary
-  # limitation of a perlless system but just a current one. In the future,
-  # perlless switching might be possible.
-  system.switch.enable = lib.mkDefault false;
-
   # Remove perl from activation
   boot.initrd.systemd.enable = lib.mkDefault true;
   system.etc.overlay.enable = lib.mkDefault true;
-  systemd.sysusers.enable = lib.mkDefault true;
+  services.userborn.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;
 
@@ -28,4 +20,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];
+
 }