flake: cleanup unstable overlay on poseidon
This commit is contained in:
parent
d5deb3dc6c
commit
8a5664f848
31
flake.nix
31
flake.nix
|
@ -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,20 +68,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
nixpkgs.overlays =
|
nixpkgs.overlays = [
|
||||||
let
|
(final: prev: {
|
||||||
pkgsUnstable = nixpkgs-unstable.legacyPackages.${system};
|
# packages accessible through pkgs.unstable.package
|
||||||
in
|
unstable = pkgsUnstable;
|
||||||
[
|
|
||||||
# packages accessible through pkgs.unstable.package
|
bitwarden_rs = pkgsUnstable.bitwarden_rs;
|
||||||
(final: prev: {
|
bitwarden_rs-vault = pkgsUnstable.bitwarden_rs-vault;
|
||||||
unstable = pkgsUnstable;
|
})
|
||||||
})
|
];
|
||||||
(final: prev: {
|
|
||||||
bitwarden_rs = pkgsUnstable.bitwarden_rs;
|
|
||||||
bitwarden_rs-vault = pkgsUnstable.bitwarden_rs-vault;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue