tangled
alpha
login
or
join now
devins.page
/
flake
0
fork
atom
configurations for my servers and desktops
nix
nixos
flake
dots
dotfiles
0
fork
atom
overview
issues
pulls
pipelines
feat: better beets config
devins.page
1 month ago
204a11b6
45fd46e6
+10
-4
1 changed file
expand all
collapse all
unified
split
hosts
bluepill
modules
beets.nix
+10
-4
hosts/bluepill/modules/beets.nix
···
10
10
imagemagick
11
11
];
12
12
13
13
-
environment.etc."beets/config.yaml".text = ''
13
13
+
environment.variables.BEETSDIR = "/srv/media/music/beets";
14
14
+
15
15
+
systemd.tmpfiles.rules = [
16
16
+
"d /srv/media/music/beets 2775 root share-media -"
17
17
+
];
18
18
+
19
19
+
system.activationScripts.beetsConfig = ''
20
20
+
cat > /srv/media/music/beets/config.yaml <<'EOF'
14
21
directory: /srv/media/music
15
15
-
library: /srv/media/music/musiclibrary.db
22
22
+
library: /srv/media/music/beets/musiclibrary.db
16
23
17
24
original_date: yes
18
25
import:
···
43
50
quality: 90
44
51
replaygain:
45
52
backend: ffmpeg
53
53
+
EOF
46
54
'';
47
47
-
48
48
-
environment.variables.BEETSDIR = "/etc/beets";
49
55
}