Skip to content
Snippets Groups Projects
Commit 1a459d1c authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Factor nixpkgs expression out for easier reuse

parent f1a33988
No related branches found
No related tags found
No related merge requests found
...@@ -5,15 +5,7 @@ ...@@ -5,15 +5,7 @@
# server in the morph network. # server in the morph network.
{ name, nodes }: { name, nodes }:
let let
# Pin the deployment package-set to a specific version of nixpkgs. This is pkgs = import ./nixpkgs.nix { };
# NixOS 19.03 as of Aug 28 2019. There's nothing special about it. It's
# just recent at the time of development. It can be upgraded when there is
# value in doing so. Meanwhile, our platform doesn't shift around beneath
# us in surprising ways as time passes.
pkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz";
sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14";
}) {};
# Load our JSON configuration for later use. # Load our JSON configuration for later use.
cfg = pkgs.lib.trivial.importJSON ./grid.config.json; cfg = pkgs.lib.trivial.importJSON ./grid.config.json;
in in
......
# Pin the deployment package-set to a specific version of nixpkgs. This is
# NixOS 19.03 as of Aug 28 2019. There's nothing special about it. It's
# just recent at the time of development. It can be upgraded when there is
# value in doing so. Meanwhile, our platform doesn't shift around beneath
# us in surprising ways as time passes.
(builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz";
sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14";
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment