mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: added eris
This commit is contained in:
parent
74f9c483ad
commit
090e4770d2
7 changed files with 40 additions and 30 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue