snowflake/hosts/sakura/services/rustypaste.nix
notohh 1b05b49e04
Some checks failed
ci/woodpecker/push/checks Pipeline failed
rustypaste: remove syslog output
2023-09-16 18:55:01 -04:00

24 lines
624 B
Nix

{pkgs, ...}: {
sops.secrets.rusty-auth-token = {};
environment.systemPackages = with pkgs; [rustypaste];
systemd.services.rustypaste = {
enable = true;
wantedBy = [
"multi-user.target"
];
description = "A minimal file upload/pastebin service.";
environment = {
# AUTH_TOKEN = config.sops.secrets.rusty-auth-token.path;
CONFIG = "/var/lib/rustypaste/config.toml";
};
serviceConfig = {
User = "root";
ExecStart = "${pkgs.rustypaste}/bin/rustypaste";
Restart = "always";
RestartSec = 30;
WorkingDirectory = "/var/lib/rustypaste";
};
};
}