add systemd timers, add beets config, add smb share
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user