ma home: enable minidlna for testing, cleanup

This commit is contained in:
makefu 2022-12-24 23:58:59 +01:00
parent fad0194146
commit caf4bcc437
4 changed files with 16 additions and 14 deletions

View file

@ -9,7 +9,7 @@
# also ensure that the webcam always comes up under the same name # also ensure that the webcam always comes up under the same name
services.udev.extraRules = '' services.udev.extraRules = ''
SUBSYSTEM=="vchiq",GROUP="video",MODE="0660" SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"
SUBSYSTEM=="video4linux", ATTR{name}=="UVC Camera (046d:0825)",SYMLINK+="web_cam", MODE="0666", GROUP="video" KERNEL=="video*",ATTRS{vendor}=="0x046d", ATTRS{device}=="0x0825", GROUP="video", SYMLINK+="web_cam"
''; '';
systemd.services.octoprint = { systemd.services.octoprint = {
path = [ pkgs.libraspberrypi ]; path = [ pkgs.libraspberrypi ];

View file

@ -11,18 +11,6 @@ let
weihnachtslicht = "light.wohnzimmer_fenster_lichterkette_licht"; weihnachtslicht = "light.wohnzimmer_fenster_lichterkette_licht";
fernsehlicht = "light.wled"; fernsehlicht = "light.wled";
all_lights = [
schranklicht weihnachtslicht fernsehlicht
# extra lights to also turn off
# wohnzimmer
"light.wohnzimmer_komode_osram"
"light.wohnzimmer_stehlampe_osram"
# arbeitszimmer
"light.wled_4"
"light.arbeitszimmer_schrank_dimmer"
"light.arbeitszimmer_pflanzenlicht"
];
final_off = "00:37"; final_off = "00:37";
turn_on = entity_id: offset: turn_on = entity_id: offset:

View file

@ -63,6 +63,12 @@ in
(remote_action "b9" [ { service = "rest_command.good_song"; } ]) (remote_action "b9" [ { service = "rest_command.good_song"; } ])
(remote_action "b10" [ { service = "rest_command.bad_song"; } ]) (remote_action "b10" [ { service = "rest_command.bad_song"; } ])
(remote_action "b11" [
{
service = "script.turn_on";
target.entity_id = "script.find_felix_phone";
}
])
(remote_action "3" (remote_action "3"
((say "Starte Lass") ++ [ ((say "Starte Lass") ++ [

View file

@ -9,7 +9,8 @@ in
MusicFolder = "/media/cryptX/music/kinder"; MusicFolder = "/media/cryptX/music/kinder";
Address = "0.0.0.0"; Address = "0.0.0.0";
}; };
systemd.services.navidrome.after = [ "media-cryptX.mount" ]; systemd.services.navidrome.after = [ "media-cryptX.mount" "cryptsetup.target"
"local-fs.target" "remote-fs.target" ];
state = [ "/var/lib/navidrome" ]; state = [ "/var/lib/navidrome" ];
# networking.firewall.allowedTCPPorts = [ 4040 ]; # networking.firewall.allowedTCPPorts = [ 4040 ];
@ -27,4 +28,11 @@ in
locations."/".proxyWebsockets = true; locations."/".proxyWebsockets = true;
}; };
networking.firewall.allowedTCPPorts = [ port ]; networking.firewall.allowedTCPPorts = [ port ];
# also configure dlna
services.minidlna.enable = true;
services.minidlna.settings = {
inotify = "yes";
friendly_name = "omo";
media_dir = [ "A,/media/cryptX/music" ];
};
} }