Skip to content

Commit

Permalink
nixos: remove environment.noXlibs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjm committed Sep 14, 2024
1 parent 252c937 commit f916966
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 109 deletions.
8 changes: 3 additions & 5 deletions nixos/doc/manual/configuration/profiles/minimal.section.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Minimal {#sec-profile-minimal}

This profile defines a small NixOS configuration. It does not contain any
graphical stuff. It's a very short file that enables
[noXlibs](#opt-environment.noXlibs), sets
[](#opt-i18n.supportedLocales) to
only support the user-selected locale,
and [disables packages' documentation](#opt-documentation.enable).
graphical stuff. It's a very short file that sets [](#opt-i18n.supportedLocales)
to only support the user-selected locale, and
[disables packages' documentation](#opt-documentation.enable).
3 changes: 3 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@

- `pkgs.nextcloud27` has been removed since it's EOL.

- The `environment.noXlibs` option has been removed. It was a common source of unexpected rebuilds and breakage that was often hard to diagnose.
If you need to disable certain libraries, you're encouraged to add your own overlay to your configuration that targets the packages you care about.

- `frigate` was updated past 0.14.0. This release includes various breaking changes, so please go read the [release notes](https://github.com/blakeblackshear/frigate/releases/tag/v0.14.0).
Most prominently access to the webinterface and API are now protected by authentication. Retrieve the auto-created
admin account from the `frigate.service` journal after upgrading.
Expand Down
91 changes: 0 additions & 91 deletions nixos/modules/config/no-x-libs.nix

This file was deleted.

3 changes: 0 additions & 3 deletions nixos/modules/installer/cd-dvd/installation-cd-minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
./installation-cd-base.nix
];

# Causes a lot of uncached builds for a negligible decrease in size.
environment.noXlibs = lib.mkOverride 500 false;

documentation.man.enable = lib.mkOverride 500 true;

# Although we don't really need HTML documentation in the minimal installer,
Expand Down
1 change: 0 additions & 1 deletion nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
./config/nix-channel.nix
./config/nix-flakes.nix
./config/nix-remote-build.nix
./config/no-x-libs.nix
./config/nsswitch.nix
./config/power-management.nix
./config/pulseaudio.nix
Expand Down
2 changes: 0 additions & 2 deletions nixos/modules/profiles/minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
with lib;

{
environment.noXlibs = mkDefault true;

documentation.enable = mkDefault false;

documentation.doc.enable = mkDefault false;
Expand Down
4 changes: 4 additions & 0 deletions nixos/modules/rename.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ in

# Completely removed modules
(mkRemovedOptionModule [ "environment" "blcr" "enable" ] "The BLCR module has been removed")
(mkRemovedOptionModule [ "environment" "noXlibs" ] ''
The environment.noXlibs option was removed, as it often caused surprising breakages for new users.
If you need its functionality, you can apply similar overlays in your own config.
'')
(mkRemovedOptionModule [ "fonts" "fontconfig" "penultimate" ] "The corresponding package has removed from nixpkgs.")
(mkRemovedOptionModule [ "hardware" "brightnessctl" ] ''
The brightnessctl module was removed because newer versions of
Expand Down
1 change: 0 additions & 1 deletion nixos/modules/virtualisation/lxc-instance-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
services.openssh.startWhenNeeded = lib.mkDefault true;

# As this is intended as a standalone image, undo some of the minimal profile stuff
environment.noXlibs = false;
documentation.enable = true;
documentation.nixos.enable = true;
services.logrotate.enable = true;
Expand Down
6 changes: 0 additions & 6 deletions pkgs/by-name/he/hello/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ stdenv.mkDerivation (finalAttrs: {

passthru.tests = {
version = testers.testVersion { package = hello; };

invariant-under-noXlibs =
testers.testEqualDerivation
"hello must not be rebuilt when environment.noXlibs is set."
hello
(nixos { environment.noXlibs = true; }).pkgs.hello;
};

passthru.tests.run = callPackage ./test.nix { hello = finalAttrs.finalPackage; };
Expand Down

0 comments on commit f916966

Please sign in to comment.