diff --git a/overlay.nix b/overlay.nix index 1c02610..ec57e09 100644 --- a/overlay.nix +++ b/overlay.nix @@ -28,6 +28,13 @@ final: prev: { src = ./.; propagatedBuildInputs = with nimfinal; [ ws patty karax jswebsockets telebot questionable ]; + + nimBinOnly = true; + + postInstall = + '' + cp -r static $out + ''; }; }); } diff --git a/system/module.nix b/system/module.nix index c315e92..ce0d505 100644 --- a/system/module.nix +++ b/system/module.nix @@ -97,6 +97,7 @@ with lib; User = "${cfg.user}"; ExecStartPre = (pkgs.writeShellScript "kinoplex-prestart" '' + install -D -m "0400" ${config.package}/static" ${cfg.home} install -D -m "0400" ${configFile} ${cfg.home}/server.conf ''); ExecStart = "${config.package}/bin/kino_server";