diff options
Diffstat (limited to 'modules/profiles/licensing.nix')
-rw-r--r-- | modules/profiles/licensing.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/profiles/licensing.nix b/modules/profiles/licensing.nix new file mode 100644 index 00000000..1a7c9390 --- /dev/null +++ b/modules/profiles/licensing.nix @@ -0,0 +1,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; + }; + }; +} |