mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: test
This commit is contained in:
parent
5582f88a6d
commit
d662409859
3 changed files with 19 additions and 31 deletions
|
@ -18,6 +18,7 @@ in
|
||||||
subdomain = jellyfinName;
|
subdomain = jellyfinName;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${jellyfinLabel}";
|
path0 = "${servicePath}/${jellyfinLabel}";
|
||||||
|
path1 = "${servicePath}/${jellyfinLabel}/cache";
|
||||||
};
|
};
|
||||||
ports = {
|
ports = {
|
||||||
port0 = 5055; # Jellyseer
|
port0 = 5055; # Jellyseer
|
||||||
|
|
|
@ -77,7 +77,7 @@ in
|
||||||
acme
|
acme
|
||||||
audiobookshelf
|
audiobookshelf
|
||||||
caddy
|
caddy
|
||||||
# jellyfin
|
jellyfin
|
||||||
logrotate
|
logrotate
|
||||||
mastodon
|
mastodon
|
||||||
minecraft
|
minecraft
|
||||||
|
|
|
@ -1,15 +1,8 @@
|
||||||
{ flake, ... }:
|
{ flake, ... }:
|
||||||
let
|
let
|
||||||
inherit (flake.config.people)
|
inherit (flake.config.people) user0;
|
||||||
user0
|
inherit (flake.config.machines.devices) ceres;
|
||||||
;
|
inherit (flake.config.services.instances) jellyfin web;
|
||||||
inherit (flake.config.machines.devices)
|
|
||||||
ceres
|
|
||||||
;
|
|
||||||
inherit (flake.config.services.instances)
|
|
||||||
jellyfin
|
|
||||||
web
|
|
||||||
;
|
|
||||||
service = jellyfin;
|
service = jellyfin;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = "${service.subdomain}.${web.domains.url0}";
|
||||||
|
@ -41,30 +34,24 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems =
|
fileSystems = {
|
||||||
let
|
|
||||||
settings = {
|
|
||||||
fsType = "none";
|
|
||||||
options = [
|
|
||||||
"bind"
|
|
||||||
];
|
|
||||||
depends = [
|
|
||||||
ceres.storage0.mount
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"/var/lib/${service.name}" = {
|
"/var/lib/${service.name}" = {
|
||||||
device = service.paths.path0;
|
device = service.paths.path0;
|
||||||
} // settings;
|
fsType = "none";
|
||||||
|
options = [ "bind" ];
|
||||||
|
depends = [ ceres.storage0.mount ];
|
||||||
|
};
|
||||||
"/var/cache/${service.name}" = {
|
"/var/cache/${service.name}" = {
|
||||||
device = "${service.paths.path0}/cache";
|
device = service.paths.path1;
|
||||||
} // settings;
|
fsType = "none";
|
||||||
|
options = [ "bind" ];
|
||||||
|
depends = [ ceres.storage0.mount ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"Z ${service.paths.path0} 0755 ${user0} ${service.name} -"
|
"Z ${service.paths.path0} 0755 ${user0} ${service.name} -"
|
||||||
"Z ${service.paths.path0}/cache 0755 ${user0} ${service.name} -"
|
"Z ${service.paths.path1} 0755 ${user0} ${service.name} -"
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue