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
Generated
+22
@@ -704,6 +704,27 @@
|
|||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ndp": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1794147486,
|
||||||
|
"narHash": "sha256-QzjvVVia9vpeZU2VK3t3dqfX8B6nYkd7J1wZV/lZ/QA=",
|
||||||
|
"ref": "main",
|
||||||
|
"rev": "fb17ea14268ffe0aa83c5e89c98d540fd11203da",
|
||||||
|
"revCount": 1,
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"ref": "main",
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nh": {
|
"nh": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
@@ -920,6 +941,7 @@
|
|||||||
"komga-comictracker": "komga-comictracker",
|
"komga-comictracker": "komga-comictracker",
|
||||||
"komga-reading-stats": "komga-reading-stats",
|
"komga-reading-stats": "komga-reading-stats",
|
||||||
"naviterm": "naviterm",
|
"naviterm": "naviterm",
|
||||||
|
"ndp": "ndp",
|
||||||
"nh": "nh",
|
"nh": "nh",
|
||||||
"nix-gc-env": "nix-gc-env",
|
"nix-gc-env": "nix-gc-env",
|
||||||
"nix-jetbrains-plugins": "nix-jetbrains-plugins",
|
"nix-jetbrains-plugins": "nix-jetbrains-plugins",
|
||||||
|
|||||||
@@ -52,6 +52,12 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ndp = {
|
||||||
|
url = "git+ssh://gitea@git.ppp.pm:1122/alex/ndp.git?ref=main";
|
||||||
|
# url = "git+file:///home/alex/code/own/ndp?ref=main";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
pppdotpm-site = {
|
pppdotpm-site = {
|
||||||
url = "git+ssh://gitea@git.ppp.pm:1122/alex/ppp.pm-site.git?ref=main";
|
url = "git+ssh://gitea@git.ppp.pm:1122/alex/ppp.pm-site.git?ref=main";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
@@ -42,7 +42,18 @@ in
|
|||||||
pkgs.spotify
|
pkgs.spotify
|
||||||
inputs.naviterm.packages.${pkgs.stdenv.hostPlatform.system}.default
|
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 = {
|
systemd.user.services.playerctld = {
|
||||||
unitConfig = {
|
unitConfig = {
|
||||||
@@ -67,4 +78,10 @@ in
|
|||||||
owner = "alex";
|
owner = "alex";
|
||||||
group = "users";
|
group = "users";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
age.secrets."navidrome-password" = {
|
||||||
|
file = ../../../../secrets/pinwheel/navidrome-password.age;
|
||||||
|
owner = "alex";
|
||||||
|
group = "users";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 vxPbZg ttoakxifzTWW4eb4kIwoYPgM6BxVnWVyMvXPTBCs5mc
|
||||||
|
unb1JLUqlGEBv+hbg+6el2LnCMEPpEOnKKfkqb3P0M8
|
||||||
|
-> ssh-ed25519 +oNaHQ 4LyRWLbyqbfQxvOt8ac0DWT/c6adVI5cCvh5j9My+A0
|
||||||
|
qxtYamHiRi7YBWdOFWMdYQb1gqF7P+eqdk2nBI/CqzI
|
||||||
|
--- kLLYhfMnWuTjR8Zign8N7G82Qfxtq5BNS9SF+lBxo/w
|
||||||
|
ñ”m¢³d§»°4qü"{äDùåÉåñòÒn§c¿ó"
|
||||||
@@ -27,6 +27,7 @@ in {
|
|||||||
"pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/naviterm-config.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/naviterm-config.age".publicKeys = [ pinwheel alex ];
|
||||||
|
"pinwheel/navidrome-password.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/atuin-key.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/atuin-key.age".publicKeys = [ pinwheel alex ];
|
||||||
|
|
||||||
"manatee/root.manatee.age".publicKeys = [ manatee alex ];
|
"manatee/root.manatee.age".publicKeys = [ manatee alex ];
|
||||||
|
|||||||
Reference in new issue
Block a user