at 23.11-pre 624 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let 6 7cfg = config.services.canto-daemon; 8 9in { 10 11##### interface 12 13 options = { 14 15 services.canto-daemon = { 16 enable = mkOption { 17 type = types.bool; 18 default = false; 19 description = lib.mdDoc "Whether to enable the canto RSS daemon."; 20 }; 21 }; 22 23 }; 24 25##### implementation 26 27 config = mkIf cfg.enable { 28 29 systemd.user.services.canto-daemon = { 30 description = "Canto RSS Daemon"; 31 after = [ "network.target" ]; 32 wantedBy = [ "default.target" ]; 33 serviceConfig.ExecStart = "${pkgs.canto-daemon}/bin/canto-daemon"; 34 }; 35 }; 36 37}