move to snowfall

This commit is contained in:
zackartz 2024-05-23 20:26:30 +00:00
parent 9d7ad7c973
commit 769d4b0df5
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
188 changed files with 2203 additions and 3041 deletions

View file

@ -0,0 +1,31 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.services.dlna;
in {
options.services.dlna = with types; {
enable = mkBoolOpt false "Enable MiniDLNA service";
};
config = mkIf cfg.enable {
services.minidlna = {
enable = true;
openFirewall = true;
settings = {
notify_interval = 60;
friendly_name = "ZACKPC";
media_dir = ["A,/home/zack/Music"];
inotify = "yes";
};
};
users.users.minidlna = {
extraGroups = ["users"];
};
};
}