From dd1335cb369147231a3db78bd91a7761d97266d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 20 Jul 2020 21:03:01 +0100 Subject: [PATCH] Update the templates --- etc/nixos/derivations/dist.tar.gz | 3 +++ etc/nixos/derivations/tlaternet-templates | 1 - etc/nixos/derivations/tlaternet-templates.nix | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 etc/nixos/derivations/dist.tar.gz delete mode 160000 etc/nixos/derivations/tlaternet-templates create mode 100644 etc/nixos/derivations/tlaternet-templates.nix diff --git a/etc/nixos/derivations/dist.tar.gz b/etc/nixos/derivations/dist.tar.gz new file mode 100644 index 0000000..3af5e0f --- /dev/null +++ b/etc/nixos/derivations/dist.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1abd2b09bb63554cd6d49d774774cbfb4a933827ceeba373f04bdfbf992a7e5f +size 11858678 diff --git a/etc/nixos/derivations/tlaternet-templates b/etc/nixos/derivations/tlaternet-templates deleted file mode 160000 index 1160d96..0000000 --- a/etc/nixos/derivations/tlaternet-templates +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1160d96b064531f65290e2d665c7c8d05fc3d29a diff --git a/etc/nixos/derivations/tlaternet-templates.nix b/etc/nixos/derivations/tlaternet-templates.nix new file mode 100644 index 0000000..dbcf050 --- /dev/null +++ b/etc/nixos/derivations/tlaternet-templates.nix @@ -0,0 +1,15 @@ +{ pkgs ? import {} }: + +with pkgs; + +# TODO: Once https://github.com/svanderburg/node2nix/issues/184 is +# fixed, use a proper nixos package instead of a tarball. +stdenv.mkDerivation { + pname = "tlaternet-templates"; + version = "1.0"; + src = ./dist.tar.gz; + installPhase = '' + mkdir -p $out/srv/ + mv browser $out/srv/web + ''; +}