feat: changed naming convention for devices

This commit is contained in:
Nick 2025-02-17 18:52:02 -06:00
parent cc77a50fc1
commit a0e5ffb3d4
57 changed files with 351 additions and 341 deletions

View file

@ -6,8 +6,8 @@
}:
let
inherit (flake.config.machines.devices)
desktop
server
jupiter
ceres
;
inherit (flake.config.services.instances)
ollama
@ -19,7 +19,7 @@ let
host = "${service.subdomain}.${web.domains.url0}";
caddyLogic =
if hostname == server.name then
if hostname == ceres.name then
{
caddy = {
virtualHosts = {
@ -37,7 +37,7 @@ let
{ };
mountLogic =
if hostname == server.name then
if hostname == ceres.name then
{
"/var/lib/${service.name}" = {
device = service.paths.path0;
@ -46,7 +46,7 @@ let
"bind"
];
depends = [
server.storage0.mount
ceres.storage0.mount
];
};
}
@ -63,7 +63,7 @@ in
user = service.name;
}
// (
if hostname == desktop.name then
if hostname == jupiter.name then
{
models = service.paths.path1;
acceleration = "rocm";
@ -98,7 +98,7 @@ in
systemd.tmpfiles.rules = [
(
if hostname == desktop.name then
if hostname == jupiter.name then
"Z ${service.paths.path1} 0777 ${service.name} ${service.name} -"
else
"Z ${service.paths.path0} 0755 ${service.name} ${service.name} -"