You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error:
… while calling the 'head' builtin
at /nix/store/cb1gs888vfqxawvc65q1dk6jzbayh3wz-source/lib/attrsets.nix:1541:11:
1540| || pred here (elemAt values 1) (head values) then
1541| head values
| ^
1542| else
… while evaluating the attribute 'value'
at /nix/store/cb1gs888vfqxawvc65q1dk6jzbayh3wz-source/lib/modules.nix:809:9:
808| in warnDeprecation opt //
809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
810| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: expected a Boolean but found null: null
at /nix/store/9h5mvnz9wn5q3bf55q6r4iyvmdsvdw4g-source/modules/options.nix:177:66:
176| type = with types; bool;
177| default = config.services.flatpak.uninstallUnmanagedPackages || false;
| ^
178| description = lib.mdDoc ''
This is because the default value of the option services.flatpak.uninstallUnmanagedPackages is null, but null || false is not a valid expression in nix.
Even if null || false was valid, the option services.flatpak.uninstallUnmanaged is type bool (not nullOr bool) so this option couldn't take null anyway.
The text was updated successfully, but these errors were encountered:
Coherce `null` value to `false` when initialising
the value of uninstallUnmanaged from the
uninstallUnmanagedPackages option default
value.
Fixes issue #61.
Coherce `null` value to `false` when initialising
the value of uninstallUnmanaged from the
uninstallUnmanagedPackages option default
value.
Fixes issue #61.
Tested with
nixos-rebuild build --flake .
with the following:flake.nix
Which produces the following error:
This is because the default value of the option
services.flatpak.uninstallUnmanagedPackages
isnull
, butnull || false
is not a valid expression in nix.Even if
null || false
was valid, the optionservices.flatpak.uninstallUnmanaged
is typebool
(notnullOr bool
) so this option couldn't takenull
anyway.The text was updated successfully, but these errors were encountered: