flake: add nixpkgs-unstable overlay
This commit is contained in:
parent
1ec3d701ce
commit
1840ffb614
2 changed files with 28 additions and 4 deletions
13
flake.nix
13
flake.nix
|
|
@ -2,16 +2,23 @@
|
|||
description = "Nixos configuration with flakes";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09-small";
|
||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem {
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable }: {
|
||||
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
modules =
|
||||
[
|
||||
./poseidon.nix
|
||||
|
||||
{
|
||||
nixpkgs.overlays = import ./overlays;
|
||||
nixpkgs.overlays = [
|
||||
# packages accessible through pkgs.unstable.package
|
||||
(final: prev: {
|
||||
unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||
})
|
||||
] ++ (import ./overlays);
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue