about summary refs log tree commit diff
path: root/modules/core/licensing.nix
blob: 1a3ffd5fb1a639719821ed73f01ff5d5f987d978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, ... }:

let
  overrideConfig = newConfig: import (import ../../nixpkgs-path.nix) {
    inherit (config.nixpkgs) localSystem;
    config = config.nixpkgs.config // newConfig;
  };

in {
  _module.args = {
    unfreePkgs = overrideConfig {
      whitelistedLicenses = [ lib.licenses.unfreeRedistributable ];
    };

    unfreeAndNonDistributablePkgs = overrideConfig {
      allowUnfree = true;
    };
  };
}