Include unstable channel as overlay

This allows nix cli tools to access unstable from niv’s pinned rev
(instead of having to rely on uncached and unpinned
channel:nixos-unstable). Also packageOverrides might get
deprecated/removed[1] eventually.

[1]: https://github.com/NixOS/nixpkgs/issues/43266
This commit is contained in:
Simon Bruder 2021-03-29 12:03:58 +02:00
parent cb8a8f3c8d
commit a7ad88a5ec
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -119,18 +119,14 @@ in
};
systemd.services.nix-daemon.serviceConfig.CPUSchedulingPolicy = "batch";
nixpkgs.config = {
# Add unstable channel
packageOverrides = pkgs: {
nixpkgs.overlays = [
(import ../pkgs)
(final: prev: {
unstable = import (import ../nix/sources.nix).nixpkgs-unstable {
config = config.nixpkgs.config;
overlays = config.nixpkgs.overlays;
};
};
};
nixpkgs.overlays = [
(import ../pkgs)
})
];
# Globally set Lets Encrypt requirements