diff --git a/morph/make-grid.nix b/morph/make-grid.nix index 60d80aae1053119a0731af563290582409da9b9b..1728dacac5413fb014ef257172181b2e19078164 100644 --- a/morph/make-grid.nix +++ b/morph/make-grid.nix @@ -5,15 +5,7 @@ # server in the morph network. { name, nodes }: let - # 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. - pkgs = import (builtins.fetchTarball { - url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz"; - sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14"; - }) {}; + pkgs = import ./nixpkgs.nix { }; # Load our JSON configuration for later use. cfg = pkgs.lib.trivial.importJSON ./grid.config.json; in diff --git a/morph/nixpkgs.nix b/morph/nixpkgs.nix new file mode 100644 index 0000000000000000000000000000000000000000..ab317b2e6821b0c35310eb95e8b9d9532dc67dd2 --- /dev/null +++ b/morph/nixpkgs.nix @@ -0,0 +1,9 @@ +# 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"; +})