9 cfg = config.services.slimserver;
15 services.slimserver = {
17 enable = lib.mkOption {
18 type = lib.types.bool;
21 Whether to enable slimserver.
25 package = lib.mkPackageOption pkgs "slimserver" { };
27 dataDir = lib.mkOption {
28 type = lib.types.path;
29 default = "/var/lib/slimserver";
31 The directory where slimserver stores its state, tag cache,
40 config = lib.mkIf cfg.enable {
42 systemd.tmpfiles.rules = [
43 "d '${cfg.dataDir}' - slimserver slimserver - -"
46 systemd.services.slimserver = {
47 after = [ "network.target" ];
48 description = "Slim Server for Logitech Squeezebox Players";
49 wantedBy = [ "multi-user.target" ];
53 # Issue 40589: Disable broken image/video support (audio still works!)
54 ExecStart = "${lib.getExe cfg.package} --logdir ${cfg.dataDir}/logs --prefsdir ${cfg.dataDir}/prefs --cachedir ${cfg.dataDir}/cache --noimage --novideo";
60 description = "Slimserver daemon user";
65 groups.slimserver = { };