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:
5 files changed
+53
No files matched your search
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user