[Overlays] Fix unstable config (allow all unfree packages, and import overlays)

This commit is contained in:
Antoine Viallon 2022-03-28 23:34:42 +02:00
parent 16c5d7f9cd
commit 8d1acaca33
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -2,7 +2,10 @@
with lib;
let
cfg = config.aviallon.overlays;
unstable = import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz") { config = config.nixpkgs.config; };
unstable = import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz") {
config = config.nixpkgs.config // { allowUnfree = true; } ;
overlays = config.nixpkgs.overlays;
};
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; };
optimizeWithFlags = pkg: flags:
pkg.overrideAttrs (attrs: {