1 { config, lib, pkgs, ... }:
7 cfg = config.services.slimserver;
12 services.slimserver = {
18 Whether to enable slimserver.
22 package = mkPackageOption pkgs "slimserver" { };
26 default = "/var/lib/slimserver";
28 The directory where slimserver stores its state, tag cache,
38 config = mkIf cfg.enable {
40 systemd.tmpfiles.rules = [
41 "d '${cfg.dataDir}' - slimserver slimserver - -"
44 systemd.services.slimserver = {
45 after = [ "network.target" ];
46 description = "Slim Server for Logitech Squeezebox Players";
47 wantedBy = [ "multi-user.target" ];
51 # Issue 40589: Disable broken image/video support (audio still works!)
52 ExecStart = "${lib.getExe cfg.package} --logdir ${cfg.dataDir}/logs --prefsdir ${cfg.dataDir}/prefs --cachedir ${cfg.dataDir}/cache --noimage --novideo";
58 description = "Slimserver daemon user";
63 groups.slimserver = {};