add unstable nixpkgs as overlay and special arg
2 files changed, 34 insertions(+), 1 deletion(-)
changed files
M flake.lock → flake.lock
@@ -424,6 +424,22 @@ "repo": "nixpkgs", "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1780336545, + "narHash": "sha256-vhVhuXzFrIOfcssC/9hDHx7MHzDKjF3keHuREOQqQiQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4df1b885d76a54e1aa1a318f8d16fd6005b6401f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgsUnstable": { "locked": { "lastModified": 1779560665,@@ -655,6 +671,7 @@ "mycal": "mycal", "nanopi": "nanopi", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_4", + "nixpkgs-unstable": "nixpkgs-unstable", "nixvim": "nixvim", "rosetta-builder": "rosetta-builder", "scriptura": "scriptura",
M flake.nix → flake.nix
@@ -2,6 +2,7 @@ { inputs = { flake-compatish.url = "github:lillecarl/flake-compatish"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; srvos = { url = "github:nix-community/srvos";@@ -76,9 +77,24 @@ modules, ... }@args: nixpkgs.lib.nixosSystem ( + let + pkgsUnstable = import nixpkgs-unstable { inherit system; }; + in { - inherit system modules; + inherit system; + modules = [ + { + nixpkgs.overlays = overlays ++ [ + (self: super: { + unstable = pkgsUnstable; + personal = import ./packages/overlay.nix self super; + }) + ]; + } + ] + ++ modules; specialArgs = { + inherit pkgsUnstable; inherit inputs; }; }