[lucia] mpd/mopidy foo

This commit is contained in:
2023-11-20 18:10:39 +01:00
parent 1873a4658e
commit b2e9ff65ce

View File

@@ -36,31 +36,66 @@
sound.enable = true;
services = {
#mopidy = {
# enable = true;
# configuration = ''
# [audio]
# output = alsasink
# [mpd]
# enabled = true
# hostname = ::
#
# [core]
# restore_state = true
#
# [http]
# allowed_origins =
# music.malobeo.org
# https://music.malobeo.org
#
# [youtube]
# allow_cache = true
# youtube_dl_package = yt_dlp
#
# [file]
# enabled = true
# media_dirs = /var/lib/mpd/music/
# '';
# extensionPackages = with pkgs; [ mopidy-iris mopidy-mpd mopidy-youtube python3Packages.yt-dlp ];
#};
dokuwiki.sites."wiki.malobeo.org" = {
enable = true;
aclUse = false;
#acl = "* @ALL 8"; # everyone can edit using this config
# note there is a users file at
# /var/lib/dokuwiki/<wiki-name>/users.auth.php
# makes sense to edit it by hand
superUser = "@admin";
plugins = let
plugin-todo = pkgs.stdenv.mkDerivation {
name = "todo";
src = pkgs.fetchFromGitHub {
owner = "leibler";
repo = "dokuwiki-plugin-todo";
rev = "7e36f4fffc46df9e2fd116d7d6dc326202530b71";
sha256 = "sha256-o794cFdnVEUHvLRP/UzrD26fzNGa9gYzR7sw2Ns8tvo=";
};
buildInputs = [ pkgs.unzip ];
installPhase = "mkdir -p $out; cp -R * $out/";
};
in [ plugin-todo ];
disableActions = "register";
#superUser = "@admin";
#plugins = let
# plugin-todo = pkgs.stdenv.mkDerivation {
# name = "todo";
# src = pkgs.fetchFromGitHub {
# owner = "leibler";
# repo = "dokuwiki-plugin-todo";
# rev = "7e36f4fffc46df9e2fd116d7d6dc326202530b71";
# sha256 = "sha256-o794cFdnVEUHvLRP/UzrD26fzNGa9gYzR7sw2Ns8tvo=";
# };
# buildInputs = [ pkgs.unzip ];
# installPhase = "mkdir -p $out; cp -R * $out/";
# };
#in [ plugin-todo ];
#disableActions = "register";
settings = {
title = "malobeo wiki";
lang = "en";
useacl = true;
superuser = "admin";
password = "admin";
};
};
@@ -113,7 +148,7 @@
};
};
networking.firewall.allowedTCPPorts = [ 6680 80 443 ];
networking.firewall.allowedTCPPorts = [ 80 443 ];
environment.systemPackages = with pkgs; [
vim
@@ -127,57 +162,3 @@
system.stateVersion = "23.05";
}
#mopidy = {
# enable = true;
# configuration = ''
# [audio]
# output = alsasink
# [http]
# enabled = true
# hostname = 127.0.0.1
# port = 6680
# allowed_origins =
# csrf_protection = true
# default_app = mopidy
# [core]
# restore_state = true
# [youtube]
# allow_cache = true
# youtube_dl_package = yt_dlp
# [file]
# enabled = true
# media_dirs =
# /home/malobeo/music
# show_dotfiles = false
# excluded_file_extensions =
# .directory
# .html
# .jpeg
# .jpg
# .log
# .nfo
# .pdf
# .png
# .txt
# .zip
# follow_symlinks = false
# metadata_timeout = 1000
# [stream]
# enabled = true
# protocols =
# http
# https
# mms
# rtmp
# rtmps
# rtsp
# timeout = 5000
# metadata_blacklist =
# '';
# extensionPackages = with pkgs; [ mopidy-iris mopidy-youtube python3Packages.yt-dlp ];
#};