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