flake: add nixpkgs-unstable overlay

This commit is contained in:
Antoine Martin 2021-02-15 17:23:25 +01:00
parent 1ec3d701ce
commit 1840ffb614
2 changed files with 28 additions and 4 deletions

View file

@ -16,9 +16,26 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1613226215,
"narHash": "sha256-3rA5cGIrBHD6yeKhNhsF7/t461ww25oJY8KyBb0IhjU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ff96a0fa5635770390b184ae74debea75c3fd534",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
} }
} }
}, },

View file

@ -2,16 +2,23 @@
description = "Nixos configuration with flakes"; description = "Nixos configuration with flakes";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09-small"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09-small";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
}; };
outputs = { self, nixpkgs }: { outputs = { self, nixpkgs, nixpkgs-unstable }: {
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem { nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux"; system = "x86_64-linux";
modules = modules =
[ [
./poseidon.nix ./poseidon.nix
{ {
nixpkgs.overlays = import ./overlays; nixpkgs.overlays = [
# packages accessible through pkgs.unstable.package
(final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${system};
})
] ++ (import ./overlays);
} }
]; ];
}; };