Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/misc/news/2025/12/2025-12-11_14-45-59.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
time = "2025-12-11T13:45:59+00:00";
condition = true;
message = ''
BREAKING CHANGE:

home-manager.useGlobalPkgs is true by default and will become ineffective after 26.11.
Using a different set of pkgs for home-manager and nixos has been a constant source of confusion
for newcomers and does not make a lot of sense so we are getting rid of this option.
'';
}
4 changes: 3 additions & 1 deletion modules/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ let

(lib.optional useNixpkgsModule ./misc/nixpkgs.nix)

(lib.optional (!useNixpkgsModule) ./misc/nixpkgs-disabled.nix)
(lib.optional (!useNixpkgsModule) (
lib.warn "useNixpkgsModule is going to be ineffective after 26.11" ./misc/nixpkgs-disabled.nix
))

(
if minimal then
Expand Down
13 changes: 9 additions & 4 deletions nixos/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,15 @@ in
installation of user packages through the
{option}`users.users.<name>.packages` option'';

useGlobalPkgs = mkEnableOption ''
using the system configuration's `pkgs`
argument in Home Manager. This disables the Home Manager
options {option}`nixpkgs.*`'';
useGlobalPkgs =
mkEnableOption
''
using the system configuration's `pkgs`
argument in Home Manager. This disables the Home Manager
options {option}`nixpkgs.*`''
{
default = true;
};

backupCommand = mkOption {
type = types.nullOr (types.either types.str types.path);
Expand Down