@@ -2,19 +2,14 @@
22
33with lib;
44
5−let
6− cfg = config.services.subsonic;
7− homeDir = "/var/subsonic";
8−
9−in
10−{
5+let cfg = config.services.subsonic; in {
116 options = {
127 services.subsonic = {
138 enable = mkEnableOption "Subsonic daemon";
149
1510 home = mkOption {
1611 type = types.path;
17− default = "${homeDir}";
12+ default = "/var/lib/subsonic";
1813 description = ''
1914 The directory where Subsonic will create files.
2015 Make sure it is writable.
@@ -146,7 +141,7 @@ in
146141
147142 users.extraUsers.subsonic = {
148143 description = "Subsonic daemon user";
149− home = homeDir;
144+ home = cfg.home;
150145 createHome = true;
151146 group = "subsonic";
152147 uid = config.ids.uids.subsonic;