about summary refs log tree commit diff
path: root/modules/profiles/licensing.nix
blob: 1a7c9390695133257cec6117d85816279b8ea92e (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) system;
    config = config.nixpkgs.config // newConfig;
  };

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

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