From 0c7a53d2d0041c027f477fe89f8860ed5ae0b98d Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 17 May 2016 01:48:26 +0200 Subject: modules/profiles/*: Rename to modules/core/* The name "profiles" really doesn't match what these modules are for. Instead they define the very core of Vuizvui and its internal plumbing and those options are available/enabled to all machines and modules. Signed-off-by: aszlig --- modules/core/licensing.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/core/licensing.nix (limited to 'modules/core/licensing.nix') diff --git a/modules/core/licensing.nix b/modules/core/licensing.nix new file mode 100644 index 00000000..1a7c9390 --- /dev/null +++ b/modules/core/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; + }; + }; +} -- cgit 1.4.1