@@ -2,19 +2,14 @@
6− cfg = config.services.subsonic;
5+let cfg = config.services.subsonic; in {
7− homeDir = "/var/subsonic";
11 options = {
6 options = {
12 services.subsonic = {
7 services.subsonic = {
13 enable = mkEnableOption "Subsonic daemon";
8 enable = mkEnableOption "Subsonic daemon";
15 home = mkOption {
10 home = mkOption {
16 type = types.path;
11 type = types.path;
17− default = "${homeDir}";
12+ default = "/var/lib/subsonic";
18 description = ''
13 description = ''
19 The directory where Subsonic will create files.
14 The directory where Subsonic will create files.
20 Make sure it is writable.
15 Make sure it is writable.
@@ -146,7 +141,7 @@ in
147 users.extraUsers.subsonic = {
142 users.extraUsers.subsonic = {
148 description = "Subsonic daemon user";
143 description = "Subsonic daemon user";
149− home = homeDir;
144+ home = cfg.home;
150 createHome = true;
145 createHome = true;
151 group = "subsonic";
146 group = "subsonic";
152 uid = config.ids.uids.subsonic;
147 uid = config.ids.uids.subsonic;