nixbot

builds

failed treefmt-check checks.x86_64-linux.formatting · build #58 · raw

1treefmt v2.6.0traversed 1621 files2emitted 871 files for processing3formatted 871 files (37 changed) in 1.329s4 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/codex.nix16 M hm/profiles/teto-desktop/programs/firefox.nix17 M hm/profiles/teto-desktop/programs/jujutsu.nix18 M hm/profiles/teto-desktop/programs/rofi.nix19 M hm/profiles/teto-desktop/xdg/default.nix20 M hosts/jedha/default.nix21 M hosts/jedha/home-manager/users/teto/default.nix22 M hosts/jedha/home-manager/users/teto/programs/mcp.nix23 M hosts/jedha/services/avahi.nix24 M hosts/jedha/services/minidlna.nix25 M hosts/jedha/services/opentelemetry-collector.nix26 M hosts/jedha/services/upmpdcli.nix27 M hosts/jedha/systemd.nix28 M hosts/router/services/home-assistant.nix29 M hosts/tatooine/default.nix30 M hosts/tatooine/services/adguardhome.nix31 M hosts/tatooine/services/avahi.nix32 M hosts/tatooine/services/minidlna.nix33 M hosts/tatooine/services/pulseaudio.nix34 M hosts/tatooine/tetos.nix35 M justfile36 M nixos/modules/minidlna.nix37 M nixos/modules/upnp.nix38 M nixos/profiles/adguardhome.nix39 M nixos/profiles/avahi.nix40 M nixos/profiles/desktop/programs/flyline.nix41diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix42index a4a9a74..4adedee 10064443--- a/by-name/ko/kodi-tetos/package.nix44+++ b/by-name/ko/kodi-tetos/package.nix45@@ -1,11 +1,13 @@46 { kodi, makeWrapper }:47 48 let49- kodiWithPackages = kodi.withPackages (p: with p; [50- jellyfin51- # pvr-iptvsimple52- vfs-sftp53- ]);54+ kodiWithPackages = kodi.withPackages (55+ p: with p; [56+ jellyfin57+ # pvr-iptvsimple58+ vfs-sftp59+ ]60+ );61 in62 kodiWithPackages.overrideAttrs (oldAttrs: {63 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];64diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix65index 9442d75..a9d8692 10064466--- a/by-name/ze/zeal-teto/package.nix67+++ b/by-name/ze/zeal-teto/package.nix68@@ -1,10 +1,9 @@69 { zeal }:70 zeal.overrideAttrs (oa: {71 72- # export QMLSCENE_DEVICE=software73- postInstall = ''74- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software75- '';76-77- })78+ # export QMLSCENE_DEVICE=software79+ postInstall = ''80+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software81+ '';82 83+})84diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh85index c2b1a84..6b647be 10064486--- a/config/bash/flyline.sh87+++ b/config/bash/flyline.sh88@@ -10,12 +10,11 @@ flyline history --backend flyline89 # it flickers90 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 291 92-# Codex: change 93+# Codex: change94 flyline set-agent-mode \95- --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. " \96- --trigger-prefix ': ' \97- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'98-99+ --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. " \100+ --trigger-prefix ': ' \101+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'102 103 # Antigravity:104 # flyline set-agent-mode \105@@ -26,7 +25,6 @@ flyline set-agent-mode \106 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"107 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR108 109-110 # precmd_functions+=(set_ps1)111 # Now you can use this animation in your prompt. For example:112 PS1='\u@\h:\w MOUSE_MODE \n$ '113@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''114 115 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽116 117-118 # Experiment with higher frame rates for smooth transitions:119 # flyline create-prompt-widget animation --name "john" --fps 24 \120 # '\e[38;2;255;0;0m\u' \121@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''122 # '\e[38;2;255;0;63m\u' \123 # '\e[38;2;255;0;47m\u' \124 # '\e[38;2;255;0;31m\u' \125-# '\e[38;2;255;0;15m\u' 126+# '\e[38;2;255;0;15m\u'127diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua128index 85acdb0..9d9296e 100644129--- a/config/nvim/after/ftplugin/Avante.lua130+++ b/config/nvim/after/ftplugin/Avante.lua131@@ -14,7 +14,6 @@ vim.opt.showbreak = ''132 -- - update_content133 -- - on_state_change134 135-136 -- local sidebar = require('avante').get()137 138 -- vim.api.nvim_create_autocmd('WinEnter', {139@@ -29,8 +28,8 @@ vim.opt.showbreak = ''140 -- vim.wo.cursorline = false141 vim.wo.foldcolumn = '3' -- auto142 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.143--- could work well, react onto 144-vim.wo.foldmethod = "expr"145+-- could work well, react onto146+vim.wo.foldmethod = 'expr'147 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'148 149 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer150diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua151index b321120..bc9e2c6 100644152--- a/config/nvim/after/ftplugin/RikaiPopup.lua153+++ b/config/nvim/after/ftplugin/RikaiPopup.lua154@@ -3,10 +3,9 @@155 vim.keymap.set('n', '<localleader>s', function()156 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha157 158- vim.fn.jobstart({ 159- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })160-161+ vim.fn.jobstart({162+ 'mpv',163+ '--no-video',164+ vim.fn.expand('~/home/data/audio/notif1.wav'),165+ }, { detach = true })166 end, { buffer = true, desc = 'Play sound' })167-168-169-170diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua171index cc3dfce..da96811 100644172--- a/config/nvim/lua/init-manual.lua173+++ b/config/nvim/lua/init-manual.lua174@@ -948,8 +948,8 @@ end, { desc = 'Go to file, create if missing' })175 -- Outside of the fork it kills the plugin so careful176 -- normally overriden by setup call177 vim.g.avante = {178- -- -- print error messages, set to false to avoid issues with inspect_ai179- debug = false, 180+ -- -- print error messages, set to false to avoid issues with inspect_ai181+ debug = false,182 -- log_level =183 log_level = vim.log.levels.DEBUG,184 185@@ -1353,8 +1353,8 @@ vim.api.nvim_create_autocmd({ 'User' }, {186 vim.notify('avante: LLM answered')187 -- Leave the event callback before closing all windows, including modified buffers.188 -- vim.schedule(function()189- -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua190- --191+ -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua192+ --193 -- vim.cmd('qall!')194 -- end)195 end,196@@ -1371,22 +1371,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {197 --198 -- ╰─199 200-201-vim.api.nvim_create_autocmd(202- 'PackChanged',203- {204+vim.api.nvim_create_autocmd('PackChanged', {205 callback = function(ev)206- local name, kind = ev.data.spec.name, ev.data.kind207- print("package name ", name)208- vim.print("spec ", ev.data.spec)209- -- vim.print("version ", ev.data.spec.version)210-211- -- print("package kind ", kind)212- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then213- -- -- Call `:AvanteBuild` to download prebuilt libraries214- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()215- -- end216- end217- }218-)219-220+ local name, kind = ev.data.spec.name, ev.data.kind221+ print('package name ', name)222+ vim.print('spec ', ev.data.spec)223+ -- vim.print("version ", ev.data.spec.version)224+225+ -- print("package kind ", kind)226+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then227+ -- -- Call `:AvanteBuild` to download prebuilt libraries228+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()229+ -- end230+ end,231+})232diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua233index ffcb08a..8b60a67 100644234--- a/config/nvim/lua/plugins/kitty-scrollback.lua235+++ b/config/nvim/lua/plugins/kitty-scrollback.lua236@@ -2,43 +2,43 @@237 -- if you want to create autocommands238 239 --240- -- myconfig = {241- -- kitty_get_text = {242- -- ansi = false,243- -- },244- -- },245- -- myfnconfig = function(kitty_data)246- -- return {247- -- kitty_get_text = {248- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',249- -- },250- -- }251- -- end,252+-- myconfig = {253+-- kitty_get_text = {254+-- ansi = false,255+-- },256+-- },257+-- myfnconfig = function(kitty_data)258+-- return {259+-- kitty_get_text = {260+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',261+-- },262+-- }263+-- end,264 require('kitty-scrollback').setup(265 -- global configuration266 {267- kitty_get_text = {268- -- boolean If true, the text will include the ANSI formatting escape codes for colors,269- ansi = true,270- extent = 'all',271- },272- -- scrollback_columns = 300,273- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external274- scrollback_tempfile = false,275- keymaps_enabled = false,276- close_after_yank = true,277- status_window = {278+ kitty_get_text = {279+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,280+ ansi = true,281+ extent = 'all',282+ },283+ -- scrollback_columns = 300,284+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external285+ scrollback_tempfile = false,286+ keymaps_enabled = false,287+ close_after_yank = true,288+ status_window = {289 290- style_simple = true, -- user may not have Nerd Fonts installed291- show_timer = true,292+ style_simple = true, -- user may not have Nerd Fonts installed293+ show_timer = true,294 295- autoclose = true,296- },297- paste_window = {298- -- yank_register = '',299- -- boolean? If true, the yank_register copies content to the paste window. If false, d300- -- -- isable yank to paste window301- -- yank_register_enabled = false,302- }303+ autoclose = true,304+ },305+ paste_window = {306+ -- yank_register = '',307+ -- boolean? If true, the yank_register copies content to the paste window. If false, d308+ -- -- isable yank to paste window309+ -- yank_register_enabled = false,310+ },311 }312 )313diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix314index e95570a..ae177f7 100644315--- a/hm/modules/audiocast.nix316+++ b/hm/modules/audiocast.nix317@@ -1,7 +1,13 @@318-{ config, lib, pkgs, ... }:319+{320+ config,321+ lib,322+ pkgs,323+ ...324+}:325 let326- cfg = config.services.audiocast;327-in {328+ cfg = config.services.audiocast;329+in330+{331 options = {332 services.audiocast = {333 enable = lib.mkEnableOption "audiocast-stream";334@@ -16,44 +22,43 @@ in {335 };336 config = lib.mkIf cfg.enable {337 338-339- # Renderer friendlyName to discover over SSDP340- # Hard-coded AVTransport control URL (skips SSDP discovery)341- # else we give url342- # ❯ yamaha discover343- # name host model udn344- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e345- # port 8082 Local HTTP port for the stream346- xdg.configFile."audiocast/config" = {347- enable = false;348- text = ''349- [audiocast]350- name = Espace Musical351- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)352- mode = app353- sink = audiocast354- sink_description = AudioCast (DLNA)355- '';356-};357-358- systemd.user.services.audiocast-stream = {359- Unit = {360- Description = "Stream PipeWire audio to a DLNA renderer";361- After = [362- "pipewire.service"363- "pipewire-pulse.service"364- ];365- Wants = [ "pipewire-pulse.service" ];366+ # Renderer friendlyName to discover over SSDP367+ # Hard-coded AVTransport control URL (skips SSDP discovery)368+ # else we give url369+ # ❯ yamaha discover370+ # name host model udn371+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e372+ # port 8082 Local HTTP port for the stream373+ xdg.configFile."audiocast/config" = {374+ enable = false;375+ text = ''376+ [audiocast]377+ name = Espace Musical378+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)379+ mode = app380+ sink = audiocast381+ sink_description = AudioCast (DLNA)382+ '';383 };384- Service = {385- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";386- Restart = "on-failure";387- # The renderer may be asleep or temporarily off the network. The388- # program exits when discovery fails, so retry without a tight loop.389- RestartSec = 30;390+391+ systemd.user.services.audiocast-stream = {392+ Unit = {393+ Description = "Stream PipeWire audio to a DLNA renderer";394+ After = [395+ "pipewire.service"396+ "pipewire-pulse.service"397+ ];398+ Wants = [ "pipewire-pulse.service" ];399+ };400+ Service = {401+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";402+ Restart = "on-failure";403+ # The renderer may be asleep or temporarily off the network. The404+ # program exits when discovery fails, so retry without a tight loop.405+ RestartSec = 30;406+ };407+ Install.WantedBy = [ "default.target" ];408 };409- Install.WantedBy = [ "default.target" ];410- };411 };412 413 }414diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix415index b6d495f..e7da295 100644416--- a/hm/modules/kitty.nix417+++ b/hm/modules/kitty.nix418@@ -54,7 +54,7 @@ in419 map kitty_mod+h kitty_scrollback_nvim ./tmp420 # Browse output of the last shell command in nvim421 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output422- '';423+ '';424 425 #426 # # Browse output of the last shell command in nvim427diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix428index c64c1af..0de9f69 100644429--- a/hm/modules/package-sets.nix430+++ b/hm/modules/package-sets.nix431@@ -62,7 +62,6 @@ in432 433 };434 435-436 # this gets merged by default437 config = lib.mkMerge [438 {439@@ -115,7 +114,6 @@ in440 pkgs.blazingjj441 flakeSelf.inputs.jj-gh.packages.${system}.default442 443-444 # pkgs.gg-jj445 # pkgs.lazyjj446 # pkgs.jj-fzf447@@ -419,7 +417,6 @@ in448 lurk # a rust strace449 lsof # to see open files450 451-452 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship453 libossp_uuid # for the 'libuuid' executable454 455@@ -490,7 +487,6 @@ in456 457 # rainfrog # database exploration458 459-460 process-compose # docker-compose - like461 # rpl # to replace strings across files462 repgrep # replace matches found by rg463@@ -502,7 +498,7 @@ in464 tmux # when connecting via ssh465 trurl # used to parse url in the firefox-router executable466 universal-ctags # there are many different ctags, be careful !467- uv # to install python packages468+ uv # to install python packages469 unar # used to view archives by yazi (now using ouch ?)470 vifm471 viu # a console image viewer472@@ -698,7 +694,7 @@ in473 pkgs.tsukumi474 ];475 })476- (mkIf cfg.jellyfin {477+ (mkIf cfg.jellyfin {478 479 home.packages = [480 481@@ -709,13 +705,12 @@ in482 # pkgs.feishin # GUI483 # pkgs.jellycli # could not login :/484 485-486 # VIDEO compatible487 # - Jellyfin MPV Shim488 pkgs.tsukimi # gtk+rust music player GUI489 pkgs.jellyfin-desktop490 pkgs.jellyfin-mpv-shim491- # jellyhaj # not upstreamed yet 492+ # jellyhaj # not upstreamed yet493 # fladder # nice GUI494 # jftui too minimalistic495 # pkgs.jellyflix # nice496diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix497index 19d355a..840e346 100644498--- a/hm/profiles/teto-desktop/default.nix499+++ b/hm/profiles/teto-desktop/default.nix500@@ -112,7 +112,7 @@ in501 502 home.packages =503 with pkgs;504- let 505+ let506 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;507 508 # lux-cli-teto = lux-cli;509@@ -123,7 +123,7 @@ in510 in511 512 [513- kodi-teto 514+ kodi-teto515 codex # openai agent516 codex-acp # originated from zed-industries, used in avante517 518@@ -187,8 +187,7 @@ in519 # kaggle # kaggle interface520 # python3Packages.kaggle521 522-523- sonic-pi # for live music coding524+ sonic-pi # for live music coding525 stow526 systemctl-tui527 timr-tui # rust clock528@@ -266,7 +265,7 @@ in529 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;530 TETOS_BUILDER_JEDHA = builder_jedha;531 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;532- inherit (secrets) 533+ inherit (secrets)534 TAVILY_API_KEY535 FIRECRAWL_API_KEY536 CONFIDENT_AI_API_KEY537diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix538index e282359..ea63df4 100644539--- a/hm/profiles/teto-desktop/programs/codex.nix540+++ b/hm/profiles/teto-desktop/programs/codex.nix541@@ -1,6 +1,5 @@542 {543 544-545 enable = true;546 enableMcpIntegration = true;547 # CODEX_HOME/AGENTS.md.548diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix549index 9b41b6c..aabc790 100644550--- a/hm/profiles/teto-desktop/programs/firefox.nix551+++ b/hm/profiles/teto-desktop/programs/firefox.nix552@@ -95,19 +95,18 @@ in553 # extraConfig =554 id = 0;555 556- userChrome =557- ''558- /* Hide tab bar in FF Quantum */559- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {560- #TabsToolbar {561- visibility: collapse !important;562- margin-bottom: 21px !important;563- }564-565- }566- '';567-568- # userContent = 569+ userChrome = ''570+ /* Hide tab bar in FF Quantum */571+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {572+ #TabsToolbar {573+ visibility: collapse !important;574+ margin-bottom: 21px !important;575+ }576+577+ }578+ '';579+580+ # userContent =581 # ''582 # /* Hide scrollbar in FF Quantum */583 # *{scrollbar-width:none !important}584diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix585index aacec43..9037ef9 100644586--- a/hm/profiles/teto-desktop/programs/jujutsu.nix587+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix588@@ -34,9 +34,12 @@589 name = "teto";590 };591 ui = {592- # jj splits puts the cursor in a f**** position, we need $line to restore 593+ # jj splits puts the cursor in a f**** position, we need $line to restore594 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes595- editor = ["nvim" "+$line"];596+ editor = [597+ "nvim"598+ "+$line"599+ ];600 default-command = "status";601 merge-editor = "nvim";602 # Enable pagination for commands that support it (default)603diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix604index be52e45..f9d09d8 100644605--- a/hm/profiles/teto-desktop/programs/rofi.nix606+++ b/hm/profiles/teto-desktop/programs/rofi.nix607@@ -37,8 +37,8 @@608 609 location = "center";610 modes = [611- # modes: [ combi ];612- # combi-modes: [ window, drun, run ];613+ # modes: [ combi ];614+ # combi-modes: [ window, drun, run ];615 616 ];617 618diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix619index 0dad1af..11dd2ad 100644620--- a/hm/profiles/teto-desktop/xdg/default.nix621+++ b/hm/profiles/teto-desktop/xdg/default.nix622@@ -101,12 +101,12 @@623 "bash/bashrc".text = ''624 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"625 source "$script_dir/manual.sh"626- ''627- # check if flyline defined too ?628- + lib.optionalString osConfig.programs.flyline.enable '' 629- source "$script_dir/flyline.sh"630+ ''631+ # check if flyline defined too ?632+ + lib.optionalString osConfig.programs.flyline.enable ''633+ source "$script_dir/flyline.sh"634 635- '';636+ '';637 638 "nvim/lua/generated-by-nix.lua" =639 let640diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix641index 77dae93..78c87ca 100644642--- a/hosts/jedha/default.nix643+++ b/hosts/jedha/default.nix644@@ -91,12 +91,20 @@ in645 # Upmpdcli's local-library server needs both discovery and HTTP access.646 networking.firewall = lib.mkIf config.services.upmpdcli.enable {647 allowedUDPPorts = [ 1900 ];648- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];649+ allowedTCPPorts = with config.services.upmpdcli.configuration; [650+ upnpport651+ uprclport652+ ];653 };654 655 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {656 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.657- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];658+ path = [659+ pkgs.recoll660+ pkgs.python3661+ pkgs.openssl662+ pkgs.diffutils663+ ];664 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];665 };666 667diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix668index 45588a8..3b7bfef 100644669--- a/hosts/jedha/home-manager/users/teto/default.nix670+++ b/hosts/jedha/home-manager/users/teto/default.nix671@@ -104,7 +104,6 @@ in672 btop-cuda # for jedha673 brush # a rust implementation of bash674 675-676 # creates conflicts since it brings python and several executables677 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService678 679@@ -147,9 +146,9 @@ in680 # bridge-utils# pour brctl681 # vscode-css-languageserver # to showcase 'cssls' lsp server682 683- rura # to build shell pipelines684- termusic # terminal music685- 686+ rura # to build shell pipelines687+ termusic # terminal music688+689 ];690 691 package-sets = {692diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix693index 3378a39..9ce7079 100644694--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix695+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix696@@ -1,36 +1,34 @@697 { pkgs, lib, ... }:698 {699 700-701 enable = true;702 703 # github:utensils/mcp-nixos704- servers = 705- {706-707- nixos = {708- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";709- };710-711- # https://github.com/homeassistant-ai/ha-mcp712- ha-mcp = {713-714- command = "${lib.getExe pkgs.ha-mcp}";715-716- };717-718- # everything = {719- # command = "npx";720- # args = [ "-y" "@modelcontextprotocol/server-everything" ];721- # };722- # context7 = {723- # url = "https://mcp.context7.com/mcp";724- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";725- # };726- # codeberg = {727- # command = "/path/to/forgejo-mcp";728- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];729- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";730- # };731- };732+ servers = {733+734+ nixos = {735+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";736+ };737+738+ # https://github.com/homeassistant-ai/ha-mcp739+ ha-mcp = {740+741+ command = "${lib.getExe pkgs.ha-mcp}";742+743+ };744+745+ # everything = {746+ # command = "npx";747+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];748+ # };749+ # context7 = {750+ # url = "https://mcp.context7.com/mcp";751+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";752+ # };753+ # codeberg = {754+ # command = "/path/to/forgejo-mcp";755+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];756+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";757+ # };758+ };759 }760diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix761index 083732e..09017c2 100644762--- a/hosts/jedha/services/avahi.nix763+++ b/hosts/jedha/services/avahi.nix764@@ -13,7 +13,6 @@765 766 debug = true;767 768-769 # allowInterfaces = [770 # "wlp10s0"771 # ];772@@ -30,13 +29,12 @@773 };774 775 publish = {776- disable-publishing = false;777- disable-user-service-publishing = false;778- publish-addresses = true;779- };780-781+ disable-publishing = false;782+ disable-user-service-publishing = false;783+ publish-addresses = true;784 };785 786+ };787 788 nssmdns4 = true;789 # publish = {790diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix791index 0ea64f9..9b1b770 100644792--- a/hosts/jedha/services/minidlna.nix793+++ b/hosts/jedha/services/minidlna.nix794@@ -7,7 +7,6 @@795 # announceInterval = 60;796 openFirewall = true;797 798-799 # there are udp errors when it binds to wireguard network ?800 801 settings = {802@@ -16,9 +15,9 @@803 friendly_name = "jedha";804 # inotify = "yes";805 log_level = "warn";806- media_dir = [ 807+ media_dir = [808 # can be prefixed with V/A, to filter audio/video809- "/mnt/ext/music" 810+ "/mnt/ext/music"811 ];812 inotify = "yes";813 # db_dir =814diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix815index 28cc3b4..1d1609c 100644816--- a/hosts/jedha/services/opentelemetry-collector.nix817+++ b/hosts/jedha/services/opentelemetry-collector.nix818@@ -1,23 +1,22 @@819 {820 821-822 enable = true;823 824 settings =825-let826- port = 4318;827-in828+ let829+ port = 4318;830+ in831 {832- exporters.debug.verbosity = "detailed";833- receivers.otlp.protocols = {834- http.endpoint = "0.0.0.0:${toString port}";835- };836- service = {837- pipelines.logs = {838- receivers = [ "otlp" ];839- exporters = [ "debug" ];840- };841- };842+ exporters.debug.verbosity = "detailed";843+ receivers.otlp.protocols = {844+ http.endpoint = "0.0.0.0:${toString port}";845+ };846+ service = {847+ pipelines.logs = {848+ receivers = [ "otlp" ];849+ exporters = [ "debug" ];850+ };851+ };852 853- };854+ };855 }856diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix857index ef04f30..390f091 100644858--- a/hosts/jedha/services/upmpdcli.nix859+++ b/hosts/jedha/services/upmpdcli.nix860@@ -1,12 +1,12 @@861 /*862-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 863- should change playback if rmpd and upmpdcli are controlling the same MPD instance864- 865- • 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.866-• 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.867+ 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, it868+ should change playback if rmpd and upmpdcli are controlling the same MPD instance869 870-mpd now has a plugin that can play music from upnp server 871-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction872+ • 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.873+ • 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.874+875+ mpd now has a plugin that can play music from upnp server876+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction877 */878 879 { pkgs, lib, ... }:880@@ -44,7 +44,7 @@ in881 mpdport = 6600;882 # try to see if I can control it myself883 ownqueue = 0;884- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 885+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo886 # control the playlist. The client can disconnect after playlist was created887 openhome = 0;888 upnpav = 1;889diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix890index 59d7129..e0cab47 100644891--- a/hosts/jedha/systemd.nix892+++ b/hosts/jedha/systemd.nix893@@ -34,61 +34,60 @@ in894 })895 # disabled because ha-mcp broken896 (lib.mkIf false {897- ha-mcp = {898- description = "Home Assistant MCP server";899- wantedBy = [ "multi-user.target" ];900- wants = [ "network-online.target" ];901- after = [ "network-online.target" ];902- environment = {903- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";904- HOME = "/var/lib/ha-mcp";905- MCP_HOST = "127.0.0.1";906- MCP_PORT = "8086";907- };908- serviceConfig = {909- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";910- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.911- EnvironmentFile = "/var/lib/ha-mcp/environment";912- DynamicUser = true;913- StateDirectory = "ha-mcp";914- WorkingDirectory = "/var/lib/ha-mcp";915- Restart = "on-failure";916- RestartSec = 5;917- UMask = "0077";918- };919+ ha-mcp = {920+ description = "Home Assistant MCP server";921+ wantedBy = [ "multi-user.target" ];922+ wants = [ "network-online.target" ];923+ after = [ "network-online.target" ];924+ environment = {925+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";926+ HOME = "/var/lib/ha-mcp";927+ MCP_HOST = "127.0.0.1";928+ MCP_PORT = "8086";929 };930+ serviceConfig = {931+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";932+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.933+ EnvironmentFile = "/var/lib/ha-mcp/environment";934+ DynamicUser = true;935+ StateDirectory = "ha-mcp";936+ WorkingDirectory = "/var/lib/ha-mcp";937+ Restart = "on-failure";938+ RestartSec = 5;939+ UMask = "0077";940+ };941+ };942 943- # copied from https://github.com/NixOS/nixpkgs/pull/544252944- # lib.recursiveUpdate slib.systemd.serviceDefaults {945- speech-to-phrase = {946- # after = [ "home-assistant.service" ];947- script = lib.concatStringsSep " " [948- (lib.getExe pkgs.speech-to-phrase)949- "--models-dir"950- "\"$STATE_DIRECTORY/models\""951- "--train-dir"952- "\"$STATE_DIRECTORY/train\""953- # "--custom-sentences-dir" ""954- "--uri 'tcp://127.0.0.1:10400'"955- "--hass-websocket-uri"956- "ws://${hassHost}:${toString hassPort}/api/websocket"957- "--retrain-on-start"958- "--retrain-on-connect"959- "--retrain-seconds"960- "300"961- ];962- serviceConfig = {963- #964- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;965- Group = "speech-to-phrase";966- StateDirectory = "speech-to-phrase";967- User = "speech-to-phrase";968- # TODO: hardening969- };970+ # copied from https://github.com/NixOS/nixpkgs/pull/544252971+ # lib.recursiveUpdate slib.systemd.serviceDefaults {972+ speech-to-phrase = {973+ # after = [ "home-assistant.service" ];974+ script = lib.concatStringsSep " " [975+ (lib.getExe pkgs.speech-to-phrase)976+ "--models-dir"977+ "\"$STATE_DIRECTORY/models\""978+ "--train-dir"979+ "\"$STATE_DIRECTORY/train\""980+ # "--custom-sentences-dir" ""981+ "--uri 'tcp://127.0.0.1:10400'"982+ "--hass-websocket-uri"983+ "ws://${hassHost}:${toString hassPort}/api/websocket"984+ "--retrain-on-start"985+ "--retrain-on-connect"986+ "--retrain-seconds"987+ "300"988+ ];989+ serviceConfig = {990+ #991+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;992+ Group = "speech-to-phrase";993+ StateDirectory = "speech-to-phrase";994+ User = "speech-to-phrase";995+ # TODO: hardening996 };997+ };998 999- }1000- )1001+ })1002 ];1003 1004 # just to test1005diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1006index 3d1ca82..004a56a 1006441007--- a/hosts/router/services/home-assistant.nix1008+++ b/hosts/router/services/home-assistant.nix1009@@ -25,7 +25,7 @@1010 ];1011 1012 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1013-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1014+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1015 easy-floorplan1016 ];1017 1018@@ -48,8 +48,6 @@1019 material-you-theme1020 ];1021 1022-1023-1024 blueprints = {1025 automation = [1026 # ATTENTION: The name should contain the extension .yaml1027diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1028index 8cbae35..3c41972 1006441029--- a/hosts/tatooine/default.nix1030+++ b/hosts/tatooine/default.nix1031@@ -132,7 +132,6 @@ in1032 enableRedistributableFirmware = true;1033 sane.enable = true;1034 1035-1036 # High quality BT calls1037 # https://nixos.wiki/wiki/Bluetooth1038 bluetooth = {1039diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1040index adc82dd..1724c86 1006441041--- a/hosts/tatooine/services/adguardhome.nix1042+++ b/hosts/tatooine/services/adguardhome.nix1043@@ -10,7 +10,7 @@1044 settings = {1045 1046 # http (since v0.107.36): Web interface configuration.1047- # address: Web interface IP address with port to listen on 1048+ # address: Web interface IP address with port to listen on1049 http.address = "127.0.0.1:8084";1050 1051 };1052diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1053index dd02f3f..f14c221 1006441054--- a/hosts/tatooine/services/avahi.nix1055+++ b/hosts/tatooine/services/avahi.nix1056@@ -21,19 +21,19 @@1057 1058 settings = {1059 publish = {1060- publish-domain = true;1061- disable-publishing = false;1062- disable-user-service-publishing = false;1063- publish-addresses = true;1064- };1065+ publish-domain = true;1066+ disable-publishing = false;1067+ disable-user-service-publishing = false;1068+ publish-addresses = true;1069+ };1070 1071 server = {1072 use-ipv6 = false; # bug with multiple hostnames1073- # # 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.1074- # # secrets.jedha.hostname;1075- # # host-name = "jedha";1076- # # enable-dbus = true;1077- #1078+ # # 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.1079+ # # secrets.jedha.hostname;1080+ # # host-name = "jedha";1081+ # # enable-dbus = true;1082+ #1083 };1084 };1085 1086diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1087index 1025fbd..32ab52f 1006441088--- a/hosts/tatooine/services/minidlna.nix1089+++ b/hosts/tatooine/services/minidlna.nix1090@@ -8,7 +8,6 @@1091 # to receive sssdp answers1092 openFirewall = true;1093 1094-1095 # there are udp errors when it binds to wireguard network ?1096 1097 settings = {1098@@ -17,7 +16,7 @@1099 friendly_name = "tatooine";1100 # inotify = "yes";1101 log_level = "warn";1102- media_dir = [ 1103+ media_dir = [1104 # can be prefixed with V/A, to filter audio/video1105 "/home/teto/videos"1106 "/home/teto/Music"1107@@ -26,5 +25,3 @@1108 # db_dir =1109 };1110 }1111-1112-1113diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1114index 0c082b6..58d9c85 1006441115--- a/hosts/tatooine/services/pulseaudio.nix1116+++ b/hosts/tatooine/services/pulseaudio.nix1117@@ -1,9 +1,8 @@1118 { pkgs, ... }:1119- # cant be enabled with pipewire1120- {1121- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1122- enable = false;1123- # for ad2p profle ?1124- package = pkgs.pulseaudioFull;1125- }1126-1127+# cant be enabled with pipewire1128+{1129+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1130+ enable = false;1131+ # for ad2p profle ?1132+ package = pkgs.pulseaudioFull;1133+}1134diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1135index e158259..4b6709c 1006441136--- a/hosts/tatooine/tetos.nix1137+++ b/hosts/tatooine/tetos.nix1138@@ -9,7 +9,8 @@1139 {1140 allowUpnp = true;1141 1142-} // lib.optionalAttrs withSecrets {1143+}1144+// lib.optionalAttrs withSecrets {1145 wireguard = {1146 id = 2;1147 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1148@@ -19,4 +20,4 @@1149 flakeSelf.nixosConfigurations.neotokyo1150 ];1151 };1152-} 1153+}1154diff --git a/justfile b/justfile1155index b0840de..a898c42 1006441156--- a/justfile1157+++ b/justfile1158@@ -65,12 +65,12 @@ bootstrap-vps target:1159 --debug1160 1161 bump-meli:1162- nix-update -F --version=branch=master meli-teto1163+ nix-update -F --version=branch=master meli-teto1164 1165 # urn:schemas-upnp-org:device:MediaRenderer:11166 discover-upnp-renderers:1167- gssdp-discover --timeout=5 \1168- --target=urn:schemas-upnp-org:device:MediaRenderer:11169+ gssdp-discover --timeout=5 \1170+ --target=urn:schemas-upnp-org:device:MediaRenderer:11171 1172 # just to save the command1173 1174@@ -326,7 +326,6 @@ inspect-current-generation:1175 flash-ulanzi-tc001:1176 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1177 1178-1179 # check dlna servers on the network1180 scan-upnp:1181 nmap --script=broadcast-upnp-info 192.168.0.0/161182diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1183index c73a06e..5448ba8 1006441184--- a/nixos/modules/minidlna.nix1185+++ b/nixos/modules/minidlna.nix1186@@ -1,7 +1,8 @@1187 { config, lib, ... }:1188 let1189 cfg = config.services.minidlna;1190- mediaDirs = map (dir:1191+ mediaDirs = map (1192+ dir:1193 let1194 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1195 in1196diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1197index 7f35757..00d18bc 1006441198--- a/nixos/modules/upnp.nix1199+++ b/nixos/modules/upnp.nix1200@@ -1,7 +1,13 @@1201-{ config, lib, pkgs, ... }:1202+{1203+ config,1204+ lib,1205+ pkgs,1206+ ...1207+}:1208 let1209- cfg = config.programs.upnp;1210-in {1211+ cfg = config.programs.upnp;1212+in1213+{1214 options = {1215 programs.upnp = {1216 enable = lib.mkEnableOption "upnp";1217@@ -17,7 +23,6 @@ in {1218 config = lib.mkIf cfg.enable {1219 };1220 }1221-{1222+ {1223 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1224-}1225-1226+ }1227diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1228index 3820510..e4bca1c 1006441229--- a/nixos/profiles/adguardhome.nix1230+++ b/nixos/profiles/adguardhome.nix1231@@ -9,7 +9,6 @@1232 # mutableSettings = true;1233 # openFirewall = false;1234 1235-1236 # mutableSettings = true;1237 # extraArgs = [];1238 1239diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1240index 9ceeefc..3835a79 1006441241--- a/nixos/profiles/avahi.nix1242+++ b/nixos/profiles/avahi.nix1243@@ -1,9 +1,6 @@1244 /*1245-1246-guide:1247-avahi-browse-domains 1248-1249-1250+ guide:1251+ avahi-browse-domains1252 */1253 {1254 config,1255@@ -23,7 +20,7 @@ avahi-browse-domains1256 1257 server = {1258 1259- # List of non-local DNS domains to be browsed.1260+ # List of non-local DNS domains to be browsed.1261 browse-domains = [1262 # "0pointer.de"1263 # "zeroconf.org"1264diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1265index 3f9282d..9039e39 1006441266--- a/nixos/profiles/desktop/programs/flyline.nix1267+++ b/nixos/profiles/desktop/programs/flyline.nix1268@@ -1,5 +1,5 @@1269 {1270 enable = true;1271- # 1272+ #1273 # package = ;1274 }