migrate services from nomad to systemd
Signed-off-by: natto1784 <natto@weirdnatto.in>
This commit is contained in:
18
hosts/marisa/services/filehost.nix
Normal file
18
hosts/marisa/services/filehost.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, inputs, lib', ... }:
|
||||
{
|
||||
systemd.services.filehost = {
|
||||
enable = true;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Environment = [
|
||||
"TITLE=nattofiles"
|
||||
"USER_URL=${lib'.network.addresses.subdomain.natto "f"}"
|
||||
"ROCKET_LIMITS={file=\"512MB\",data-form=\"512MB\"}"
|
||||
"ROCKET_LOG_LEVEL=debug"
|
||||
];
|
||||
Restart = "on-failure";
|
||||
ExecStart = "${inputs.filehost.packages.${pkgs.system}.simpler-filehost}/bin/simpler-filehost";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user