Need to put config in `nixos`

This commit is contained in:
niten 2024-01-17 14:12:39 -08:00
parent b17fbcd75e
commit 735dfab194
1 changed files with 23 additions and 21 deletions

View File

@ -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,6 +82,8 @@ in {
"mastodon-data:/var/lib/mastodon" "mastodon-data:/var/lib/mastodon"
]; ];
}; };
nixos = {
useSystemd = true;
configuration = { configuration = {
boot.tmp.useTmpfs = true; boot.tmp.useTmpfs = true;
system.nssModules = mkForce [ ]; system.nssModules = mkForce [ ];
@ -110,6 +111,7 @@ in {
}; };
}; };
}; };
};
in { imports = [ image ]; }; in { imports = [ image ]; };
services.nginx = { services.nginx = {