388bed4820
This module allows to have per-system nixpkgs-overlays and is required because at the moment of committing, only xu has an up-to-date stockholm development directory in /home/tv/stockholm.
24 lines
588 B
Nix
24 lines
588 B
Nix
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";
|
|
};
|
|
};
|
|
}
|