nixbot

builds

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

1treefmt v2.6.0traversed 1619 files2emitted 869 files for processing3formatted 869 files (34 changed) in 1.14s4 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/tatooine/default.nix29 M hosts/tatooine/services/adguardhome.nix30 M hosts/tatooine/services/avahi.nix31 M hosts/tatooine/services/minidlna.nix32 M hosts/tatooine/services/pulseaudio.nix33 M hosts/tatooine/tetos.nix34 M justfile35 M nixos/profiles/adguardhome.nix36 M nixos/profiles/avahi.nix37 M nixos/profiles/desktop/programs/flyline.nix38diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix39index e6b3625..b0fe160 10064440--- a/by-name/ko/kodi-tetos/package.nix41+++ b/by-name/ko/kodi-tetos/package.nix42@@ -1,11 +1,13 @@43 { kodi, makeWrapper }:44 45 let46- kodiWithPackages = kodi.withPackages (p: with p; [47- jellyfin48- # pvr-iptvsimple49- vfs-sftp50- ]);51+ kodiWithPackages = kodi.withPackages (52+ p: with p; [53+ jellyfin54+ # pvr-iptvsimple55+ vfs-sftp56+ ]57+ );58 in59 kodiWithPackages.overrideAttrs (oldAttrs: {60 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];61diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix62index 9442d75..a9d8692 10064463--- a/by-name/ze/zeal-teto/package.nix64+++ b/by-name/ze/zeal-teto/package.nix65@@ -1,10 +1,9 @@66 { zeal }:67 zeal.overrideAttrs (oa: {68 69- # export QMLSCENE_DEVICE=software70- postInstall = ''71- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software72- '';73-74- })75+ # export QMLSCENE_DEVICE=software76+ postInstall = ''77+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software78+ '';79 80+})81diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh82index c2b1a84..6b647be 10064483--- a/config/bash/flyline.sh84+++ b/config/bash/flyline.sh85@@ -10,12 +10,11 @@ flyline history --backend flyline86 # it flickers87 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 288 89-# Codex: change 90+# Codex: change91 flyline set-agent-mode \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+ --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. " \97+ --trigger-prefix ': ' \98+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'99 100 # Antigravity:101 # flyline set-agent-mode \102@@ -26,7 +25,6 @@ flyline set-agent-mode \103 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"104 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR105 106-107 # precmd_functions+=(set_ps1)108 # Now you can use this animation in your prompt. For example:109 PS1='\u@\h:\w MOUSE_MODE \n$ '110@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''111 112 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽113 114-115 # Experiment with higher frame rates for smooth transitions:116 # flyline create-prompt-widget animation --name "john" --fps 24 \117 # '\e[38;2;255;0;0m\u' \118@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''119 # '\e[38;2;255;0;63m\u' \120 # '\e[38;2;255;0;47m\u' \121 # '\e[38;2;255;0;31m\u' \122-# '\e[38;2;255;0;15m\u' 123+# '\e[38;2;255;0;15m\u'124diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua125index 85acdb0..9d9296e 100644126--- a/config/nvim/after/ftplugin/Avante.lua127+++ b/config/nvim/after/ftplugin/Avante.lua128@@ -14,7 +14,6 @@ vim.opt.showbreak = ''129 -- - update_content130 -- - on_state_change131 132-133 -- local sidebar = require('avante').get()134 135 -- vim.api.nvim_create_autocmd('WinEnter', {136@@ -29,8 +28,8 @@ vim.opt.showbreak = ''137 -- vim.wo.cursorline = false138 vim.wo.foldcolumn = '3' -- auto139 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.140--- could work well, react onto 141-vim.wo.foldmethod = "expr"142+-- could work well, react onto143+vim.wo.foldmethod = 'expr'144 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'145 146 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer147diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua148index b321120..bc9e2c6 100644149--- a/config/nvim/after/ftplugin/RikaiPopup.lua150+++ b/config/nvim/after/ftplugin/RikaiPopup.lua151@@ -3,10 +3,9 @@152 vim.keymap.set('n', '<localleader>s', function()153 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha154 155- vim.fn.jobstart({ 156- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })157-158+ vim.fn.jobstart({159+ 'mpv',160+ '--no-video',161+ vim.fn.expand('~/home/data/audio/notif1.wav'),162+ }, { detach = true })163 end, { buffer = true, desc = 'Play sound' })164-165-166-167diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua168index a183e4b..610d86d 100644169--- a/config/nvim/lua/init-manual.lua170+++ b/config/nvim/lua/init-manual.lua171@@ -948,8 +948,8 @@ end, { desc = 'Go to file, create if missing' })172 -- Outside of the fork it kills the plugin so careful173 -- normally overriden by setup call174 vim.g.avante = {175- -- -- print error messages, set to false to avoid issues with inspect_ai176- debug = false, 177+ -- -- print error messages, set to false to avoid issues with inspect_ai178+ debug = false,179 -- log_level =180 log_level = vim.log.levels.DEBUG,181 182@@ -1352,8 +1352,8 @@ vim.api.nvim_create_autocmd({ 'User' }, {183 vim.notify('avante: LLM answered')184 -- Leave the event callback before closing all windows, including modified buffers.185 -- vim.schedule(function()186- -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua187- --188+ -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua189+ --190 -- vim.cmd('qall!')191 -- end)192 end,193@@ -1370,22 +1370,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {194 --195 -- ╰─196 197-198-vim.api.nvim_create_autocmd(199- 'PackChanged',200- {201+vim.api.nvim_create_autocmd('PackChanged', {202 callback = function(ev)203- local name, kind = ev.data.spec.name, ev.data.kind204- print("package name ", name)205- vim.print("spec ", ev.data.spec)206- -- vim.print("version ", ev.data.spec.version)207-208- -- print("package kind ", kind)209- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then210- -- -- Call `:AvanteBuild` to download prebuilt libraries211- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()212- -- end213- end214- }215-)216-217+ local name, kind = ev.data.spec.name, ev.data.kind218+ print('package name ', name)219+ vim.print('spec ', ev.data.spec)220+ -- vim.print("version ", ev.data.spec.version)221+222+ -- print("package kind ", kind)223+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then224+ -- -- Call `:AvanteBuild` to download prebuilt libraries225+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()226+ -- end227+ end,228+})229diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua230index ffcb08a..8b60a67 100644231--- a/config/nvim/lua/plugins/kitty-scrollback.lua232+++ b/config/nvim/lua/plugins/kitty-scrollback.lua233@@ -2,43 +2,43 @@234 -- if you want to create autocommands235 236 --237- -- myconfig = {238- -- kitty_get_text = {239- -- ansi = false,240- -- },241- -- },242- -- myfnconfig = function(kitty_data)243- -- return {244- -- kitty_get_text = {245- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',246- -- },247- -- }248- -- end,249+-- myconfig = {250+-- kitty_get_text = {251+-- ansi = false,252+-- },253+-- },254+-- myfnconfig = function(kitty_data)255+-- return {256+-- kitty_get_text = {257+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',258+-- },259+-- }260+-- end,261 require('kitty-scrollback').setup(262 -- global configuration263 {264- kitty_get_text = {265- -- boolean If true, the text will include the ANSI formatting escape codes for colors,266- ansi = true,267- extent = 'all',268- },269- -- scrollback_columns = 300,270- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external271- scrollback_tempfile = false,272- keymaps_enabled = false,273- close_after_yank = true,274- status_window = {275+ kitty_get_text = {276+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,277+ ansi = true,278+ extent = 'all',279+ },280+ -- scrollback_columns = 300,281+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external282+ scrollback_tempfile = false,283+ keymaps_enabled = false,284+ close_after_yank = true,285+ status_window = {286 287- style_simple = true, -- user may not have Nerd Fonts installed288- show_timer = true,289+ style_simple = true, -- user may not have Nerd Fonts installed290+ show_timer = true,291 292- autoclose = true,293- },294- paste_window = {295- -- yank_register = '',296- -- boolean? If true, the yank_register copies content to the paste window. If false, d297- -- -- isable yank to paste window298- -- yank_register_enabled = false,299- }300+ autoclose = true,301+ },302+ paste_window = {303+ -- yank_register = '',304+ -- boolean? If true, the yank_register copies content to the paste window. If false, d305+ -- -- isable yank to paste window306+ -- yank_register_enabled = false,307+ },308 }309 )310diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix311index e95570a..ae177f7 100644312--- a/hm/modules/audiocast.nix313+++ b/hm/modules/audiocast.nix314@@ -1,7 +1,13 @@315-{ config, lib, pkgs, ... }:316+{317+ config,318+ lib,319+ pkgs,320+ ...321+}:322 let323- cfg = config.services.audiocast;324-in {325+ cfg = config.services.audiocast;326+in327+{328 options = {329 services.audiocast = {330 enable = lib.mkEnableOption "audiocast-stream";331@@ -16,44 +22,43 @@ in {332 };333 config = lib.mkIf cfg.enable {334 335-336- # Renderer friendlyName to discover over SSDP337- # Hard-coded AVTransport control URL (skips SSDP discovery)338- # else we give url339- # ❯ yamaha discover340- # name host model udn341- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e342- # port 8082 Local HTTP port for the stream343- xdg.configFile."audiocast/config" = {344- enable = false;345- text = ''346- [audiocast]347- name = Espace Musical348- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)349- mode = app350- sink = audiocast351- sink_description = AudioCast (DLNA)352- '';353-};354-355- systemd.user.services.audiocast-stream = {356- Unit = {357- Description = "Stream PipeWire audio to a DLNA renderer";358- After = [359- "pipewire.service"360- "pipewire-pulse.service"361- ];362- Wants = [ "pipewire-pulse.service" ];363+ # Renderer friendlyName to discover over SSDP364+ # Hard-coded AVTransport control URL (skips SSDP discovery)365+ # else we give url366+ # ❯ yamaha discover367+ # name host model udn368+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e369+ # port 8082 Local HTTP port for the stream370+ xdg.configFile."audiocast/config" = {371+ enable = false;372+ text = ''373+ [audiocast]374+ name = Espace Musical375+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)376+ mode = app377+ sink = audiocast378+ sink_description = AudioCast (DLNA)379+ '';380 };381- Service = {382- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";383- Restart = "on-failure";384- # The renderer may be asleep or temporarily off the network. The385- # program exits when discovery fails, so retry without a tight loop.386- RestartSec = 30;387+388+ systemd.user.services.audiocast-stream = {389+ Unit = {390+ Description = "Stream PipeWire audio to a DLNA renderer";391+ After = [392+ "pipewire.service"393+ "pipewire-pulse.service"394+ ];395+ Wants = [ "pipewire-pulse.service" ];396+ };397+ Service = {398+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";399+ Restart = "on-failure";400+ # The renderer may be asleep or temporarily off the network. The401+ # program exits when discovery fails, so retry without a tight loop.402+ RestartSec = 30;403+ };404+ Install.WantedBy = [ "default.target" ];405 };406- Install.WantedBy = [ "default.target" ];407- };408 };409 410 }411diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix412index b6d495f..e7da295 100644413--- a/hm/modules/kitty.nix414+++ b/hm/modules/kitty.nix415@@ -54,7 +54,7 @@ in416 map kitty_mod+h kitty_scrollback_nvim ./tmp417 # Browse output of the last shell command in nvim418 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output419- '';420+ '';421 422 #423 # # Browse output of the last shell command in nvim424diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix425index c64c1af..0de9f69 100644426--- a/hm/modules/package-sets.nix427+++ b/hm/modules/package-sets.nix428@@ -62,7 +62,6 @@ in429 430 };431 432-433 # this gets merged by default434 config = lib.mkMerge [435 {436@@ -115,7 +114,6 @@ in437 pkgs.blazingjj438 flakeSelf.inputs.jj-gh.packages.${system}.default439 440-441 # pkgs.gg-jj442 # pkgs.lazyjj443 # pkgs.jj-fzf444@@ -419,7 +417,6 @@ in445 lurk # a rust strace446 lsof # to see open files447 448-449 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship450 libossp_uuid # for the 'libuuid' executable451 452@@ -490,7 +487,6 @@ in453 454 # rainfrog # database exploration455 456-457 process-compose # docker-compose - like458 # rpl # to replace strings across files459 repgrep # replace matches found by rg460@@ -502,7 +498,7 @@ in461 tmux # when connecting via ssh462 trurl # used to parse url in the firefox-router executable463 universal-ctags # there are many different ctags, be careful !464- uv # to install python packages465+ uv # to install python packages466 unar # used to view archives by yazi (now using ouch ?)467 vifm468 viu # a console image viewer469@@ -698,7 +694,7 @@ in470 pkgs.tsukumi471 ];472 })473- (mkIf cfg.jellyfin {474+ (mkIf cfg.jellyfin {475 476 home.packages = [477 478@@ -709,13 +705,12 @@ in479 # pkgs.feishin # GUI480 # pkgs.jellycli # could not login :/481 482-483 # VIDEO compatible484 # - Jellyfin MPV Shim485 pkgs.tsukimi # gtk+rust music player GUI486 pkgs.jellyfin-desktop487 pkgs.jellyfin-mpv-shim488- # jellyhaj # not upstreamed yet 489+ # jellyhaj # not upstreamed yet490 # fladder # nice GUI491 # jftui too minimalistic492 # pkgs.jellyflix # nice493diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix494index 17f0251..1da4cc5 100644495--- a/hm/profiles/teto-desktop/default.nix496+++ b/hm/profiles/teto-desktop/default.nix497@@ -112,7 +112,7 @@ in498 499 home.packages =500 with pkgs;501- let 502+ let503 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;504 505 # lux-cli-teto = lux-cli;506@@ -123,7 +123,7 @@ in507 in508 509 [510- kodi-teto 511+ kodi-teto512 codex # openai agent513 codex-acp # originated from zed-industries, used in avante514 515@@ -187,8 +187,7 @@ in516 # kaggle # kaggle interface517 # python3Packages.kaggle518 519-520- sonic-pi # for live music coding521+ sonic-pi # for live music coding522 stow523 systemctl-tui524 timr-tui # rust clock525diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix526index e282359..ea63df4 100644527--- a/hm/profiles/teto-desktop/programs/codex.nix528+++ b/hm/profiles/teto-desktop/programs/codex.nix529@@ -1,6 +1,5 @@530 {531 532-533 enable = true;534 enableMcpIntegration = true;535 # CODEX_HOME/AGENTS.md.536diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix537index 9b41b6c..aabc790 100644538--- a/hm/profiles/teto-desktop/programs/firefox.nix539+++ b/hm/profiles/teto-desktop/programs/firefox.nix540@@ -95,19 +95,18 @@ in541 # extraConfig =542 id = 0;543 544- userChrome =545- ''546- /* Hide tab bar in FF Quantum */547- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {548- #TabsToolbar {549- visibility: collapse !important;550- margin-bottom: 21px !important;551- }552-553- }554- '';555-556- # userContent = 557+ userChrome = ''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 # ''570 # /* Hide scrollbar in FF Quantum */571 # *{scrollbar-width:none !important}572diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix573index aacec43..9037ef9 100644574--- a/hm/profiles/teto-desktop/programs/jujutsu.nix575+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix576@@ -34,9 +34,12 @@577 name = "teto";578 };579 ui = {580- # jj splits puts the cursor in a f**** position, we need $line to restore 581+ # jj splits puts the cursor in a f**** position, we need $line to restore582 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes583- editor = ["nvim" "+$line"];584+ editor = [585+ "nvim"586+ "+$line"587+ ];588 default-command = "status";589 merge-editor = "nvim";590 # Enable pagination for commands that support it (default)591diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix592index be52e45..f9d09d8 100644593--- a/hm/profiles/teto-desktop/programs/rofi.nix594+++ b/hm/profiles/teto-desktop/programs/rofi.nix595@@ -37,8 +37,8 @@596 597 location = "center";598 modes = [599- # modes: [ combi ];600- # combi-modes: [ window, drun, run ];601+ # modes: [ combi ];602+ # combi-modes: [ window, drun, run ];603 604 ];605 606diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix607index 0dad1af..11dd2ad 100644608--- a/hm/profiles/teto-desktop/xdg/default.nix609+++ b/hm/profiles/teto-desktop/xdg/default.nix610@@ -101,12 +101,12 @@611 "bash/bashrc".text = ''612 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"613 source "$script_dir/manual.sh"614- ''615- # check if flyline defined too ?616- + lib.optionalString osConfig.programs.flyline.enable '' 617- source "$script_dir/flyline.sh"618+ ''619+ # check if flyline defined too ?620+ + lib.optionalString osConfig.programs.flyline.enable ''621+ source "$script_dir/flyline.sh"622 623- '';624+ '';625 626 "nvim/lua/generated-by-nix.lua" =627 let628diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix629index 77dae93..78c87ca 100644630--- a/hosts/jedha/default.nix631+++ b/hosts/jedha/default.nix632@@ -91,12 +91,20 @@ in633 # Upmpdcli's local-library server needs both discovery and HTTP access.634 networking.firewall = lib.mkIf config.services.upmpdcli.enable {635 allowedUDPPorts = [ 1900 ];636- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];637+ allowedTCPPorts = with config.services.upmpdcli.configuration; [638+ upnpport639+ uprclport640+ ];641 };642 643 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {644 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.645- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];646+ path = [647+ pkgs.recoll648+ pkgs.python3649+ pkgs.openssl650+ pkgs.diffutils651+ ];652 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];653 };654 655diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix656index 45588a8..3b7bfef 100644657--- a/hosts/jedha/home-manager/users/teto/default.nix658+++ b/hosts/jedha/home-manager/users/teto/default.nix659@@ -104,7 +104,6 @@ in660 btop-cuda # for jedha661 brush # a rust implementation of bash662 663-664 # creates conflicts since it brings python and several executables665 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService666 667@@ -147,9 +146,9 @@ in668 # bridge-utils# pour brctl669 # vscode-css-languageserver # to showcase 'cssls' lsp server670 671- rura # to build shell pipelines672- termusic # terminal music673- 674+ rura # to build shell pipelines675+ termusic # terminal music676+677 ];678 679 package-sets = {680diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix681index 3378a39..9ce7079 100644682--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix683+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix684@@ -1,36 +1,34 @@685 { pkgs, lib, ... }:686 {687 688-689 enable = true;690 691 # github:utensils/mcp-nixos692- servers = 693- {694-695- nixos = {696- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";697- };698-699- # https://github.com/homeassistant-ai/ha-mcp700- ha-mcp = {701-702- command = "${lib.getExe pkgs.ha-mcp}";703-704- };705-706- # everything = {707- # command = "npx";708- # args = [ "-y" "@modelcontextprotocol/server-everything" ];709- # };710- # context7 = {711- # url = "https://mcp.context7.com/mcp";712- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";713- # };714- # codeberg = {715- # command = "/path/to/forgejo-mcp";716- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];717- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";718- # };719- };720+ servers = {721+722+ nixos = {723+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";724+ };725+726+ # https://github.com/homeassistant-ai/ha-mcp727+ ha-mcp = {728+729+ command = "${lib.getExe pkgs.ha-mcp}";730+731+ };732+733+ # everything = {734+ # command = "npx";735+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];736+ # };737+ # context7 = {738+ # url = "https://mcp.context7.com/mcp";739+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";740+ # };741+ # codeberg = {742+ # command = "/path/to/forgejo-mcp";743+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];744+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";745+ # };746+ };747 }748diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix749index 083732e..09017c2 100644750--- a/hosts/jedha/services/avahi.nix751+++ b/hosts/jedha/services/avahi.nix752@@ -13,7 +13,6 @@753 754 debug = true;755 756-757 # allowInterfaces = [758 # "wlp10s0"759 # ];760@@ -30,13 +29,12 @@761 };762 763 publish = {764- disable-publishing = false;765- disable-user-service-publishing = false;766- publish-addresses = true;767- };768-769+ disable-publishing = false;770+ disable-user-service-publishing = false;771+ publish-addresses = true;772 };773 774+ };775 776 nssmdns4 = true;777 # publish = {778diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix779index 0ea64f9..9b1b770 100644780--- a/hosts/jedha/services/minidlna.nix781+++ b/hosts/jedha/services/minidlna.nix782@@ -7,7 +7,6 @@783 # announceInterval = 60;784 openFirewall = true;785 786-787 # there are udp errors when it binds to wireguard network ?788 789 settings = {790@@ -16,9 +15,9 @@791 friendly_name = "jedha";792 # inotify = "yes";793 log_level = "warn";794- media_dir = [ 795+ media_dir = [796 # can be prefixed with V/A, to filter audio/video797- "/mnt/ext/music" 798+ "/mnt/ext/music"799 ];800 inotify = "yes";801 # db_dir =802diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix803index 28cc3b4..1d1609c 100644804--- a/hosts/jedha/services/opentelemetry-collector.nix805+++ b/hosts/jedha/services/opentelemetry-collector.nix806@@ -1,23 +1,22 @@807 {808 809-810 enable = true;811 812 settings =813-let814- port = 4318;815-in816+ let817+ port = 4318;818+ in819 {820- exporters.debug.verbosity = "detailed";821- receivers.otlp.protocols = {822- http.endpoint = "0.0.0.0:${toString port}";823- };824- service = {825- pipelines.logs = {826- receivers = [ "otlp" ];827- exporters = [ "debug" ];828- };829- };830+ exporters.debug.verbosity = "detailed";831+ receivers.otlp.protocols = {832+ http.endpoint = "0.0.0.0:${toString port}";833+ };834+ service = {835+ pipelines.logs = {836+ receivers = [ "otlp" ];837+ exporters = [ "debug" ];838+ };839+ };840 841- };842+ };843 }844diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix845index ef04f30..390f091 100644846--- a/hosts/jedha/services/upmpdcli.nix847+++ b/hosts/jedha/services/upmpdcli.nix848@@ -1,12 +1,12 @@849 /*850-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 851- should change playback if rmpd and upmpdcli are controlling the same MPD instance852- 853- • 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.854-• 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.855+ 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, it856+ should change playback if rmpd and upmpdcli are controlling the same MPD instance857 858-mpd now has a plugin that can play music from upnp server 859-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction860+ • 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.861+ • 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.862+863+ mpd now has a plugin that can play music from upnp server864+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction865 */866 867 { pkgs, lib, ... }:868@@ -44,7 +44,7 @@ in869 mpdport = 6600;870 # try to see if I can control it myself871 ownqueue = 0;872- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 873+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo874 # control the playlist. The client can disconnect after playlist was created875 openhome = 0;876 upnpav = 1;877diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix878index 59d7129..e0cab47 100644879--- a/hosts/jedha/systemd.nix880+++ b/hosts/jedha/systemd.nix881@@ -34,61 +34,60 @@ in882 })883 # disabled because ha-mcp broken884 (lib.mkIf false {885- ha-mcp = {886- description = "Home Assistant MCP server";887- wantedBy = [ "multi-user.target" ];888- wants = [ "network-online.target" ];889- after = [ "network-online.target" ];890- environment = {891- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";892- HOME = "/var/lib/ha-mcp";893- MCP_HOST = "127.0.0.1";894- MCP_PORT = "8086";895- };896- serviceConfig = {897- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";898- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.899- EnvironmentFile = "/var/lib/ha-mcp/environment";900- DynamicUser = true;901- StateDirectory = "ha-mcp";902- WorkingDirectory = "/var/lib/ha-mcp";903- Restart = "on-failure";904- RestartSec = 5;905- UMask = "0077";906- };907+ ha-mcp = {908+ description = "Home Assistant MCP server";909+ wantedBy = [ "multi-user.target" ];910+ wants = [ "network-online.target" ];911+ after = [ "network-online.target" ];912+ environment = {913+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";914+ HOME = "/var/lib/ha-mcp";915+ MCP_HOST = "127.0.0.1";916+ MCP_PORT = "8086";917 };918+ serviceConfig = {919+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";920+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.921+ EnvironmentFile = "/var/lib/ha-mcp/environment";922+ DynamicUser = true;923+ StateDirectory = "ha-mcp";924+ WorkingDirectory = "/var/lib/ha-mcp";925+ Restart = "on-failure";926+ RestartSec = 5;927+ UMask = "0077";928+ };929+ };930 931- # copied from https://github.com/NixOS/nixpkgs/pull/544252932- # lib.recursiveUpdate slib.systemd.serviceDefaults {933- speech-to-phrase = {934- # after = [ "home-assistant.service" ];935- script = lib.concatStringsSep " " [936- (lib.getExe pkgs.speech-to-phrase)937- "--models-dir"938- "\"$STATE_DIRECTORY/models\""939- "--train-dir"940- "\"$STATE_DIRECTORY/train\""941- # "--custom-sentences-dir" ""942- "--uri 'tcp://127.0.0.1:10400'"943- "--hass-websocket-uri"944- "ws://${hassHost}:${toString hassPort}/api/websocket"945- "--retrain-on-start"946- "--retrain-on-connect"947- "--retrain-seconds"948- "300"949- ];950- serviceConfig = {951- #952- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;953- Group = "speech-to-phrase";954- StateDirectory = "speech-to-phrase";955- User = "speech-to-phrase";956- # TODO: hardening957- };958+ # copied from https://github.com/NixOS/nixpkgs/pull/544252959+ # lib.recursiveUpdate slib.systemd.serviceDefaults {960+ speech-to-phrase = {961+ # after = [ "home-assistant.service" ];962+ script = lib.concatStringsSep " " [963+ (lib.getExe pkgs.speech-to-phrase)964+ "--models-dir"965+ "\"$STATE_DIRECTORY/models\""966+ "--train-dir"967+ "\"$STATE_DIRECTORY/train\""968+ # "--custom-sentences-dir" ""969+ "--uri 'tcp://127.0.0.1:10400'"970+ "--hass-websocket-uri"971+ "ws://${hassHost}:${toString hassPort}/api/websocket"972+ "--retrain-on-start"973+ "--retrain-on-connect"974+ "--retrain-seconds"975+ "300"976+ ];977+ serviceConfig = {978+ #979+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;980+ Group = "speech-to-phrase";981+ StateDirectory = "speech-to-phrase";982+ User = "speech-to-phrase";983+ # TODO: hardening984 };985+ };986 987- }988- )989+ })990 ];991 992 # just to test993diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix994index 8cbae35..3c41972 100644995--- a/hosts/tatooine/default.nix996+++ b/hosts/tatooine/default.nix997@@ -132,7 +132,6 @@ in998 enableRedistributableFirmware = true;999 sane.enable = true;1000 1001-1002 # High quality BT calls1003 # https://nixos.wiki/wiki/Bluetooth1004 bluetooth = {1005diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1006index adc82dd..1724c86 1006441007--- a/hosts/tatooine/services/adguardhome.nix1008+++ b/hosts/tatooine/services/adguardhome.nix1009@@ -10,7 +10,7 @@1010 settings = {1011 1012 # http (since v0.107.36): Web interface configuration.1013- # address: Web interface IP address with port to listen on 1014+ # address: Web interface IP address with port to listen on1015 http.address = "127.0.0.1:8084";1016 1017 };1018diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1019index dd02f3f..f14c221 1006441020--- a/hosts/tatooine/services/avahi.nix1021+++ b/hosts/tatooine/services/avahi.nix1022@@ -21,19 +21,19 @@1023 1024 settings = {1025 publish = {1026- publish-domain = true;1027- disable-publishing = false;1028- disable-user-service-publishing = false;1029- publish-addresses = true;1030- };1031+ publish-domain = true;1032+ disable-publishing = false;1033+ disable-user-service-publishing = false;1034+ publish-addresses = true;1035+ };1036 1037 server = {1038 use-ipv6 = false; # bug with multiple hostnames1039- # # 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.1040- # # secrets.jedha.hostname;1041- # # host-name = "jedha";1042- # # enable-dbus = true;1043- #1044+ # # 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.1045+ # # secrets.jedha.hostname;1046+ # # host-name = "jedha";1047+ # # enable-dbus = true;1048+ #1049 };1050 };1051 1052diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1053index 1025fbd..32ab52f 1006441054--- a/hosts/tatooine/services/minidlna.nix1055+++ b/hosts/tatooine/services/minidlna.nix1056@@ -8,7 +8,6 @@1057 # to receive sssdp answers1058 openFirewall = true;1059 1060-1061 # there are udp errors when it binds to wireguard network ?1062 1063 settings = {1064@@ -17,7 +16,7 @@1065 friendly_name = "tatooine";1066 # inotify = "yes";1067 log_level = "warn";1068- media_dir = [ 1069+ media_dir = [1070 # can be prefixed with V/A, to filter audio/video1071 "/home/teto/videos"1072 "/home/teto/Music"1073@@ -26,5 +25,3 @@1074 # db_dir =1075 };1076 }1077-1078-1079diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1080index 0c082b6..58d9c85 1006441081--- a/hosts/tatooine/services/pulseaudio.nix1082+++ b/hosts/tatooine/services/pulseaudio.nix1083@@ -1,9 +1,8 @@1084 { pkgs, ... }:1085- # cant be enabled with pipewire1086- {1087- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1088- enable = false;1089- # for ad2p profle ?1090- package = pkgs.pulseaudioFull;1091- }1092-1093+# cant be enabled with pipewire1094+{1095+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1096+ enable = false;1097+ # for ad2p profle ?1098+ package = pkgs.pulseaudioFull;1099+}1100diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1101index e158259..4b6709c 1006441102--- a/hosts/tatooine/tetos.nix1103+++ b/hosts/tatooine/tetos.nix1104@@ -9,7 +9,8 @@1105 {1106 allowUpnp = true;1107 1108-} // lib.optionalAttrs withSecrets {1109+}1110+// lib.optionalAttrs withSecrets {1111 wireguard = {1112 id = 2;1113 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1114@@ -19,4 +20,4 @@1115 flakeSelf.nixosConfigurations.neotokyo1116 ];1117 };1118-} 1119+}1120diff --git a/justfile b/justfile1121index 28dd5f9..8fd3082 1006441122--- a/justfile1123+++ b/justfile1124@@ -65,11 +65,11 @@ bootstrap-vps target:1125 --debug1126 1127 bump-meli:1128- nix-update -F --version=branch=master meli-teto1129+ nix-update -F --version=branch=master meli-teto1130 1131 discover-upnp-renderers:1132- gssdp-discover --timeout=5 \1133- --target=urn:schemas-upnp-org:device:MediaRenderer:11134+ gssdp-discover --timeout=5 \1135+ --target=urn:schemas-upnp-org:device:MediaRenderer:11136 1137 # just to save the command1138 1139@@ -325,7 +325,6 @@ inspect-current-generation:1140 flash-ulanzi-tc001:1141 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1142 1143-1144 # check dlna servers on the network1145 scan-upnp:1146 nmap --script=broadcast-upnp-info 192.168.0.0/161147diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1148index 3820510..e4bca1c 1006441149--- a/nixos/profiles/adguardhome.nix1150+++ b/nixos/profiles/adguardhome.nix1151@@ -9,7 +9,6 @@1152 # mutableSettings = true;1153 # openFirewall = false;1154 1155-1156 # mutableSettings = true;1157 # extraArgs = [];1158 1159diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1160index 9ceeefc..3835a79 1006441161--- a/nixos/profiles/avahi.nix1162+++ b/nixos/profiles/avahi.nix1163@@ -1,9 +1,6 @@1164 /*1165-1166-guide:1167-avahi-browse-domains 1168-1169-1170+ guide:1171+ avahi-browse-domains1172 */1173 {1174 config,1175@@ -23,7 +20,7 @@ avahi-browse-domains1176 1177 server = {1178 1179- # List of non-local DNS domains to be browsed.1180+ # List of non-local DNS domains to be browsed.1181 browse-domains = [1182 # "0pointer.de"1183 # "zeroconf.org"1184diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1185index 3f9282d..9039e39 1006441186--- a/nixos/profiles/desktop/programs/flyline.nix1187+++ b/nixos/profiles/desktop/programs/flyline.nix1188@@ -1,5 +1,5 @@1189 {1190 enable = true;1191- # 1192+ #1193 # package = ;1194 }