Commit f09d4ca9 authored by fpletz's avatar fpletz 🚧
Browse files

loungepi: add librespot, shairport, mpd

parent f7f2cc64
......@@ -24,10 +24,17 @@
networks."muccc.legacy-5GHz".psk = "haileris";
interfaces = [ "wlan0" ];
};
firewall = {
trustedInterfaces = [ "wlan0" ]; # FIXME
};
};
systemd.network.networks."40-wlan0" = {
networkConfig.LLMNR = false;
};
systemd.network.networks."40-eth0" = {
linkConfig.RequiredForOnline = false;
networkConfig.LLMNR = false;
dhcpV4Config.RouteMetric = 23;
dhcpV6Config.RouteMetric = 23;
extraConfig = ''
......@@ -68,6 +75,8 @@
home-manager.users.lounge = { pkgs, ... }: {
#programs.bash.enable = true;
programs.tmux.enable = true;
programs.ncmpcpp.enable = true;
services.mpd.enable = true;
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
......@@ -138,4 +147,35 @@
};
};
};
services.resolved.llmnr = "false";
services.avahi = {
enable = true;
publish = {
enable = true;
addresses = true;
domain = true;
hinfo = true;
userServices = true;
};
};
systemd.user.services.librespot = {
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${pkgs.librespot}/bin/librespot -n loungepi -v --backend pulseaudio";
Restart = "always";
RestartSec = "1s";
};
unitConfig = {
StartLimitIntervalSec = "0";
};
};
systemd.user.services.shairport-sync = {
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${pkgs.shairport-sync}/bin/shairport-sync -v -o pa";
Restart = "always";
};
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment