No separate package for nixpkgs
This commit is contained in:
parent
4d7721ecfa
commit
a8fa2fb0d8
1 changed files with 1 additions and 9 deletions
10
lib.nix
10
lib.nix
|
@ -12,19 +12,11 @@
|
|||
|
||||
mkSystem = { nixpkgs, system ? "x86_64-linux", rev ? "git", extraModules ? [ ], ... }:
|
||||
let
|
||||
pkgs = import (nixpkgs) {
|
||||
inherit (machine.config.nixpkgs) config overlays;
|
||||
};
|
||||
nixPath = pkgs.runCommand "nix-path"
|
||||
{ } ''
|
||||
mkdir -p $out
|
||||
ln -s "${nixpkgs}" $out/nixpkgs
|
||||
'';
|
||||
machine = import "${nixpkgs}/nixos/lib/eval-config.nix" {
|
||||
inherit system;
|
||||
modules = [
|
||||
({ ... }: {
|
||||
nix.nixPath = [ "${nixPath}" ];
|
||||
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
||||
})
|
||||
] ++ extraModules;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue