about summary refs log tree commit diff
path: root/modules/core/licensing.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-05-17 01:48:26 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-05-17 01:48:26 +0200
commit0c7a53d2d0041c027f477fe89f8860ed5ae0b98d (patch)
tree2f5a34d021f4a7bff3956ae17088d7dadf911c6b /modules/core/licensing.nix
parentc3968ea04fe71b9e45432980c8c8326c7572eac6 (diff)
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/core/licensing.nix')
-rw-r--r--modules/core/licensing.nix19
1 files changed, 19 insertions, 0 deletions
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;
+    };
+  };
+}