started writing module
This commit is contained in:
parent
09a71fb1ac
commit
94cf4c2005
3 changed files with 55 additions and 0 deletions
20
modules/fedi/iceshrimp/service.nix
Normal file
20
modules/fedi/iceshrimp/service.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{iceshrimp}: {
|
||||
systemd.services.iceshrimp = {
|
||||
enable = true;
|
||||
description = "Iceshrimp.NET daemon";
|
||||
|
||||
requires = ["postgresql.service"];
|
||||
after = ["postgersql.service"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Restart = "on-failure";
|
||||
|
||||
ExecStart = "${iceshrimp}/bin/iceshrimp --migrate-and-start";
|
||||
|
||||
User = "iceshrimp";
|
||||
Group = "iceshrimp";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue