forked from DGNum/liminix
seedrng #3
1 changed files with 10 additions and 2 deletions
|
@ -83,11 +83,11 @@ let
|
||||||
localSystem = cfg.hostPlatform;
|
localSystem = cfg.hostPlatform;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
import <nixpkgs> ({
|
import cfg.source ({
|
||||||
inherit (cfg) config overlays;
|
inherit (cfg) config overlays;
|
||||||
} // systemArgs)
|
} // systemArgs)
|
||||||
else
|
else
|
||||||
import <nixpkgs> {
|
import cfg.source {
|
||||||
inherit (cfg) config overlays localSystem crossSystem;
|
inherit (cfg) config overlays localSystem crossSystem;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -97,6 +97,14 @@ in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.nixpkgs = {
|
options.nixpkgs = {
|
||||||
|
source = mkOption {
|
||||||
|
type = types.package // {
|
||||||
|
description = "Source of a nixpkgs repository";
|
||||||
|
};
|
||||||
|
|
||||||
|
default = <nixpkgs>;
|
||||||
|
defaultText = "<nixpkgs>";
|
||||||
|
};
|
||||||
|
|
||||||
pkgs = mkOption {
|
pkgs = mkOption {
|
||||||
defaultText = literalExpression ''
|
defaultText = literalExpression ''
|
||||||
|
|
Loading…
Reference in a new issue