summaryrefslogtreecommitdiffstats
path: root/tv/3modules/nixpkgs-overlays.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-09-19 20:45:15 +0200
committerlassulus <lassulus@lassul.us>2017-09-19 20:45:15 +0200
commitd30480f1457cf4ac4f67f5e02faec75765706e50 (patch)
tree3351e0b97b3ea5ac5cdfc382559e0834714a9b9a /tv/3modules/nixpkgs-overlays.nix
parent358ff6da9c9b7b2ae574f759a8af6266ce642baa (diff)
parented9a1085946589409caba6e18233c329d99c0b4b (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/3modules/nixpkgs-overlays.nix')
-rw-r--r--tv/3modules/nixpkgs-overlays.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/tv/3modules/nixpkgs-overlays.nix b/tv/3modules/nixpkgs-overlays.nix
new file mode 100644
index 000000000..4eb7a86bd
--- /dev/null
+++ b/tv/3modules/nixpkgs-overlays.nix
@@ -0,0 +1,23 @@
+with import <stockholm/lib>;
+{ config, pkgs, ... }: {
+
+ options.tv.nixpkgs-overlays = mkOption {
+ apply = src:
+ pkgs.runCommand "nixpkgs-overlays" {} ''
+ mkdir $out
+ ${concatStringsSep "\n" (mapAttrsToList (name: path:
+ "ln -s ${shell.escape path} $out/${shell.escape name}"
+ ) src)}
+ '' // {
+ inherit src;
+ };
+ type = types.attrsOf types.absolute-pathname;
+ };
+
+ config = {
+ tv.nixpkgs-overlays = {
+ krebs = mkDefault "/var/src/stockholm/krebs/5pkgs";
+ tv = mkDefault "/var/src/stockholm/tv/5pkgs";
+ };
+ };
+}