Integrate previously external templates into this repository #12

Manually merged
tlater merged 8 commits from tlater/integrated-templates into master 2022-10-05 12:39:33 +01:00
Showing only changes of commit 38c2999291 - Show all commits

View file

@ -27,6 +27,16 @@
templates = flakeOutputs.templates.packages.${system}.default;
};
apps.${system}.default = let
inherit (self.packages.${system}) server templates;
inherit (nixpkgs.legacyPackages.${system}) writeShellScript;
in {
type = "app";
program = builtins.toString (writeShellScript "tlaternet-webserver" ''
${server}/bin/tlaternet-webserver --template-directory ${templates}
'');
};
devShells.${system} = {
templates = flakeOutputs.templates.devShells.${system}.default.overrideAttrs (old: {
buildInputs = with nixpkgs.legacyPackages.${system};