diff options
author | Ben Sima <ben@bsima.me> | 2019-08-31 00:50:27 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-08-31 00:50:27 -0700 |
commit | 003990b6630d4b08d3bd1aa58bc1f4bb430154b2 (patch) | |
tree | a53a33950adcdd6e44faf15bcb5030e4e08d85c0 /default.nix | |
parent | 19732ae8d1da6347ab48c1123758fde6ace7a734 (diff) |
depo: pass nixos as an argument
this allows us to centralize the nixpkgs import.
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/default.nix b/default.nix index ab8089b..b894aa2 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,9 @@ let - nixpkgs = import "${builtins.fetchTarball (import ./pack/nixpkgs.nix)}" {}; + nixpkgs-tar = builtins.fetchTarball (import ./pack/nixpkgs.nix); + nixpkgs = import "${nixpkgs-tar}" {}; + nixos = import "${nixpkgs-tar}/nixos"; in { - depo = import ./depo; + depo = import ./depo { inherit nixos; }; pack = import ./pack { inherit nixpkgs; }; } |