add service information to mine.shared.meta

This commit is contained in:
eyjhb 2024-08-13 14:42:32 +02:00
parent 74ff08576a
commit 280ad7013d
No known key found for this signature in database
GPG key ID: 609F508E3239F920
5 changed files with 81 additions and 0 deletions

View file

@ -1,6 +1,23 @@
{ config, ... }:
{ {
imports = [ imports = [
./forgejo.nix ./forgejo.nix
./auth_sources.nix ./auth_sources.nix
]; ];
mine.shared.meta.forgejo = {
name = "Forgejo";
description = "We host our own Forgejo for hosting and managing your code! Login using your credentials.";
url = "https://${config.mine.shared.settings.forgejo.domain}";
package = let
pkg = config.services.forgejo.package;
in {
name = pkg.pname;
version = pkg.version;
meta = pkg.meta;
};
};
} }

View file

@ -47,4 +47,19 @@ in {
enableACME = true; enableACME = true;
locations."/".proxyPass = "http://localhost:${builtins.toString config.services.hedgedoc.settings.port}"; locations."/".proxyPass = "http://localhost:${builtins.toString config.services.hedgedoc.settings.port}";
}; };
mine.shared.meta.hedgedoc = {
name = "Hedgedoc";
description = "We host our own Hedgedoc for writing small documents, and sharing with others. Login using your credentials.";
url = "https://${svc_domain}";
package = let
pkg = config.services.hedgedoc.package;
in {
name = pkg.pname;
version = pkg.version;
meta = pkg.meta;
};
};
} }

View file

@ -85,4 +85,18 @@ in {
age_secret = config.age.secrets.lldap-bind-user-pass.path; age_secret = config.age.secrets.lldap-bind-user-pass.path;
}; };
mine.shared.meta.lldap = {
name = "LDAP";
description = "We host our own LDAP server, you can use it to change your displayname, name, password, etc.";
url = "https://${svc_domain}";
package = let
pkg = config.services.lldap.package;
in {
name = pkg.pname;
version = pkg.version;
meta = pkg.meta;
};
};
} }

View file

@ -26,12 +26,31 @@ in {
# add murmur user to domain group to access cert # add murmur user to domain group to access cert
users.groups.main-domain.members = [ config.users.groups.murmur.name ]; users.groups.main-domain.members = [ config.users.groups.murmur.name ];
# secrets
age.secrets = { age.secrets = {
murmur-env.owner = config.users.users.murmur.name; murmur-env.owner = config.users.users.murmur.name;
murmur-superpassword.owner = config.users.users.murmur.name; murmur-superpassword.owner = config.users.users.murmur.name;
}; };
# persistence
environment.persistence.root.directories = [ environment.persistence.root.directories = [
"/var/lib/murmur" "/var/lib/murmur"
]; ];
# meta information about the service.
mine.shared.meta.murmur = {
name = "Mumble";
description = "We host our own mumble server at, which you're welcome to join. The password is {{secrets.MURMUR_PASSWORD}}.";
url = "mumble://${svc_domain}";
secrets.auth = config.age.secrets.murmur-env.path;
package = let
pkg = config.services.murmur.package;
in {
name = pkg.pname;
version = pkg.version;
meta = pkg.meta;
};
};
} }

View file

@ -6,5 +6,21 @@
openPorts = true; openPorts = true;
motd = "Welcome to ${config.mine.shared.settings.domain}'s Teeworld server!"; motd = "Welcome to ${config.mine.shared.settings.domain}'s Teeworld server!";
password = "XHDThcZGjBW8W4UGZ7bwYVbgPErJobuv";
};
mine.shared.meta.teeworlds = {
name = "Teeworlds";
description = ''We host our own Teeworlds instance. Connect using `nix-shell -p teeworlds --run 'teeworlds "connect teeworlds.fricloud.dk"'`, the password is ${config.services.teeworlds.password}'';
url = "";
package = let
pkg = config.services.teeworlds.package;
in {
name = pkg.pname;
version = pkg.version;
meta = pkg.meta;
};
}; };
} }