add unstable nixpkgs as overlay and special arg
1 file changed, 17 insertions(+), 1 deletion(-)
changed files
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; }; }