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"; system = "x86_64-linux";
modules = modules =
let let
unstablePkgs = import nixpkgs-unstable { inherit system; }; pkgsUnstable = import nixpkgs-unstable { inherit system; };
in in
[ [
./poseidon.nix ./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 { ({ config, utils, ... }: home-manager.nixosModules.home-manager {
pkgs = unstablePkgs; pkgs = pkgsUnstable;
lib = unstablePkgs.lib; lib = pkgsUnstable.lib;
inherit config utils; inherit config utils;
}) })
{ {
@ -66,16 +68,11 @@
} }
{ {
nixpkgs.overlays = nixpkgs.overlays = [
let (final: prev: {
pkgsUnstable = nixpkgs-unstable.legacyPackages.${system};
in
[
# packages accessible through pkgs.unstable.package # packages accessible through pkgs.unstable.package
(final: prev: {
unstable = pkgsUnstable; unstable = pkgsUnstable;
})
(final: prev: {
bitwarden_rs = pkgsUnstable.bitwarden_rs; bitwarden_rs = pkgsUnstable.bitwarden_rs;
bitwarden_rs-vault = pkgsUnstable.bitwarden_rs-vault; bitwarden_rs-vault = pkgsUnstable.bitwarden_rs-vault;
}) })