snowflake/hosts/sakura/services/rustypaste.nix
notohh 55db267cf3
Some checks failed
deploy systems / deploy (push) Has been cancelled
flake check / check (push) Failing after 1m6s
fmt check / check (push) Successful in 39s
rustypaste: remove key
2024-01-04 14:42:15 -05:00

22 lines
586 B
Nix

{pkgs, ...}: {
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";
};
};
}