-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add misskey package and module #161855
add misskey package and module #161855
Conversation
93d9d66
to
d4334b5
Compare
This is now ready for review. I considered adding abstractions for database/redis configuration, or a module documentation, but both of these made my head smoke too much because of the opinionated nature of these topics. This is how my config looks using this module: { config, ... }:
{
services.misskey = {
enable = true;
settings = {
url = "https://mk.yuka.dev/";
port = 11231;
id = "aid";
db = {
host = "/run/postgresql";
port = config.services.postgresql.port;
user = "misskey";
db = "misskey";
};
redis = {
host = "localhost";
port = config.services.redis.servers.misskey.port;
};
};
};
services.postgresql = {
enable = true;
ensureDatabases = [ "pleroma" ];
ensureUsers = [
{
name = "misskey";
ensurePermissions."DATABASE misskey" = "ALL PRIVILEGES";
}
];
};
services.redis.servers.misskey = {
enable = true;
bind = "127.0.0.1";
port = 16434;
};
# services.nginx.recommended* are set globally in another file
services.nginx.virtualHosts."mk.yuka.dev" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://127.0.0.1:${toString config.services.misskey.settings.port}/";
proxyWebsockets = true;
};
};
};
} If someone wants to create a manual entry from that, I would be grateful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the listed concerns, this looks good. I moved my instance (https://mi.underscore.world) to it, and it seems to be working well.
2165b4e
to
0b936e6
Compare
@kloenk maybe you can add the missing inputs for darwin? It is not finding some XCode tools. |
Will do. |
0b936e6
to
27e2e5d
Compare
Updated misskey and rebased |
5d3d679
to
5a58856
Compare
@@ -0,0 +1,103 @@ | |||
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="misskey"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the outermost element should be a <chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="misskey">
, otherwise the manual doesn't build
Someone else feel free to use the contents of this PR as basis for a new one |
Motivation for this change
Running on https://mk.yuka.dev
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes