pinwheel: Add ndp, a terminal player for Navidrome

The player's config is generated by its home-manager module; the Navidrome
password stays in an agenix secret that the config reads at startup.
This commit is contained in:
Alexander Heldt committed 2026-11-08 15:20:00 +01:00
1 parent 75a045c2c6
commit 40e89a6006
5 files changed
+53

No files matched your search

+17
View File
@@ -42,8 +42,19 @@ in
pkgs.spotify
inputs.naviterm.packages.${pkgs.stdenv.hostPlatform.system}.default
];
programs.ndp = {
enable = true;
settings = {
server = "http://manatee:4533";
user = "navi";
passwordCommand = "cat ${config.age.secrets."navidrome-password".path}";
};
};
};
home-manager.sharedModules = [ inputs.ndp.homeManagerModules.default ];
systemd.user.services.playerctld = {
unitConfig = {
Description = "starts playerctld daemon";
@@ -67,4 +78,10 @@ in
owner = "alex";
group = "users";
};
age.secrets."navidrome-password" = {
file = ../../../../secrets/pinwheel/navidrome-password.age;
owner = "alex";
group = "users";
};
}