basic misskey setup
This commit is contained in:
parent
b7118475bc
commit
1566fc21d1
5 changed files with 114 additions and 40 deletions
19
configs/containers/mastodon_container.nix
Normal file
19
configs/containers/mastodon_container.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, pkgs, config, ... }: {
|
||||
|
||||
deployment = {
|
||||
targetHost = "192.168.178.80";
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
};
|
||||
networking.hostName = "mastodon";
|
||||
networking.interfaces.wgbr.ipv4.addresses = [
|
||||
{
|
||||
address = "10.8.1.6";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
imports = [
|
||||
../container_config.nix
|
||||
../services/mastodon.nix
|
||||
];
|
||||
}
|
||||
43
configs/services/mastodon.nix
Normal file
43
configs/services/mastodon.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
http_port = 3000;
|
||||
dbuname = "misskey";
|
||||
dbport = 5432;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
misskey = {
|
||||
enable = true;
|
||||
settings = {
|
||||
url = "http://puppyplaypissparty.de";
|
||||
port = http_port;
|
||||
};
|
||||
settings = {
|
||||
db = {
|
||||
user = dbuname;
|
||||
port = dbport;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
postgresql = {
|
||||
enable = true;
|
||||
ensureUsers = [
|
||||
{
|
||||
name = dbuname;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
ensureDatabases = [
|
||||
dbuname
|
||||
];
|
||||
settings.port = dbport;
|
||||
};
|
||||
redis = {
|
||||
servers."" = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ http_port ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue