nixos-config/flake-mods/allowUnfree.nix

12 lines
387 B
Nix
Raw Normal View History

{inputs, ...}: {
2024-10-08 11:19:34 +02:00
perSystem = {system, ...}: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
# The allowUnfreePredicate is due to home-manager#2942 (I haven't actually checked that it is necessary)
# https://github.com/nix-community/home-manager/issues/2942
2024-10-08 11:19:34 +02:00
config.allowUnfreePredicate = _: true;
};
};
}