modules: Add mkHost

This commit is contained in:
2021-08-31 18:01:29 +02:00
parent 488dd977d1
commit 7445d7c5c0
17 changed files with 440 additions and 410 deletions

View File

@@ -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
];
};
};
}