summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-17 18:44:08 +0100
committerlassulus <lass@lassul.us>2017-01-17 18:44:08 +0100
commitf216392665662ba375a657ae2431b70bb1ab63cc (patch)
tree7fd5ba46b753ddb842d62a36ae10bfa860c47a8d /lass/2configs
parent71b3e39cc51895870149f6b616b77deb27ec8ffd (diff)
l: move initscript to pkgs
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/websites/lassulus.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/lass/2configs/websites/lassulus.nix b/lass/2configs/websites/lassulus.nix
index ea384195b..024d2eeb2 100644
--- a/lass/2configs/websites/lassulus.nix
+++ b/lass/2configs/websites/lassulus.nix
@@ -5,7 +5,6 @@ let
inherit (import <stockholm/lib>)
genid
;
- inherit (import ../../4lib { inherit lib; }) initscript;
in {
imports = [
@@ -102,8 +101,12 @@ in {
fastcgi_param SCRIPT_NAME ${script};
'';
- locations."/init".extraConfig = ''
- alias ${pkgs.writeText "init" (initscript { pubkey = config.krebs.users.lass.pubkey; })};
+ locations."/init".extraConfig = let
+ initscript = pkgs.init.override {
+ pubkey = config.krebs.users.lass.pubkey;
+ };
+ in ''
+ alias ${initscript};
'';
enableSSL = true;