treefmt-check
checks.x86_64-linux.formatting
· build #53
· raw
1treefmt v2.6.0traversed 1616 files2emitted 867 files for processing3formatted 867 files (30 changed) in 1.689s4 M by-name/ko/kodi-tetos/package.nix5 M by-name/ze/zeal-teto/package.nix6 M config/bash/flyline.sh7 M config/nvim/after/ftplugin/Avante.lua8 M config/nvim/after/ftplugin/RikaiPopup.lua9 M config/nvim/lua/init-manual.lua10 M config/nvim/lua/plugins/kitty-scrollback.lua11 M hm/modules/audiocast.nix12 M hm/modules/kitty.nix13 M hm/modules/package-sets.nix14 M hm/profiles/teto-desktop/default.nix15 M hm/profiles/teto-desktop/programs/jujutsu.nix16 M hm/profiles/teto-desktop/programs/rofi.nix17 M hm/profiles/teto-desktop/xdg/default.nix18 M hosts/jedha/default.nix19 M hosts/jedha/services/avahi.nix20 M hosts/jedha/services/minidlna.nix21 M hosts/jedha/services/opentelemetry-collector.nix22 M hosts/jedha/services/upmpdcli.nix23 M hosts/jedha/systemd.nix24 M hosts/tatooine/default.nix25 M hosts/tatooine/services/adguardhome.nix26 M hosts/tatooine/services/avahi.nix27 M hosts/tatooine/services/minidlna.nix28 M hosts/tatooine/services/n8n.nix29 M hosts/tatooine/services/pulseaudio.nix30 M justfile31 M nixos/profiles/adguardhome.nix32 M nixos/profiles/avahi.nix33 M nixos/profiles/desktop/programs/flyline.nix34diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix35index e6b3625..b0fe160 10064436--- a/by-name/ko/kodi-tetos/package.nix37+++ b/by-name/ko/kodi-tetos/package.nix38@@ -1,11 +1,13 @@39 { kodi, makeWrapper }:40 41 let42- kodiWithPackages = kodi.withPackages (p: with p; [43- jellyfin44- # pvr-iptvsimple45- vfs-sftp46- ]);47+ kodiWithPackages = kodi.withPackages (48+ p: with p; [49+ jellyfin50+ # pvr-iptvsimple51+ vfs-sftp52+ ]53+ );54 in55 kodiWithPackages.overrideAttrs (oldAttrs: {56 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];57diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix58index 9442d75..a9d8692 10064459--- a/by-name/ze/zeal-teto/package.nix60+++ b/by-name/ze/zeal-teto/package.nix61@@ -1,10 +1,9 @@62 { zeal }:63 zeal.overrideAttrs (oa: {64 65- # export QMLSCENE_DEVICE=software66- postInstall = ''67- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software68- '';69-70- })71+ # export QMLSCENE_DEVICE=software72+ postInstall = ''73+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software74+ '';75 76+})77diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh78index c2b1a84..6b647be 10064479--- a/config/bash/flyline.sh80+++ b/config/bash/flyline.sh81@@ -10,12 +10,11 @@ flyline history --backend flyline82 # it flickers83 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 284 85-# Codex: change 86+# Codex: change87 flyline set-agent-mode \88- --system-prompt "Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command. " \89- --trigger-prefix ': ' \90- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'91-92+ --system-prompt "Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command. " \93+ --trigger-prefix ': ' \94+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'95 96 # Antigravity:97 # flyline set-agent-mode \98@@ -26,7 +25,6 @@ flyline set-agent-mode \99 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"100 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR101 102-103 # precmd_functions+=(set_ps1)104 # Now you can use this animation in your prompt. For example:105 PS1='\u@\h:\w MOUSE_MODE \n$ '106@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''107 108 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽109 110-111 # Experiment with higher frame rates for smooth transitions:112 # flyline create-prompt-widget animation --name "john" --fps 24 \113 # '\e[38;2;255;0;0m\u' \114@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''115 # '\e[38;2;255;0;63m\u' \116 # '\e[38;2;255;0;47m\u' \117 # '\e[38;2;255;0;31m\u' \118-# '\e[38;2;255;0;15m\u' 119+# '\e[38;2;255;0;15m\u'120diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua121index 7b83982..6f409d6 100644122--- a/config/nvim/after/ftplugin/Avante.lua123+++ b/config/nvim/after/ftplugin/Avante.lua124@@ -14,7 +14,6 @@ vim.opt.showbreak = ''125 -- - update_content126 -- - on_state_change127 128-129 -- local sidebar = require('avante').get()130 131 -- vim.api.nvim_create_autocmd('WinEnter', {132diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua133index b321120..bc9e2c6 100644134--- a/config/nvim/after/ftplugin/RikaiPopup.lua135+++ b/config/nvim/after/ftplugin/RikaiPopup.lua136@@ -3,10 +3,9 @@137 vim.keymap.set('n', '<localleader>s', function()138 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha139 140- vim.fn.jobstart({ 141- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })142-143+ vim.fn.jobstart({144+ 'mpv',145+ '--no-video',146+ vim.fn.expand('~/home/data/audio/notif1.wav'),147+ }, { detach = true })148 end, { buffer = true, desc = 'Play sound' })149-150-151-152diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua153index 32871d5..e347ee0 100644154--- a/config/nvim/lua/init-manual.lua155+++ b/config/nvim/lua/init-manual.lua156@@ -1367,22 +1367,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {157 --158 -- ╰─159 160-161-vim.api.nvim_create_autocmd(162- 'PackChanged',163- {164+vim.api.nvim_create_autocmd('PackChanged', {165 callback = function(ev)166- local name, kind = ev.data.spec.name, ev.data.kind167- print("package name ", name)168- vim.print("spec ", ev.data.spec)169- -- vim.print("version ", ev.data.spec.version)170-171- -- print("package kind ", kind)172- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then173- -- -- Call `:AvanteBuild` to download prebuilt libraries174- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()175- -- end176- end177- }178-)179-180+ local name, kind = ev.data.spec.name, ev.data.kind181+ print('package name ', name)182+ vim.print('spec ', ev.data.spec)183+ -- vim.print("version ", ev.data.spec.version)184+185+ -- print("package kind ", kind)186+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then187+ -- -- Call `:AvanteBuild` to download prebuilt libraries188+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()189+ -- end190+ end,191+})192diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua193index ffcb08a..8b60a67 100644194--- a/config/nvim/lua/plugins/kitty-scrollback.lua195+++ b/config/nvim/lua/plugins/kitty-scrollback.lua196@@ -2,43 +2,43 @@197 -- if you want to create autocommands198 199 --200- -- myconfig = {201- -- kitty_get_text = {202- -- ansi = false,203- -- },204- -- },205- -- myfnconfig = function(kitty_data)206- -- return {207- -- kitty_get_text = {208- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',209- -- },210- -- }211- -- end,212+-- myconfig = {213+-- kitty_get_text = {214+-- ansi = false,215+-- },216+-- },217+-- myfnconfig = function(kitty_data)218+-- return {219+-- kitty_get_text = {220+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',221+-- },222+-- }223+-- end,224 require('kitty-scrollback').setup(225 -- global configuration226 {227- kitty_get_text = {228- -- boolean If true, the text will include the ANSI formatting escape codes for colors,229- ansi = true,230- extent = 'all',231- },232- -- scrollback_columns = 300,233- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external234- scrollback_tempfile = false,235- keymaps_enabled = false,236- close_after_yank = true,237- status_window = {238+ kitty_get_text = {239+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,240+ ansi = true,241+ extent = 'all',242+ },243+ -- scrollback_columns = 300,244+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external245+ scrollback_tempfile = false,246+ keymaps_enabled = false,247+ close_after_yank = true,248+ status_window = {249 250- style_simple = true, -- user may not have Nerd Fonts installed251- show_timer = true,252+ style_simple = true, -- user may not have Nerd Fonts installed253+ show_timer = true,254 255- autoclose = true,256- },257- paste_window = {258- -- yank_register = '',259- -- boolean? If true, the yank_register copies content to the paste window. If false, d260- -- -- isable yank to paste window261- -- yank_register_enabled = false,262- }263+ autoclose = true,264+ },265+ paste_window = {266+ -- yank_register = '',267+ -- boolean? If true, the yank_register copies content to the paste window. If false, d268+ -- -- isable yank to paste window269+ -- yank_register_enabled = false,270+ },271 }272 )273diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix274index e95570a..ae177f7 100644275--- a/hm/modules/audiocast.nix276+++ b/hm/modules/audiocast.nix277@@ -1,7 +1,13 @@278-{ config, lib, pkgs, ... }:279+{280+ config,281+ lib,282+ pkgs,283+ ...284+}:285 let286- cfg = config.services.audiocast;287-in {288+ cfg = config.services.audiocast;289+in290+{291 options = {292 services.audiocast = {293 enable = lib.mkEnableOption "audiocast-stream";294@@ -16,44 +22,43 @@ in {295 };296 config = lib.mkIf cfg.enable {297 298-299- # Renderer friendlyName to discover over SSDP300- # Hard-coded AVTransport control URL (skips SSDP discovery)301- # else we give url302- # ❯ yamaha discover303- # name host model udn304- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e305- # port 8082 Local HTTP port for the stream306- xdg.configFile."audiocast/config" = {307- enable = false;308- text = ''309- [audiocast]310- name = Espace Musical311- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)312- mode = app313- sink = audiocast314- sink_description = AudioCast (DLNA)315- '';316-};317-318- systemd.user.services.audiocast-stream = {319- Unit = {320- Description = "Stream PipeWire audio to a DLNA renderer";321- After = [322- "pipewire.service"323- "pipewire-pulse.service"324- ];325- Wants = [ "pipewire-pulse.service" ];326+ # Renderer friendlyName to discover over SSDP327+ # Hard-coded AVTransport control URL (skips SSDP discovery)328+ # else we give url329+ # ❯ yamaha discover330+ # name host model udn331+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e332+ # port 8082 Local HTTP port for the stream333+ xdg.configFile."audiocast/config" = {334+ enable = false;335+ text = ''336+ [audiocast]337+ name = Espace Musical338+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)339+ mode = app340+ sink = audiocast341+ sink_description = AudioCast (DLNA)342+ '';343 };344- Service = {345- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";346- Restart = "on-failure";347- # The renderer may be asleep or temporarily off the network. The348- # program exits when discovery fails, so retry without a tight loop.349- RestartSec = 30;350+351+ systemd.user.services.audiocast-stream = {352+ Unit = {353+ Description = "Stream PipeWire audio to a DLNA renderer";354+ After = [355+ "pipewire.service"356+ "pipewire-pulse.service"357+ ];358+ Wants = [ "pipewire-pulse.service" ];359+ };360+ Service = {361+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";362+ Restart = "on-failure";363+ # The renderer may be asleep or temporarily off the network. The364+ # program exits when discovery fails, so retry without a tight loop.365+ RestartSec = 30;366+ };367+ Install.WantedBy = [ "default.target" ];368 };369- Install.WantedBy = [ "default.target" ];370- };371 };372 373 }374diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix375index b6d495f..e7da295 100644376--- a/hm/modules/kitty.nix377+++ b/hm/modules/kitty.nix378@@ -54,7 +54,7 @@ in379 map kitty_mod+h kitty_scrollback_nvim ./tmp380 # Browse output of the last shell command in nvim381 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output382- '';383+ '';384 385 #386 # # Browse output of the last shell command in nvim387diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix388index 79e7748..578c8ac 100644389--- a/hm/modules/package-sets.nix390+++ b/hm/modules/package-sets.nix391@@ -114,7 +114,6 @@ in392 pkgs.blazingjj393 flakeSelf.inputs.jj-gh.packages.${system}.default394 395-396 # pkgs.gg-jj397 # pkgs.lazyjj398 # pkgs.jj-fzf399@@ -415,7 +414,6 @@ in400 lurk # a rust strace401 lsof # to see open files402 403-404 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship405 libossp_uuid # for the 'libuuid' executable406 407@@ -495,7 +493,7 @@ in408 tig409 tmux # when connecting via ssh410 universal-ctags # there are many different ctags, be careful !411- uv # to install python packages412+ uv # to install python packages413 unar # used to view archives by yazi (now using ouch ?)414 vifm415 viu # a console image viewer416@@ -691,7 +689,7 @@ in417 pkgs.tsukumi418 ];419 })420- (mkIf cfg.jellyfin {421+ (mkIf cfg.jellyfin {422 423 home.packages = [424 425@@ -701,12 +699,11 @@ in426 # pkgs.feishin # GUI427 # pkgs.jellycli # could not login :/428 429-430 # VIDEO compatible431 # - Jellyfin MPV Shim432 pkgs.jellyfin-desktop433 pkgs.jellyfin-mpv-shim434- # jellyhaj # not upstreamed yet 435+ # jellyhaj # not upstreamed yet436 # fladder # nice GUI437 # jftui too minimalistic438 # pkgs.jellyflix # nice439diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix440index f0b55a4..31fc245 100644441--- a/hm/profiles/teto-desktop/default.nix442+++ b/hm/profiles/teto-desktop/default.nix443@@ -112,7 +112,7 @@ in444 445 home.packages =446 with pkgs;447- let 448+ let449 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;450 451 # lux-cli-teto = lux-cli;452@@ -182,8 +182,7 @@ in453 # kaggle # kaggle interface454 # python3Packages.kaggle455 456-457- sonic-pi # for live music coding458+ sonic-pi # for live music coding459 stow460 systemctl-tui461 timr-tui # rust clock462diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix463index 875de63..aad3fbd 100644464--- a/hm/profiles/teto-desktop/programs/jujutsu.nix465+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix466@@ -34,9 +34,12 @@467 name = "teto";468 };469 ui = {470- # jj splits puts the cursor in a f**** position, we need $line to restore 471+ # jj splits puts the cursor in a f**** position, we need $line to restore472 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes473- editor = ["nvim" "+$line"];474+ editor = [475+ "nvim"476+ "+$line"477+ ];478 default-command = "status";479 merge-editor = "nvim";480 # Enable pagination for commands that support it (default)481diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix482index be52e45..f9d09d8 100644483--- a/hm/profiles/teto-desktop/programs/rofi.nix484+++ b/hm/profiles/teto-desktop/programs/rofi.nix485@@ -37,8 +37,8 @@486 487 location = "center";488 modes = [489- # modes: [ combi ];490- # combi-modes: [ window, drun, run ];491+ # modes: [ combi ];492+ # combi-modes: [ window, drun, run ];493 494 ];495 496diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix497index 0dad1af..11dd2ad 100644498--- a/hm/profiles/teto-desktop/xdg/default.nix499+++ b/hm/profiles/teto-desktop/xdg/default.nix500@@ -101,12 +101,12 @@501 "bash/bashrc".text = ''502 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"503 source "$script_dir/manual.sh"504- ''505- # check if flyline defined too ?506- + lib.optionalString osConfig.programs.flyline.enable '' 507- source "$script_dir/flyline.sh"508+ ''509+ # check if flyline defined too ?510+ + lib.optionalString osConfig.programs.flyline.enable ''511+ source "$script_dir/flyline.sh"512 513- '';514+ '';515 516 "nvim/lua/generated-by-nix.lua" =517 let518diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix519index 77dae93..78c87ca 100644520--- a/hosts/jedha/default.nix521+++ b/hosts/jedha/default.nix522@@ -91,12 +91,20 @@ in523 # Upmpdcli's local-library server needs both discovery and HTTP access.524 networking.firewall = lib.mkIf config.services.upmpdcli.enable {525 allowedUDPPorts = [ 1900 ];526- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];527+ allowedTCPPorts = with config.services.upmpdcli.configuration; [528+ upnpport529+ uprclport530+ ];531 };532 533 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {534 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.535- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];536+ path = [537+ pkgs.recoll538+ pkgs.python3539+ pkgs.openssl540+ pkgs.diffutils541+ ];542 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];543 };544 545diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix546index 083732e..09017c2 100644547--- a/hosts/jedha/services/avahi.nix548+++ b/hosts/jedha/services/avahi.nix549@@ -13,7 +13,6 @@550 551 debug = true;552 553-554 # allowInterfaces = [555 # "wlp10s0"556 # ];557@@ -30,13 +29,12 @@558 };559 560 publish = {561- disable-publishing = false;562- disable-user-service-publishing = false;563- publish-addresses = true;564- };565-566+ disable-publishing = false;567+ disable-user-service-publishing = false;568+ publish-addresses = true;569 };570 571+ };572 573 nssmdns4 = true;574 # publish = {575diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix576index 0ea64f9..9b1b770 100644577--- a/hosts/jedha/services/minidlna.nix578+++ b/hosts/jedha/services/minidlna.nix579@@ -7,7 +7,6 @@580 # announceInterval = 60;581 openFirewall = true;582 583-584 # there are udp errors when it binds to wireguard network ?585 586 settings = {587@@ -16,9 +15,9 @@588 friendly_name = "jedha";589 # inotify = "yes";590 log_level = "warn";591- media_dir = [ 592+ media_dir = [593 # can be prefixed with V/A, to filter audio/video594- "/mnt/ext/music" 595+ "/mnt/ext/music"596 ];597 inotify = "yes";598 # db_dir =599diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix600index 28cc3b4..1d1609c 100644601--- a/hosts/jedha/services/opentelemetry-collector.nix602+++ b/hosts/jedha/services/opentelemetry-collector.nix603@@ -1,23 +1,22 @@604 {605 606-607 enable = true;608 609 settings =610-let611- port = 4318;612-in613+ let614+ port = 4318;615+ in616 {617- exporters.debug.verbosity = "detailed";618- receivers.otlp.protocols = {619- http.endpoint = "0.0.0.0:${toString port}";620- };621- service = {622- pipelines.logs = {623- receivers = [ "otlp" ];624- exporters = [ "debug" ];625- };626- };627+ exporters.debug.verbosity = "detailed";628+ receivers.otlp.protocols = {629+ http.endpoint = "0.0.0.0:${toString port}";630+ };631+ service = {632+ pipelines.logs = {633+ receivers = [ "otlp" ];634+ exporters = [ "debug" ];635+ };636+ };637 638- };639+ };640 }641diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix642index ef04f30..390f091 100644643--- a/hosts/jedha/services/upmpdcli.nix644+++ b/hosts/jedha/services/upmpdcli.nix645@@ -1,12 +1,12 @@646 /*647-upmpdcli is a bridge: it receives UPnP commands and controls an MPD server. The UPnP player itself doesn’t play the song; MPD fetches and plays it. So when you choose a track in rmpd, it 648- should change playback if rmpd and upmpdcli are controlling the same MPD instance649- 650- • MPD browsing UPnP servers: MPD has a built-in UPnP/DLNA database plugin (available in MPD 0.19+ configured with --enable-upnp) that lets MPD act as a client to browse and stream music from UPnP media servers. You browse the server's folder and directory trees using a standard MPD client, though direct tag-based queries (like artist/album/genre database searches) and saving playlists directly can have limitations.651-• Using MPD as a UPnP Renderer (upmpdcli): If you want to send music from an external UPnP control point (such as BubbleUPnP on your phone) to MPD, you use a front-end like upmpdcli. In this setup, the control point talks UPnP to upmpdcli, which translates the commands into the MPD protocol to populate and control the local MPD playlist.652+ upmpdcli is a bridge: it receives UPnP commands and controls an MPD server. The UPnP player itself doesn’t play the song; MPD fetches and plays it. So when you choose a track in rmpd, it653+ should change playback if rmpd and upmpdcli are controlling the same MPD instance654 655-mpd now has a plugin that can play music from upnp server 656-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction657+ • MPD browsing UPnP servers: MPD has a built-in UPnP/DLNA database plugin (available in MPD 0.19+ configured with --enable-upnp) that lets MPD act as a client to browse and stream music from UPnP media servers. You browse the server's folder and directory trees using a standard MPD client, though direct tag-based queries (like artist/album/genre database searches) and saving playlists directly can have limitations.658+ • Using MPD as a UPnP Renderer (upmpdcli): If you want to send music from an external UPnP control point (such as BubbleUPnP on your phone) to MPD, you use a front-end like upmpdcli. In this setup, the control point talks UPnP to upmpdcli, which translates the commands into the MPD protocol to populate and control the local MPD playlist.659+660+ mpd now has a plugin that can play music from upnp server661+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction662 */663 664 { pkgs, lib, ... }:665@@ -44,7 +44,7 @@ in666 mpdport = 6600;667 # try to see if I can control it myself668 ownqueue = 0;669- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 670+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo671 # control the playlist. The client can disconnect after playlist was created672 openhome = 0;673 upnpav = 1;674diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix675index 59d7129..e0cab47 100644676--- a/hosts/jedha/systemd.nix677+++ b/hosts/jedha/systemd.nix678@@ -34,61 +34,60 @@ in679 })680 # disabled because ha-mcp broken681 (lib.mkIf false {682- ha-mcp = {683- description = "Home Assistant MCP server";684- wantedBy = [ "multi-user.target" ];685- wants = [ "network-online.target" ];686- after = [ "network-online.target" ];687- environment = {688- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";689- HOME = "/var/lib/ha-mcp";690- MCP_HOST = "127.0.0.1";691- MCP_PORT = "8086";692- };693- serviceConfig = {694- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";695- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.696- EnvironmentFile = "/var/lib/ha-mcp/environment";697- DynamicUser = true;698- StateDirectory = "ha-mcp";699- WorkingDirectory = "/var/lib/ha-mcp";700- Restart = "on-failure";701- RestartSec = 5;702- UMask = "0077";703- };704+ ha-mcp = {705+ description = "Home Assistant MCP server";706+ wantedBy = [ "multi-user.target" ];707+ wants = [ "network-online.target" ];708+ after = [ "network-online.target" ];709+ environment = {710+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";711+ HOME = "/var/lib/ha-mcp";712+ MCP_HOST = "127.0.0.1";713+ MCP_PORT = "8086";714 };715+ serviceConfig = {716+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";717+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.718+ EnvironmentFile = "/var/lib/ha-mcp/environment";719+ DynamicUser = true;720+ StateDirectory = "ha-mcp";721+ WorkingDirectory = "/var/lib/ha-mcp";722+ Restart = "on-failure";723+ RestartSec = 5;724+ UMask = "0077";725+ };726+ };727 728- # copied from https://github.com/NixOS/nixpkgs/pull/544252729- # lib.recursiveUpdate slib.systemd.serviceDefaults {730- speech-to-phrase = {731- # after = [ "home-assistant.service" ];732- script = lib.concatStringsSep " " [733- (lib.getExe pkgs.speech-to-phrase)734- "--models-dir"735- "\"$STATE_DIRECTORY/models\""736- "--train-dir"737- "\"$STATE_DIRECTORY/train\""738- # "--custom-sentences-dir" ""739- "--uri 'tcp://127.0.0.1:10400'"740- "--hass-websocket-uri"741- "ws://${hassHost}:${toString hassPort}/api/websocket"742- "--retrain-on-start"743- "--retrain-on-connect"744- "--retrain-seconds"745- "300"746- ];747- serviceConfig = {748- #749- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;750- Group = "speech-to-phrase";751- StateDirectory = "speech-to-phrase";752- User = "speech-to-phrase";753- # TODO: hardening754- };755+ # copied from https://github.com/NixOS/nixpkgs/pull/544252756+ # lib.recursiveUpdate slib.systemd.serviceDefaults {757+ speech-to-phrase = {758+ # after = [ "home-assistant.service" ];759+ script = lib.concatStringsSep " " [760+ (lib.getExe pkgs.speech-to-phrase)761+ "--models-dir"762+ "\"$STATE_DIRECTORY/models\""763+ "--train-dir"764+ "\"$STATE_DIRECTORY/train\""765+ # "--custom-sentences-dir" ""766+ "--uri 'tcp://127.0.0.1:10400'"767+ "--hass-websocket-uri"768+ "ws://${hassHost}:${toString hassPort}/api/websocket"769+ "--retrain-on-start"770+ "--retrain-on-connect"771+ "--retrain-seconds"772+ "300"773+ ];774+ serviceConfig = {775+ #776+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;777+ Group = "speech-to-phrase";778+ StateDirectory = "speech-to-phrase";779+ User = "speech-to-phrase";780+ # TODO: hardening781 };782+ };783 784- }785- )786+ })787 ];788 789 # just to test790diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix791index 8cbae35..3c41972 100644792--- a/hosts/tatooine/default.nix793+++ b/hosts/tatooine/default.nix794@@ -132,7 +132,6 @@ in795 enableRedistributableFirmware = true;796 sane.enable = true;797 798-799 # High quality BT calls800 # https://nixos.wiki/wiki/Bluetooth801 bluetooth = {802diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix803index adc82dd..1724c86 100644804--- a/hosts/tatooine/services/adguardhome.nix805+++ b/hosts/tatooine/services/adguardhome.nix806@@ -10,7 +10,7 @@807 settings = {808 809 # http (since v0.107.36): Web interface configuration.810- # address: Web interface IP address with port to listen on 811+ # address: Web interface IP address with port to listen on812 http.address = "127.0.0.1:8084";813 814 };815diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix816index dd02f3f..f14c221 100644817--- a/hosts/tatooine/services/avahi.nix818+++ b/hosts/tatooine/services/avahi.nix819@@ -21,19 +21,19 @@820 821 settings = {822 publish = {823- publish-domain = true;824- disable-publishing = false;825- disable-user-service-publishing = false;826- publish-addresses = true;827- };828+ publish-domain = true;829+ disable-publishing = false;830+ disable-user-service-publishing = false;831+ publish-addresses = true;832+ };833 834 server = {835 use-ipv6 = false; # bug with multiple hostnames836- # # Set the host name avahi-daemon tries to register on the LAN. If omited defaults to the system host name as set with the sethostname() system call.837- # # secrets.jedha.hostname;838- # # host-name = "jedha";839- # # enable-dbus = true;840- #841+ # # Set the host name avahi-daemon tries to register on the LAN. If omited defaults to the system host name as set with the sethostname() system call.842+ # # secrets.jedha.hostname;843+ # # host-name = "jedha";844+ # # enable-dbus = true;845+ #846 };847 };848 849diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix850index 1025fbd..32ab52f 100644851--- a/hosts/tatooine/services/minidlna.nix852+++ b/hosts/tatooine/services/minidlna.nix853@@ -8,7 +8,6 @@854 # to receive sssdp answers855 openFirewall = true;856 857-858 # there are udp errors when it binds to wireguard network ?859 860 settings = {861@@ -17,7 +16,7 @@862 friendly_name = "tatooine";863 # inotify = "yes";864 log_level = "warn";865- media_dir = [ 866+ media_dir = [867 # can be prefixed with V/A, to filter audio/video868 "/home/teto/videos"869 "/home/teto/Music"870@@ -26,5 +25,3 @@871 # db_dir =872 };873 }874-875-876diff --git a/hosts/tatooine/services/n8n.nix b/hosts/tatooine/services/n8n.nix877index 8347d89..9b1b770 100644878--- a/hosts/tatooine/services/n8n.nix879+++ b/hosts/tatooine/services/n8n.nix880@@ -7,7 +7,6 @@881 # announceInterval = 60;882 openFirewall = true;883 884-885 # there are udp errors when it binds to wireguard network ?886 887 settings = {888@@ -16,12 +15,11 @@889 friendly_name = "jedha";890 # inotify = "yes";891 log_level = "warn";892- media_dir = [ 893+ media_dir = [894 # can be prefixed with V/A, to filter audio/video895- "/mnt/ext/music" 896+ "/mnt/ext/music"897 ];898 inotify = "yes";899 # db_dir =900 };901 }902-903diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix904index 0c082b6..58d9c85 100644905--- a/hosts/tatooine/services/pulseaudio.nix906+++ b/hosts/tatooine/services/pulseaudio.nix907@@ -1,9 +1,8 @@908 { pkgs, ... }:909- # cant be enabled with pipewire910- {911- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false912- enable = false;913- # for ad2p profle ?914- package = pkgs.pulseaudioFull;915- }916-917+# cant be enabled with pipewire918+{919+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false920+ enable = false;921+ # for ad2p profle ?922+ package = pkgs.pulseaudioFull;923+}924diff --git a/justfile b/justfile925index a87655b..456c53b 100644926--- a/justfile927+++ b/justfile928@@ -65,7 +65,7 @@ bootstrap-vps target:929 --debug930 931 bump-meli:932- nix-update -F --version=branch=master meli-teto933+ nix-update -F --version=branch=master meli-teto934 935 # just to save the command936 937@@ -321,7 +321,6 @@ inspect-current-generation:938 flash-ulanzi-tc001:939 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin940 941-942 # check dlna servers on the network943 scan-upnp:944 nmap --script=broadcast-upnp-info 192.168.0.0/16945diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix946index 3820510..e4bca1c 100644947--- a/nixos/profiles/adguardhome.nix948+++ b/nixos/profiles/adguardhome.nix949@@ -9,7 +9,6 @@950 # mutableSettings = true;951 # openFirewall = false;952 953-954 # mutableSettings = true;955 # extraArgs = [];956 957diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix958index 9ceeefc..3835a79 100644959--- a/nixos/profiles/avahi.nix960+++ b/nixos/profiles/avahi.nix961@@ -1,9 +1,6 @@962 /*963-964-guide:965-avahi-browse-domains 966-967-968+ guide:969+ avahi-browse-domains970 */971 {972 config,973@@ -23,7 +20,7 @@ avahi-browse-domains974 975 server = {976 977- # List of non-local DNS domains to be browsed.978+ # List of non-local DNS domains to be browsed.979 browse-domains = [980 # "0pointer.de"981 # "zeroconf.org"982diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix983index 3f9282d..9039e39 100644984--- a/nixos/profiles/desktop/programs/flyline.nix985+++ b/nixos/profiles/desktop/programs/flyline.nix986@@ -1,5 +1,5 @@987 {988 enable = true;989- # 990+ #991 # package = ;992 }