Need to put config in `nixos`
This commit is contained in:
parent
b17fbcd75e
commit
735dfab194
|
@ -74,7 +74,6 @@ in {
|
||||||
project.name = "mastodon";
|
project.name = "mastodon";
|
||||||
services = {
|
services = {
|
||||||
mastodon = { pkgs, ... }: {
|
mastodon = { pkgs, ... }: {
|
||||||
useSystemd = true;
|
|
||||||
service = {
|
service = {
|
||||||
restart = "always";
|
restart = "always";
|
||||||
volumes = [
|
volumes = [
|
||||||
|
@ -83,27 +82,30 @@ in {
|
||||||
"mastodon-data:/var/lib/mastodon"
|
"mastodon-data:/var/lib/mastodon"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
configuration = {
|
nixos = {
|
||||||
boot.tmp.useTmpfs = true;
|
useSystemd = true;
|
||||||
system.nssModules = mkForce [ ];
|
configuration = {
|
||||||
services = {
|
boot.tmp.useTmpfs = true;
|
||||||
nscd.enable = false;
|
system.nssModules = mkForce [ ];
|
||||||
postgresql.enable = true;
|
services = {
|
||||||
mastodon = {
|
nscd.enable = false;
|
||||||
enable = true;
|
postgresql.enable = true;
|
||||||
webPort = cfg.port;
|
mastodon = {
|
||||||
localDomain = cfg.domain;
|
enable = true;
|
||||||
extraEnvFiles = cfg.environment-files;
|
webPort = cfg.port;
|
||||||
smtp = {
|
localDomain = cfg.domain;
|
||||||
inherit (cfg.smtp) host port user;
|
extraEnvFiles = cfg.environment-files;
|
||||||
fromAddress = cfg.smtp.from-address;
|
smtp = {
|
||||||
authenticate = !isNull cfg.smtp.password-file;
|
inherit (cfg.smtp) host port user;
|
||||||
passwordFile = cfg.smtp.password-file;
|
fromAddress = cfg.smtp.from-address;
|
||||||
|
authenticate = !isNull cfg.smtp.password-file;
|
||||||
|
passwordFile = cfg.smtp.password-file;
|
||||||
|
};
|
||||||
|
redis.createLocally = true;
|
||||||
|
database.createLocally = true;
|
||||||
|
configureNginx = true;
|
||||||
|
automaticMigrations = true;
|
||||||
};
|
};
|
||||||
redis.createLocally = true;
|
|
||||||
database.createLocally = true;
|
|
||||||
configureNginx = true;
|
|
||||||
automaticMigrations = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue