feat: added eris

This commit is contained in:
Nick 2025-10-24 20:52:04 -05:00
parent 74f9c483ad
commit 090e4770d2
7 changed files with 40 additions and 30 deletions

View file

@ -231,7 +231,7 @@ in
ceresStorageDriveName = "NAS1";
ceresIP = "192.168.50.140";
erisIP = "192.168.50.139";
erisIP = "192.168.50.245";
deimosIP = "192.168.50.176";
marsIP = "192.168.50.218";
phoneIP = "192.168.50.243";

View file

@ -17,6 +17,28 @@ let
service = nextcloud;
localhost = web.localhost.address0;
host = service.domains.url0;
hostname = config.networking.hostName;
bindMount = {
fileSystems."/var/lib/${service.name}" = {
device = service.paths.path0;
fsType = "none";
options = [
"bind"
];
depends = [
ceres.storage0.mount
];
};
systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 750 ${service.name} ${service.name} -"
"Z ${service.paths.path0}/config 750 ${service.name} ${service.name} -"
"Z ${service.sops.path0} 750 ${service.name} ${service.name} -"
];
};
hostLogic = if hostname == ceres.name then bindMount else { };
in
{
services = {
@ -112,23 +134,6 @@ in
);
};
fileSystems."/var/lib/${service.name}" = {
device = service.paths.path0;
fsType = "none";
options = [
"bind"
];
depends = [
ceres.storage0.mount
];
};
systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 750 ${service.name} ${service.name} -"
"Z ${service.paths.path0}/config 750 ${service.name} ${service.name} -"
"Z ${service.sops.path0} 750 ${service.name} ${service.name} -"
];
users.users.${service.name}.extraGroups = [
"caddy"
"nginx"
@ -144,3 +149,4 @@ in
};
};
}
// hostLogic