shoko-anime/configuration.nix

29 lines
667 B
Nix
Raw Normal View History

2025-01-13 23:07:39 -03:00
{ config, pkgs }:
with pkgs.lib;
{
options.services.shoko-cli = {
enable = mkOption {
type = types.bool;
default = true;
example = false;
description = "";
};
};
config = {
systemd.services.shoko-cli = mkIf config.services.shoko-cli.enable {
wantedBy = [ "multi-user.target" ];
unitConfig = {
Description = "The All-in-One Cross-Platform Anime Management System Built For You";
After = [ "network-online.target" ];
};
serviceConfig = {
ExecStart = "${pkgs.callPackage ./cli.nix { }}/bin/Shoko.CLI";
Restart = "always";
Type = "simple";
};
};
};
}