flake: cleanup unstable overlay on poseidon

This commit is contained in:
Antoine Martin 2021-05-27 20:26:47 +02:00
parent d5deb3dc6c
commit 8a5664f848

View file

@ -48,14 +48,16 @@
system = "x86_64-linux";
modules =
let
unstablePkgs = import nixpkgs-unstable { inherit system; };
pkgsUnstable = import nixpkgs-unstable { inherit system; };
in
[
./poseidon.nix
# hack to use an unstable home manager within a stable NixOS install,
# do not reproduce... at home :clown_face:
({ config, utils, ... }: home-manager.nixosModules.home-manager {
pkgs = unstablePkgs;
lib = unstablePkgs.lib;
pkgs = pkgsUnstable;
lib = pkgsUnstable.lib;
inherit config utils;
})
{
@ -66,16 +68,11 @@
}
{
nixpkgs.overlays =
let
pkgsUnstable = nixpkgs-unstable.legacyPackages.${system};
in
[
nixpkgs.overlays = [
(final: prev: {
# packages accessible through pkgs.unstable.package
(final: prev: {
unstable = pkgsUnstable;
})
(final: prev: {
bitwarden_rs = pkgsUnstable.bitwarden_rs;
bitwarden_rs-vault = pkgsUnstable.bitwarden_rs-vault;
})