modules: Add mkHost
This commit is contained in:
@@ -1,24 +1,28 @@
|
||||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
mpdevil
|
||||
mopidy mopidy-mpd mopidy-funkwhale
|
||||
];
|
||||
let
|
||||
secrets = import ../../../secrets;
|
||||
funkwhale = secrets.funkwhale.applications."${config.networking.hostName}";
|
||||
in {
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [ cantata ];
|
||||
|
||||
# TODO
|
||||
services.mopidy = {
|
||||
enable = true;
|
||||
configuration = ''
|
||||
[funkwhale]
|
||||
enabled = true
|
||||
url = https://audio.polynom.me
|
||||
client_id =
|
||||
client_secret =
|
||||
cache_duration = 600
|
||||
services.mopidy = {
|
||||
#enable = true;
|
||||
configuration = ''
|
||||
[funkwhale]
|
||||
enabled = true
|
||||
url = https://audio.polynom.me
|
||||
client_id = ${funkwhale.client_id}
|
||||
client_secret = ${funkwhale.client_secret}
|
||||
cache_duration = 600
|
||||
|
||||
[mpd]
|
||||
enabled = true;
|
||||
'';
|
||||
extensionPackages = with pkgs; [
|
||||
mopidy-mpd mopidy-funkwhale
|
||||
];
|
||||
extensionPackages = with pkgs; [
|
||||
mopidy-mpd mopidy-funkwhale
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user