{ config, pkgs, lib, mkDomain, ... }: { # Flexget # Multipurpose automation tool for all of your media services.flexget = { enable = true; user = "flexget"; # The user under which to run flexget. homeDir = "/var/lib/flexget"; interval = "30m"; config = '' tasks: shanaproject: rss: 'https://www.shanaproject.com/feeds/secure/user/35853/J98B7OXAHO/' accept_all: yes no_entries_ok: yes transmission: host: 192.168.1.3 port: 9091 path: '/Reidun/shared/Downloads/shana project/' username: pbsds password: spismeg ''; }; users.groups."${config.services.flexget.user}" = lib.mkIf config.services.flexget.enable { }; users.users."${config.services.flexget.user}" = lib.mkIf config.services.flexget.enable { isSystemUser = true; createHome = true; home = config.services.flexget.homeDir; group = "${config.services.flexget.user}"; }; }