- Introduced a new module for a11ywatch with Podman support, creating a bridge network and defining backend and frontend containers. - Configured Nginx to serve the a11ywatch application with SSL and ACME support. - Added user and group configurations for a11ywatch. - Created a systemd service to ensure the Podman network exists on boot. Implement Firefox Container Controller extension and host - Added a module for the Firefox Container Controller extension, allowing installation via Nix. - Created a native messaging host for the extension to communicate with the container controller. - Included CLI helpers to enqueue commands for showing and hiding containers. Enable fingerprint authentication in PAM - Configured fingerprint authentication for login, sudo, and swaylock services. Setup Raspberry Pi OS image creation script - Developed a script to create a read-only Raspberry Pi OS Lite image with Snapcast client. - Included configuration for Wi-Fi, hostname, and Snapcast server. - Implemented user and group setup for Snapcast client and ensured necessary services are enabled. Document Raspberry Pi Zero W setup instructions - Added detailed instructions for configuring Raspberry Pi OS on Zero W, including disabling unused services and setting up Snapcast client. Create test configuration script for NixOS - Implemented a script to perform dry-builds for NixOS configurations, allowing for easy validation of host configurations.
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{ pkgs, lib, ... }:
|
|
let
|
|
mopidy-autoplay = pkgs.python3Packages.buildPythonApplication rec {
|
|
pname = "Mopidy-Autoplay";
|
|
version = "0.2.3";
|
|
|
|
src = pkgs.python3Packages.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-E2Q+Cn2LWSbfoT/gFzUfChwl67Mv17uKmX2woFz/3YM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pkgs.mopidy
|
|
] ++ (with pkgs.python3Packages; [
|
|
configobj
|
|
]);
|
|
|
|
# no tests implemented
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://codeberg.org/sph/mopidy-autoplay";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
services.mopidy = {
|
|
enable = true;
|
|
extensionPackages = [
|
|
pkgs.mopidy-iris
|
|
pkgs.mopidy-tunein
|
|
mopidy-autoplay
|
|
];
|
|
configuration = ''
|
|
[audio]
|
|
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/run/snapserver/mopidy
|
|
|
|
[file]
|
|
enabled = false
|
|
|
|
[autoplay]
|
|
enabled = true
|
|
'';
|
|
};
|
|
|
|
services.nginx.virtualHosts."mopidy.cloonar.com" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
acmeRoot = null;
|
|
extraConfig = ''
|
|
proxy_buffering off;
|
|
'';
|
|
locations."/".extraConfig = ''
|
|
proxy_pass http://127.0.0.1:6680;
|
|
proxy_set_header Host $host;
|
|
proxy_redirect http:// https://;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
'';
|
|
};
|
|
}
|