home: packages: disable on 'useGlobalPkgs'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
337d7309c6
commit
d3a953247c
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue