Kieran's opinionated (and probably slightly dumb) nix config
at main 527 B view raw
1{ 2 lib, 3 pkgs, 4 config, 5 inputs, 6 ... 7}: 8{ 9 options.nixpkgs.enable = lib.mkEnableOption "Enable custom nixpkgs overlays/config"; 10 config = lib.mkIf config.nixpkgs.enable { 11 nixpkgs = { 12 overlays = [ 13 (final: prev: { 14 unstable = import inputs.nixpkgs-unstable { 15 inherit (pkgs.stdenv.hostPlatform) system; 16 config.allowUnfree = true; 17 }; 18 }) 19 ]; 20 config = { 21 allowUnfree = true; 22 allowUnfreePredicate = _: true; 23 }; 24 }; 25 }; 26}