From 97012c034cd30e358179771d1900d4fbd5b937f7 Mon Sep 17 00:00:00 2001 From: Martin Lasson Date: Thu, 30 Jan 2025 20:58:05 +0100 Subject: [PATCH] Allow unfree nixpkgs for systems and home manager --- flake.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 5fb5769..da950d7 100644 --- a/flake.nix +++ b/flake.nix @@ -43,7 +43,12 @@ }: builder { inherit system; - pkgs = import nixpkgs { inherit system; }; + pkgs = import nixpkgs { + inherit system; + config = { + allowUnfree = true; + }; + }; modules = [ { nix.settings.experimental-features = "nix-command flakes"; @@ -61,7 +66,12 @@ extraModules ? [ ], }: home-manager.lib.homeManagerConfiguration { - pkgs = import nixpkgs { inherit system; }; + pkgs = import nixpkgs { + inherit system; + config = { + allowUnfree = true; + }; + }; modules = [ ./nix/pkgs/home.nix ./nix/local_home.nix