diff --git a/templates/crawler/flake.nix b/templates/crawler/flake.nix index 65097de..65471c1 100644 --- a/templates/crawler/flake.nix +++ b/templates/crawler/flake.nix @@ -33,7 +33,13 @@ config.allowUnfree = true; overlays = [ - (final: prev: { unstable = inputs'.nixpkgs-unstable.legacyPackages; }) + (final: prev: { + unstable = import nixpkgs-unstable { + inherit system; + + config.allowUnfree = true; + }; + }) ]; }; diff --git a/templates/default/flake.nix b/templates/default/flake.nix index d6bf5ca..55b7350 100644 --- a/templates/default/flake.nix +++ b/templates/default/flake.nix @@ -33,7 +33,13 @@ config.allowUnfree = true; overlays = [ - (final: prev: { unstable = inputs'.nixpkgs-unstable.legacyPackages; }) + (final: prev: { + unstable = import nixpkgs-unstable { + inherit system; + + config.allowUnfree = true; + }; + }) ]; }; diff --git a/templates/go/flake.nix b/templates/go/flake.nix index 97210d0..92118e0 100644 --- a/templates/go/flake.nix +++ b/templates/go/flake.nix @@ -33,7 +33,13 @@ config.allowUnfree = true; overlays = [ - (final: prev: { unstable = inputs'.nixpkgs-unstable.legacyPackages; }) + (final: prev: { + unstable = import nixpkgs-unstable { + inherit system; + + config.allowUnfree = true; + }; + }) ]; }; @@ -117,7 +123,7 @@ gotools golangci-lint typescript-language-server - + # IDE unstable.helix typescript-language-server diff --git a/templates/nodejs/flake.nix b/templates/nodejs/flake.nix index 927900e..a17a337 100644 --- a/templates/nodejs/flake.nix +++ b/templates/nodejs/flake.nix @@ -3,17 +3,33 @@ inputs = { # nixpkgs.url = "github:NixOS/nixpkgs/24.11"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; sbrow.url = "github:sbrow/nix"; flake-parts.url = "github:hercules-ci/flake-parts"; }; - outputs = inputs@{ self, flake-parts, nixpkgs, sbrow }: + outputs = inputs@{ self, flake-parts, nixpkgs, nixpkgs-unstable, sbrow }: flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" ]; perSystem = { pkgs, system, ... }: { + _module.args.pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + + overlays = [ + (final: prev: { + unstable = import nixpkgs-unstable { + inherit system; + + config.allowUnfree = true; + }; + }) + ]; + }; + formatter = pkgs.nixpkgs-fmt; devShells.default = pkgs.mkShell diff --git a/templates/php/flake.nix b/templates/php/flake.nix index 79241b1..0c8ebcc 100644 --- a/templates/php/flake.nix +++ b/templates/php/flake.nix @@ -52,7 +52,13 @@ config.allowUnfree = true; overlays = [ - (final: prev: { unstable = inputs'.nixpkgs-unstable.legacyPackages; }) + (final: prev: { + unstable = import nixpkgs-unstable { + inherit system; + + config.allowUnfree = true; + }; + }) ]; }; diff --git a/templates/playwright/flake.nix b/templates/playwright/flake.nix index 40beb37..a4ab89b 100644 --- a/templates/playwright/flake.nix +++ b/templates/playwright/flake.nix @@ -33,7 +33,13 @@ config.allowUnfree = true; overlays = [ - (final: prev: { unstable = inputs'.nixpkgs-unstable.legacyPackages; }) + (final: prev: { + unstable = import nixpkgs-unstable { + inherit system; + + config.allowUnfree = true; + }; + }) ]; };