add systemd timers, add beets config, add smb share

This commit is contained in:
2026-07-25 00:09:38 +02:00
parent 8cfe8b7c6f
commit 0a770e4094
8 changed files with 183 additions and 13 deletions
+8 -1
View File
@@ -1,8 +1,11 @@
{lib, ...}:
{
services.navidrome = {
enable = true;
user = "user";
settings = {
MusicFolder = "/media/music";
MusicFolder = "/home/user/Music";
PlaylistsPath = "Playlists";
Address = "0.0.0.0";
ScanSchedule = "@every 24h";
@@ -10,4 +13,8 @@
Scanner.PurgeMissing = "always";
};
};
systemd.services.navidrome.serviceConfig = {
ProtectHome = lib.mkForce false;
};
}
+24
View File
@@ -0,0 +1,24 @@
{
services.samba = {
enable = true;
openFirewall = true;
settings = {
global = {
"workgroup" = "WORKGROUP";
"server string" = "smbnix";
"security" = "user";
"interfaces" = "lo eno1 tailscale0";
"hosts allow" = "192.168.132.0/24 100.64.0.0/10 127.0.0.1 localhost";
"hosts deny" = "0.0.0.0/0";
"guest account" = "nobody";
};
"Music" = {
"path" = "/media/music";
"browseable" = "yes";
"read only" = "no";
"guest ok" = "no";
"valid users" = "user";
};
};
};
}