refactor: reorganize server modules
- Moved each individual service definition into a dedicated `services/` directory under every server module (e.g. `modules/servers/bragi/services/`). - Updated the corresponding `default.nix` files to import the renamed service modules from the new location. - Applied the same changes across all server modules, ensuring the API and import paths remain consistent.
This commit is contained in:
parent
8a149c3533
commit
4e783c052b
45 changed files with 97 additions and 63 deletions
|
|
@ -1,39 +0,0 @@
|
|||
{config, ...}: {
|
||||
services.matrix-conduit = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
server_name = "cronyakatsuki.xyz";
|
||||
database_backend = "rocksdb";
|
||||
allow_registration = true;
|
||||
allow_check_for_updates = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.conduit.serviceConfig = {
|
||||
EnvironmentFile = ["${config.age.secrets.conduit.path}"];
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.conduit.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:6167";
|
||||
}
|
||||
];
|
||||
|
||||
routers.conduit = {
|
||||
rule = "Host(`matrix.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "conduit";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
|
||||
services.restic.backups = {
|
||||
local.paths = ["/var/lib/matrix-conduit"];
|
||||
server.paths = ["/var/lib/matrix-conduit"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue