diff --git a/flake.nix b/flake.nix index 2579988..00351da 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,14 @@ outputs = { nixpkgs, nixpkgs-unstable, home-manager, agenix, ... }: let system = "aarch64-darwin"; - pkgs = nixpkgs.legacyPackages.${system}; + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + pkgs-unstable = import nixpkgs-unstable { + inherit system; + config.allowUnfree = true; + }; in { homeConfigurations."millironx" = home-manager.lib.homeManagerConfiguration { @@ -30,9 +37,7 @@ # Optionally use extraSpecialArgs # to pass through arguments to home.nix - extraSpecialArgs = { - pkgs-unstable = nixpkgs-unstable.legacyPackages.${system}; - }; + extraSpecialArgs = { inherit pkgs-unstable; }; }; }; }