moving server from old config to new one (finally)
This commit is contained in:
parent
5306a9a633
commit
634171e91d
3 changed files with 68 additions and 9 deletions
|
|
@ -6,5 +6,66 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
config = { };
|
config = {
|
||||||
|
server = {
|
||||||
|
arr = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
cloud = {
|
||||||
|
immich = {
|
||||||
|
enable = true;
|
||||||
|
public = true;
|
||||||
|
};
|
||||||
|
nextcloud = {
|
||||||
|
enable = true;
|
||||||
|
public = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
media = {
|
||||||
|
jellyfin = {
|
||||||
|
enable = true;
|
||||||
|
public = false;
|
||||||
|
};
|
||||||
|
jellyseer = {
|
||||||
|
enable = true;
|
||||||
|
public = false;
|
||||||
|
};
|
||||||
|
kavita = {
|
||||||
|
enable = true;
|
||||||
|
public = false;
|
||||||
|
};
|
||||||
|
navidrome = {
|
||||||
|
enable = true;
|
||||||
|
public = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
misc = {
|
||||||
|
dawarich = {
|
||||||
|
enable = true;
|
||||||
|
public = false;
|
||||||
|
};
|
||||||
|
forgejo = {
|
||||||
|
enable = true;
|
||||||
|
public = true;
|
||||||
|
};
|
||||||
|
lauti = {
|
||||||
|
enable = true;
|
||||||
|
public = true;
|
||||||
|
};
|
||||||
|
vaultwarden = {
|
||||||
|
enable = true;
|
||||||
|
public = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
social = {
|
||||||
|
gotosocial = {
|
||||||
|
enable = true;
|
||||||
|
public = true;
|
||||||
|
};
|
||||||
|
synapse = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
options.server = {
|
options.server.media = {
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
enable = lib.mkEnableOption "enable jelyfin";
|
enable = lib.mkEnableOption "enable jellyfin";
|
||||||
port = lib.mkOption {
|
port = lib.mkOption {
|
||||||
default = 8096;
|
default = 8096;
|
||||||
description = "set jellyfin port";
|
description = "set jellyfin port";
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
domain = "${config.server.misc.lauti.subdomain}.${config.networking.domain}";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
server.misc.lauti = {
|
server.misc.lauti = {
|
||||||
|
|
@ -17,7 +15,7 @@ in
|
||||||
};
|
};
|
||||||
public = lib.mkEnableOption "make lauti public";
|
public = lib.mkEnableOption "make lauti public";
|
||||||
domain = lib.mkOption {
|
domain = lib.mkOption {
|
||||||
default = "";
|
default = "calendar";
|
||||||
description = "lauti domain";
|
description = "lauti domain";
|
||||||
};
|
};
|
||||||
subdomain = lib.mkOption {
|
subdomain = lib.mkOption {
|
||||||
|
|
@ -32,7 +30,7 @@ in
|
||||||
enable = config.server.misc.lauti.enable;
|
enable = config.server.misc.lauti.enable;
|
||||||
settings = {
|
settings = {
|
||||||
LAUTI_ADMIN_EMAIL = "lauti@${config.networking.domain}";
|
LAUTI_ADMIN_EMAIL = "lauti@${config.networking.domain}";
|
||||||
LAUTI_BASE_URL = "https://${domain}";
|
LAUTI_BASE_URL = "https://${config.server.misc.lauti.subdomain}.${config.networking.domain}";
|
||||||
LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/lauti/osm";
|
LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/lauti/osm";
|
||||||
LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
|
LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
|
||||||
LAUTI_TIMEZONE = "Europe/Berlin";
|
LAUTI_TIMEZONE = "Europe/Berlin";
|
||||||
|
|
@ -42,7 +40,7 @@ in
|
||||||
};
|
};
|
||||||
nginx = {
|
nginx = {
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${domain}" =
|
"${config.server.misc.lauti.subdomain}.${config.networking.domain}" =
|
||||||
if config.server.misc.lauti.public then
|
if config.server.misc.lauti.public then
|
||||||
{
|
{
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue