nixos-config/flake.nix

35 lines
978 B
Nix

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