refactor: refactor the site into a module
This commit is contained in:
parent
fda7580404
commit
3d5c125006
3 changed files with 231 additions and 1 deletions
23
hosts/lab/sites.nix
Normal file
23
hosts/lab/sites.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ ... }:
|
||||
let
|
||||
wynneDataDir = "/srv/website";
|
||||
in
|
||||
{
|
||||
services.site.wynne = {
|
||||
domain = "wynne.rs";
|
||||
redirectDomains = [ "ily.rs" ];
|
||||
repo = "https://git.ily.rs/lew/website";
|
||||
branch = "master";
|
||||
port = 4322;
|
||||
packageManager = "pnpm";
|
||||
dataDir = wynneDataDir;
|
||||
environment = {
|
||||
ASTRO_DB_REMOTE_URL = "file:${wynneDataDir}/data/guestbook.db";
|
||||
};
|
||||
buildEnvironment = {
|
||||
ASTRO_DB_REMOTE_URL = "file:${wynneDataDir}/data/guestbook.db";
|
||||
};
|
||||
readWritePaths = [ "${wynneDataDir}/data" ];
|
||||
afterServices = [ "forgejo.service" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue