diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-01-22 12:01:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 12:01:10 +0000 |
commit | 3a8094730e6ff9783b31c423af848b63abbeaebb (patch) | |
tree | 69bfe4e1abfdf5b0334ae81eb1fa7141b757dd98 /nixos/modules/profiles/perlless.nix | |
parent | 78b0905b1bfbbfc6879ecb23813966ad1b9639b5 (diff) | |
parent | 4e2e46fe89b071e008ee30908770e19c0f89ad2a (diff) | |
download | nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.gz nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.bz2 nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.lz nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.xz nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.tar.zst nixlib-3a8094730e6ff9783b31c423af848b63abbeaebb.zip |
Merge master into staging-next
Diffstat (limited to 'nixos/modules/profiles/perlless.nix')
-rw-r--r-- | nixos/modules/profiles/perlless.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixos/modules/profiles/perlless.nix b/nixos/modules/profiles/perlless.nix new file mode 100644 index 000000000000..90abd14f077e --- /dev/null +++ b/nixos/modules/profiles/perlless.nix @@ -0,0 +1,31 @@ +# 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, ... }: + +{ + + # 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; + + # 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; + 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". + system.forbiddenDependenciesRegex = "perl"; + +} |