From da940e797352dd428e3ac13523b4e762c5251eb5 Mon Sep 17 00:00:00 2001 From: jasmine Date: Sat, 22 Mar 2025 22:35:40 +0800 Subject: [PATCH] chore: allow unfree packages --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 22ea14d..d1dca67 100644 --- a/flake.nix +++ b/flake.nix @@ -25,10 +25,15 @@ system, ... }: let + # Extend pkgs to allow unfree packages + pkgsWithUnfree = import inputs.nixpkgs { + inherit system; + config.allowUnfree = true; + }; nixvimLib = nixvim.lib.${system}; nixvim' = nixvim.legacyPackages.${system}; nixvimModule = { - inherit pkgs; + pkgs = pkgsWithUnfree; module = import ./config; # import the module directly # You can use `extraSpecialArgs` to pass additional arguments to your module files extraSpecialArgs = {