mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 20:29:47 +01:00
Clean up deprecated lib functions (#4068)
`isCoercibleToString` and `defaultPriority` will start raising warnings in 23.05.
This commit is contained in:
parent
2bbfc3a78a
commit
9b8ba302ff
2 changed files with 4 additions and 2 deletions
|
@ -30,7 +30,7 @@ let
|
|||
toString v
|
||||
else if isString v then
|
||||
v
|
||||
else if isCoercibleToString v then
|
||||
else if isConvertibleWithToString v then
|
||||
toString v
|
||||
else
|
||||
abort "The nix conf value: ${toPretty { } v} can not be encoded";
|
||||
|
|
|
@ -129,7 +129,9 @@ in {
|
|||
|
||||
config = {
|
||||
_module.args = {
|
||||
pkgs = mkOverride modules.defaultPriority _pkgs;
|
||||
# We use a no-op override to make sure that the option can be merged without evaluating
|
||||
# `_pkgs`, see https://github.com/nix-community/home-manager/pull/993
|
||||
pkgs = mkOverride modules.defaultOverridePriority _pkgs;
|
||||
pkgs_i686 =
|
||||
if _pkgs.stdenv.isLinux && _pkgs.stdenv.hostPlatform.isx86 then
|
||||
_pkgs.pkgsi686Linux
|
||||
|
|
Loading…
Reference in a new issue