1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 12:21:08 +01:00

feat(zaatar): fix kiosk, spotifyd, containers warning

This commit is contained in:
2023-06-10 13:56:51 +02:00
parent fa3d41fb5b
commit c68f863bbc
3 changed files with 14 additions and 32 deletions

View File

@@ -1,15 +1,10 @@
{
config,
pkgs,
lib,
...
}: {
{config, ...}: {
services.spotifyd = {
enable = true;
settings = {
global = {
username_cmd = "cat ${config.age.secrets.spotify-username.path}";
password_cmd = "cat ${config.age.secrets.spotify-password.path}";
username_cmd = "cat $CREDENTIALS_DIRECTORY/username";
password_cmd = "cat $CREDENTIALS_DIRECTORY/password";
backend = "pulseaudio";
bitrate = 320;
device_type = "s_t_b"; # set-top box
@@ -18,6 +13,13 @@
};
};
systemd.services.spotifyd = {
serviceConfig.LoadCredential = [
"username:${config.age.secrets.spotify-username.path}"
"password:${config.age.secrets.spotify-password.path}"
];
};
age.secrets = {
spotify-username.file = ../../secrets/spotify-username.age;
spotify-password.file = ../../secrets/spotify-password.age;
@@ -28,6 +30,4 @@
unload-module module-native-protocol-unix
load-module module-native-protocol-unix auth-anonymous=1
'';
systemd.services.spotifyd.serviceConfig.Restart = "always";
}