home: packages: disable on 'useGlobalPkgs'
All checks were successful
ci/woodpecker/push/check Pipeline was successful

It doesn't do anything when `useGlobalPkgs` is set, and has started
warning about its upcoming deprecation.
This commit is contained in:
Bruno BELANYI 2025-02-24 14:15:01 +00:00
parent 337d7309c6
commit d3a953247c

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, osConfig, ... }:
let
cfg = config.my.home.packages;
useGlobalPkgs = osConfig.home-manager.useGlobalPkgs or false;
in
{
options.my.home.packages = with lib; {
@ -29,7 +30,7 @@ in
tree
] ++ cfg.additionalPackages);
nixpkgs.config = {
nixpkgs.config = lib.mkIf (!useGlobalPkgs) {
inherit (cfg) allowAliases allowUnfree;
};
};