treefmt-check
checks.x86_64-linux.formatting
· build #63
· raw
1treefmt v2.6.0traversed 1633 files2emitted 879 files for processing3formatted 879 files (45 changed) in 1.172s4 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/microsoft.nix14 M hm/modules/package-sets.nix15 M hm/profiles/teto-desktop/default.nix16 M hm/profiles/teto-desktop/programs/codex.nix17 M hm/profiles/teto-desktop/programs/firefox.nix18 M hm/profiles/teto-desktop/programs/jujutsu.nix19 M hm/profiles/teto-desktop/programs/neovim.nix20 M hm/profiles/teto-desktop/programs/rofi.nix21 M hm/profiles/teto-desktop/xdg/default.nix22 M hosts/jedha/default.nix23 M hosts/jedha/home-manager/users/teto/default.nix24 M hosts/jedha/home-manager/users/teto/programs/mcp.nix25 M hosts/jedha/services/avahi.nix26 M hosts/jedha/services/minidlna.nix27 M hosts/jedha/services/opentelemetry-collector.nix28 M hosts/jedha/services/upmpdcli.nix29 M hosts/jedha/systemd.nix30 M hosts/router/services/home-assistant.nix31 M hosts/tatooine/default.nix32 M hosts/tatooine/home-manager/users/teto/programs/mpv.nix33 M hosts/tatooine/services/adguardhome.nix34 M hosts/tatooine/services/avahi.nix35 M hosts/tatooine/services/mediatomb.nix36 M hosts/tatooine/services/minidlna.nix37 M hosts/tatooine/services/pulseaudio.nix38 M hosts/tatooine/tetos.nix39 M justfile40 M nixos/modules/minidlna.nix41 M nixos/modules/upnp.nix42 M nixos/profiles/adguardhome.nix43 M nixos/profiles/avahi.nix44 M nixos/profiles/desktop/default.nix45 M nixos/profiles/desktop/programs/flyline.nix46 M nixos/profiles/desktop/users/default.nix47 M nixos/profiles/home-assistant.nix48 M nixos/profiles/pixiecore.nix49diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix50index a4a9a74..4adedee 10064451--- a/by-name/ko/kodi-tetos/package.nix52+++ b/by-name/ko/kodi-tetos/package.nix53@@ -1,11 +1,13 @@54 { kodi, makeWrapper }:55 56 let57- kodiWithPackages = kodi.withPackages (p: with p; [58- jellyfin59- # pvr-iptvsimple60- vfs-sftp61- ]);62+ kodiWithPackages = kodi.withPackages (63+ p: with p; [64+ jellyfin65+ # pvr-iptvsimple66+ vfs-sftp67+ ]68+ );69 in70 kodiWithPackages.overrideAttrs (oldAttrs: {71 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];72diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix73index 9442d75..a9d8692 10064474--- a/by-name/ze/zeal-teto/package.nix75+++ b/by-name/ze/zeal-teto/package.nix76@@ -1,10 +1,9 @@77 { zeal }:78 zeal.overrideAttrs (oa: {79 80- # export QMLSCENE_DEVICE=software81- postInstall = ''82- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software83- '';84-85- })86+ # export QMLSCENE_DEVICE=software87+ postInstall = ''88+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software89+ '';90 91+})92diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh93index c2b1a84..6b647be 10064494--- a/config/bash/flyline.sh95+++ b/config/bash/flyline.sh96@@ -10,12 +10,11 @@ flyline history --backend flyline97 # it flickers98 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 299 100-# Codex: change 101+# Codex: change102 flyline set-agent-mode \103- --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. " \104- --trigger-prefix ': ' \105- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'106-107+ --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. " \108+ --trigger-prefix ': ' \109+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'110 111 # Antigravity:112 # flyline set-agent-mode \113@@ -26,7 +25,6 @@ flyline set-agent-mode \114 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"115 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR116 117-118 # precmd_functions+=(set_ps1)119 # Now you can use this animation in your prompt. For example:120 PS1='\u@\h:\w MOUSE_MODE \n$ '121@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''122 123 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽124 125-126 # Experiment with higher frame rates for smooth transitions:127 # flyline create-prompt-widget animation --name "john" --fps 24 \128 # '\e[38;2;255;0;0m\u' \129@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''130 # '\e[38;2;255;0;63m\u' \131 # '\e[38;2;255;0;47m\u' \132 # '\e[38;2;255;0;31m\u' \133-# '\e[38;2;255;0;15m\u' 134+# '\e[38;2;255;0;15m\u'135diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua136index 85acdb0..9d9296e 100644137--- a/config/nvim/after/ftplugin/Avante.lua138+++ b/config/nvim/after/ftplugin/Avante.lua139@@ -14,7 +14,6 @@ vim.opt.showbreak = ''140 -- - update_content141 -- - on_state_change142 143-144 -- local sidebar = require('avante').get()145 146 -- vim.api.nvim_create_autocmd('WinEnter', {147@@ -29,8 +28,8 @@ vim.opt.showbreak = ''148 -- vim.wo.cursorline = false149 vim.wo.foldcolumn = '3' -- auto150 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.151--- could work well, react onto 152-vim.wo.foldmethod = "expr"153+-- could work well, react onto154+vim.wo.foldmethod = 'expr'155 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'156 157 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer158diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua159index b321120..bc9e2c6 100644160--- a/config/nvim/after/ftplugin/RikaiPopup.lua161+++ b/config/nvim/after/ftplugin/RikaiPopup.lua162@@ -3,10 +3,9 @@163 vim.keymap.set('n', '<localleader>s', function()164 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha165 166- vim.fn.jobstart({ 167- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })168-169+ vim.fn.jobstart({170+ 'mpv',171+ '--no-video',172+ vim.fn.expand('~/home/data/audio/notif1.wav'),173+ }, { detach = true })174 end, { buffer = true, desc = 'Play sound' })175-176-177-178diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua179index 1aed1c2..aecf410 100644180--- a/config/nvim/lua/init-manual.lua181+++ b/config/nvim/lua/init-manual.lua182@@ -949,8 +949,8 @@ end, { desc = 'Go to file, create if missing' })183 -- Outside of the fork it kills the plugin so careful184 -- normally overriden by setup call185 vim.g.avante = {186- -- -- print error messages, set to false to avoid issues with inspect_ai187- debug = false, 188+ -- -- print error messages, set to false to avoid issues with inspect_ai189+ debug = false,190 -- log_level =191 log_level = vim.log.levels.DEBUG,192 193@@ -1090,7 +1090,7 @@ vim.g.avante = {194 windows = {195 position = 'right',196 fillchars = 'eob: ',197- -- wrap = false,198+ -- wrap = false,199 -- TODO remove200 sidebar_header = {201 enabled = true, -- true, false to enable/disable the header202@@ -1355,8 +1355,8 @@ vim.api.nvim_create_autocmd({ 'User' }, {203 vim.notify('avante: LLM answered')204 -- Leave the event callback before closing all windows, including modified buffers.205 -- vim.schedule(function()206- -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua207- --208+ -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua209+ --210 -- vim.cmd('qall!')211 -- end)212 end,213@@ -1373,22 +1373,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {214 --215 -- ╰─216 217-218-vim.api.nvim_create_autocmd(219- 'PackChanged',220- {221+vim.api.nvim_create_autocmd('PackChanged', {222 callback = function(ev)223- local name, kind = ev.data.spec.name, ev.data.kind224- print("package name ", name)225- vim.print("spec ", ev.data.spec)226- -- vim.print("version ", ev.data.spec.version)227-228- -- print("package kind ", kind)229- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then230- -- -- Call `:AvanteBuild` to download prebuilt libraries231- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()232- -- end233- end234- }235-)236-237+ local name, kind = ev.data.spec.name, ev.data.kind238+ print('package name ', name)239+ vim.print('spec ', ev.data.spec)240+ -- vim.print("version ", ev.data.spec.version)241+242+ -- print("package kind ", kind)243+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then244+ -- -- Call `:AvanteBuild` to download prebuilt libraries245+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()246+ -- end247+ end,248+})249diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua250index ffcb08a..8b60a67 100644251--- a/config/nvim/lua/plugins/kitty-scrollback.lua252+++ b/config/nvim/lua/plugins/kitty-scrollback.lua253@@ -2,43 +2,43 @@254 -- if you want to create autocommands255 256 --257- -- myconfig = {258- -- kitty_get_text = {259- -- ansi = false,260- -- },261- -- },262- -- myfnconfig = function(kitty_data)263- -- return {264- -- kitty_get_text = {265- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',266- -- },267- -- }268- -- end,269+-- myconfig = {270+-- kitty_get_text = {271+-- ansi = false,272+-- },273+-- },274+-- myfnconfig = function(kitty_data)275+-- return {276+-- kitty_get_text = {277+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',278+-- },279+-- }280+-- end,281 require('kitty-scrollback').setup(282 -- global configuration283 {284- kitty_get_text = {285- -- boolean If true, the text will include the ANSI formatting escape codes for colors,286- ansi = true,287- extent = 'all',288- },289- -- scrollback_columns = 300,290- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external291- scrollback_tempfile = false,292- keymaps_enabled = false,293- close_after_yank = true,294- status_window = {295+ kitty_get_text = {296+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,297+ ansi = true,298+ extent = 'all',299+ },300+ -- scrollback_columns = 300,301+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external302+ scrollback_tempfile = false,303+ keymaps_enabled = false,304+ close_after_yank = true,305+ status_window = {306 307- style_simple = true, -- user may not have Nerd Fonts installed308- show_timer = true,309+ style_simple = true, -- user may not have Nerd Fonts installed310+ show_timer = true,311 312- autoclose = true,313- },314- paste_window = {315- -- yank_register = '',316- -- boolean? If true, the yank_register copies content to the paste window. If false, d317- -- -- isable yank to paste window318- -- yank_register_enabled = false,319- }320+ autoclose = true,321+ },322+ paste_window = {323+ -- yank_register = '',324+ -- boolean? If true, the yank_register copies content to the paste window. If false, d325+ -- -- isable yank to paste window326+ -- yank_register_enabled = false,327+ },328 }329 )330diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix331index e95570a..ae177f7 100644332--- a/hm/modules/audiocast.nix333+++ b/hm/modules/audiocast.nix334@@ -1,7 +1,13 @@335-{ config, lib, pkgs, ... }:336+{337+ config,338+ lib,339+ pkgs,340+ ...341+}:342 let343- cfg = config.services.audiocast;344-in {345+ cfg = config.services.audiocast;346+in347+{348 options = {349 services.audiocast = {350 enable = lib.mkEnableOption "audiocast-stream";351@@ -16,44 +22,43 @@ in {352 };353 config = lib.mkIf cfg.enable {354 355-356- # Renderer friendlyName to discover over SSDP357- # Hard-coded AVTransport control URL (skips SSDP discovery)358- # else we give url359- # ❯ yamaha discover360- # name host model udn361- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e362- # port 8082 Local HTTP port for the stream363- xdg.configFile."audiocast/config" = {364- enable = false;365- text = ''366- [audiocast]367- name = Espace Musical368- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)369- mode = app370- sink = audiocast371- sink_description = AudioCast (DLNA)372- '';373-};374-375- systemd.user.services.audiocast-stream = {376- Unit = {377- Description = "Stream PipeWire audio to a DLNA renderer";378- After = [379- "pipewire.service"380- "pipewire-pulse.service"381- ];382- Wants = [ "pipewire-pulse.service" ];383+ # Renderer friendlyName to discover over SSDP384+ # Hard-coded AVTransport control URL (skips SSDP discovery)385+ # else we give url386+ # ❯ yamaha discover387+ # name host model udn388+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e389+ # port 8082 Local HTTP port for the stream390+ xdg.configFile."audiocast/config" = {391+ enable = false;392+ text = ''393+ [audiocast]394+ name = Espace Musical395+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)396+ mode = app397+ sink = audiocast398+ sink_description = AudioCast (DLNA)399+ '';400 };401- Service = {402- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";403- Restart = "on-failure";404- # The renderer may be asleep or temporarily off the network. The405- # program exits when discovery fails, so retry without a tight loop.406- RestartSec = 30;407+408+ systemd.user.services.audiocast-stream = {409+ Unit = {410+ Description = "Stream PipeWire audio to a DLNA renderer";411+ After = [412+ "pipewire.service"413+ "pipewire-pulse.service"414+ ];415+ Wants = [ "pipewire-pulse.service" ];416+ };417+ Service = {418+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";419+ Restart = "on-failure";420+ # The renderer may be asleep or temporarily off the network. The421+ # program exits when discovery fails, so retry without a tight loop.422+ RestartSec = 30;423+ };424+ Install.WantedBy = [ "default.target" ];425 };426- Install.WantedBy = [ "default.target" ];427- };428 };429 430 }431diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix432index b6d495f..e7da295 100644433--- a/hm/modules/kitty.nix434+++ b/hm/modules/kitty.nix435@@ -54,7 +54,7 @@ in436 map kitty_mod+h kitty_scrollback_nvim ./tmp437 # Browse output of the last shell command in nvim438 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output439- '';440+ '';441 442 #443 # # Browse output of the last shell command in nvim444diff --git a/hm/modules/microsoft.nix b/hm/modules/microsoft.nix445index 218784e..da475a8 100644446--- a/hm/modules/microsoft.nix447+++ b/hm/modules/microsoft.nix448@@ -1,8 +1,14 @@449 # enable this module to work in a microsoft environment450-{ config, lib, pkgs, ... }:451+{452+ config,453+ lib,454+ pkgs,455+ ...456+}:457 let458- cfg = config.microsoft;459-in {460+ cfg = config.microsoft;461+in462+{463 options = {464 microsoft = {465 enable = lib.mkEnableOption "microsoft";466diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix467index 8d60438..e76a354 100644468--- a/hm/modules/package-sets.nix469+++ b/hm/modules/package-sets.nix470@@ -62,7 +62,6 @@ in471 472 };473 474-475 # this gets merged by default476 config = lib.mkMerge [477 {478@@ -115,7 +114,6 @@ in479 pkgs.blazingjj480 flakeSelf.inputs.jj-gh.packages.${system}.default481 482-483 # pkgs.gg-jj484 # pkgs.lazyjj485 # pkgs.jj-fzf486@@ -419,7 +417,6 @@ in487 lurk # a rust strace488 lsof # to see open files489 490-491 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship492 libossp_uuid # for the 'libuuid' executable493 494@@ -490,7 +487,6 @@ in495 496 # rainfrog # database exploration497 498-499 process-compose # docker-compose - like500 # rpl # to replace strings across files501 repgrep # replace matches found by rg502@@ -502,7 +498,7 @@ in503 tmux # when connecting via ssh504 trurl # used to parse url in the firefox-router executable505 universal-ctags # there are many different ctags, be careful !506- uv # to install python packages507+ uv # to install python packages508 unar # used to view archives by yazi (now using ouch ?)509 vifm510 viu # a console image viewer511@@ -697,7 +693,7 @@ in512 pkgs.tsukumi513 ];514 })515- (mkIf cfg.jellyfin {516+ (mkIf cfg.jellyfin {517 518 home.packages = [519 520@@ -708,13 +704,12 @@ in521 # pkgs.feishin # GUI522 # pkgs.jellycli # could not login :/523 524-525 # VIDEO compatible526 # - Jellyfin MPV Shim527 (ignoreBroken pkgs.tsukimi) # gtk+rust music player GUI528 pkgs.jellyfin-desktop529 pkgs.jellyfin-mpv-shim530- # jellyhaj # not upstreamed yet 531+ # jellyhaj # not upstreamed yet532 # fladder # nice GUI533 # jftui too minimalistic534 # pkgs.jellyflix # nice535diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix536index 5816c79..723f74e 100644537--- a/hm/profiles/teto-desktop/default.nix538+++ b/hm/profiles/teto-desktop/default.nix539@@ -113,7 +113,7 @@ in540 541 home.packages =542 with pkgs;543- let 544+ let545 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;546 547 # lux-cli-teto = lux-cli;548@@ -124,7 +124,7 @@ in549 in550 551 [552- kodi-teto 553+ kodi-teto554 codex # openai agent555 codex-acp # originated from zed-industries, used in avante556 557@@ -188,8 +188,7 @@ in558 # kaggle # kaggle interface559 # python3Packages.kaggle560 561-562- sonic-pi # for live music coding563+ sonic-pi # for live music coding564 stow565 systemctl-tui566 timr-tui # rust clock567@@ -267,7 +266,7 @@ in568 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;569 TETOS_BUILDER_JEDHA = builder_jedha;570 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;571- inherit (secrets) 572+ inherit (secrets)573 TAVILY_API_KEY574 FIRECRAWL_API_KEY575 CONFIDENT_AI_API_KEY576diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix577index e282359..ea63df4 100644578--- a/hm/profiles/teto-desktop/programs/codex.nix579+++ b/hm/profiles/teto-desktop/programs/codex.nix580@@ -1,6 +1,5 @@581 {582 583-584 enable = true;585 enableMcpIntegration = true;586 # CODEX_HOME/AGENTS.md.587diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix588index 9b41b6c..aabc790 100644589--- a/hm/profiles/teto-desktop/programs/firefox.nix590+++ b/hm/profiles/teto-desktop/programs/firefox.nix591@@ -95,19 +95,18 @@ in592 # extraConfig =593 id = 0;594 595- userChrome =596- ''597- /* Hide tab bar in FF Quantum */598- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {599- #TabsToolbar {600- visibility: collapse !important;601- margin-bottom: 21px !important;602- }603-604- }605- '';606-607- # userContent = 608+ userChrome = ''609+ /* Hide tab bar in FF Quantum */610+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {611+ #TabsToolbar {612+ visibility: collapse !important;613+ margin-bottom: 21px !important;614+ }615+616+ }617+ '';618+619+ # userContent =620 # ''621 # /* Hide scrollbar in FF Quantum */622 # *{scrollbar-width:none !important}623diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix624index aacec43..9037ef9 100644625--- a/hm/profiles/teto-desktop/programs/jujutsu.nix626+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix627@@ -34,9 +34,12 @@628 name = "teto";629 };630 ui = {631- # jj splits puts the cursor in a f**** position, we need $line to restore 632+ # jj splits puts the cursor in a f**** position, we need $line to restore633 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes634- editor = ["nvim" "+$line"];635+ editor = [636+ "nvim"637+ "+$line"638+ ];639 default-command = "status";640 merge-editor = "nvim";641 # Enable pagination for commands that support it (default)642diff --git a/hm/profiles/teto-desktop/programs/neovim.nix b/hm/profiles/teto-desktop/programs/neovim.nix643index 90413e9..ce5e554 100644644--- a/hm/profiles/teto-desktop/programs/neovim.nix645+++ b/hm/profiles/teto-desktop/programs/neovim.nix646@@ -246,7 +246,7 @@ let647 fswatch # better file watching starting with 0.10648 # go # for gitlab.nvim, we can probably ditch it afterwards649 650- lemminx # 651+ lemminx652 luajitPackages.luacheck653 654 luau-lsp655diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix656index be52e45..f9d09d8 100644657--- a/hm/profiles/teto-desktop/programs/rofi.nix658+++ b/hm/profiles/teto-desktop/programs/rofi.nix659@@ -37,8 +37,8 @@660 661 location = "center";662 modes = [663- # modes: [ combi ];664- # combi-modes: [ window, drun, run ];665+ # modes: [ combi ];666+ # combi-modes: [ window, drun, run ];667 668 ];669 670diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix671index 0dad1af..11dd2ad 100644672--- a/hm/profiles/teto-desktop/xdg/default.nix673+++ b/hm/profiles/teto-desktop/xdg/default.nix674@@ -101,12 +101,12 @@675 "bash/bashrc".text = ''676 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"677 source "$script_dir/manual.sh"678- ''679- # check if flyline defined too ?680- + lib.optionalString osConfig.programs.flyline.enable '' 681- source "$script_dir/flyline.sh"682+ ''683+ # check if flyline defined too ?684+ + lib.optionalString osConfig.programs.flyline.enable ''685+ source "$script_dir/flyline.sh"686 687- '';688+ '';689 690 "nvim/lua/generated-by-nix.lua" =691 let692diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix693index 4e65ba3..401717a 100644694--- a/hosts/jedha/default.nix695+++ b/hosts/jedha/default.nix696@@ -91,12 +91,20 @@ in697 # Upmpdcli's local-library server needs both discovery and HTTP access.698 networking.firewall = lib.mkIf config.services.upmpdcli.enable {699 allowedUDPPorts = [ 1900 ];700- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];701+ allowedTCPPorts = with config.services.upmpdcli.configuration; [702+ upnpport703+ uprclport704+ ];705 };706 707 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {708 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.709- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];710+ path = [711+ pkgs.recoll712+ pkgs.python3713+ pkgs.openssl714+ pkgs.diffutils715+ ];716 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];717 };718 719diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix720index babb3bb..861919d 100644721--- a/hosts/jedha/home-manager/users/teto/default.nix722+++ b/hosts/jedha/home-manager/users/teto/default.nix723@@ -104,7 +104,6 @@ in724 btop-cuda # for jedha725 brush # a rust implementation of bash726 727-728 # creates conflicts since it brings python and several executables729 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService730 731@@ -147,9 +146,9 @@ in732 # bridge-utils# pour brctl733 # vscode-css-languageserver # to showcase 'cssls' lsp server734 735- rura # to build shell pipelines736+ rura # to build shell pipelines737 # termusic # terminal music738- 739+740 ];741 742 package-sets = {743diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix744index 3378a39..9ce7079 100644745--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix746+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix747@@ -1,36 +1,34 @@748 { pkgs, lib, ... }:749 {750 751-752 enable = true;753 754 # github:utensils/mcp-nixos755- servers = 756- {757-758- nixos = {759- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";760- };761-762- # https://github.com/homeassistant-ai/ha-mcp763- ha-mcp = {764-765- command = "${lib.getExe pkgs.ha-mcp}";766-767- };768-769- # everything = {770- # command = "npx";771- # args = [ "-y" "@modelcontextprotocol/server-everything" ];772- # };773- # context7 = {774- # url = "https://mcp.context7.com/mcp";775- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";776- # };777- # codeberg = {778- # command = "/path/to/forgejo-mcp";779- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];780- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";781- # };782- };783+ servers = {784+785+ nixos = {786+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";787+ };788+789+ # https://github.com/homeassistant-ai/ha-mcp790+ ha-mcp = {791+792+ command = "${lib.getExe pkgs.ha-mcp}";793+794+ };795+796+ # everything = {797+ # command = "npx";798+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];799+ # };800+ # context7 = {801+ # url = "https://mcp.context7.com/mcp";802+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";803+ # };804+ # codeberg = {805+ # command = "/path/to/forgejo-mcp";806+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];807+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";808+ # };809+ };810 }811diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix812index 083732e..09017c2 100644813--- a/hosts/jedha/services/avahi.nix814+++ b/hosts/jedha/services/avahi.nix815@@ -13,7 +13,6 @@816 817 debug = true;818 819-820 # allowInterfaces = [821 # "wlp10s0"822 # ];823@@ -30,13 +29,12 @@824 };825 826 publish = {827- disable-publishing = false;828- disable-user-service-publishing = false;829- publish-addresses = true;830- };831-832+ disable-publishing = false;833+ disable-user-service-publishing = false;834+ publish-addresses = true;835 };836 837+ };838 839 nssmdns4 = true;840 # publish = {841diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix842index 7f3f4aa..f62f7ed 100644843--- a/hosts/jedha/services/minidlna.nix844+++ b/hosts/jedha/services/minidlna.nix845@@ -7,7 +7,6 @@846 # announceInterval = 60;847 openFirewall = true;848 849-850 # there are udp errors when it binds to wireguard network ?851 852 settings = {853@@ -16,9 +15,9 @@854 friendly_name = "jedha";855 # inotify = "yes";856 log_level = "warn";857- media_dir = [ 858+ media_dir = [859 # can be prefixed with V/A, to filter audio/video860- "/mnt/ext/music" 861+ "/mnt/ext/music"862 ];863 inotify = "yes";864 # db_dir =865diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix866index 28cc3b4..1d1609c 100644867--- a/hosts/jedha/services/opentelemetry-collector.nix868+++ b/hosts/jedha/services/opentelemetry-collector.nix869@@ -1,23 +1,22 @@870 {871 872-873 enable = true;874 875 settings =876-let877- port = 4318;878-in879+ let880+ port = 4318;881+ in882 {883- exporters.debug.verbosity = "detailed";884- receivers.otlp.protocols = {885- http.endpoint = "0.0.0.0:${toString port}";886- };887- service = {888- pipelines.logs = {889- receivers = [ "otlp" ];890- exporters = [ "debug" ];891- };892- };893+ exporters.debug.verbosity = "detailed";894+ receivers.otlp.protocols = {895+ http.endpoint = "0.0.0.0:${toString port}";896+ };897+ service = {898+ pipelines.logs = {899+ receivers = [ "otlp" ];900+ exporters = [ "debug" ];901+ };902+ };903 904- };905+ };906 }907diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix908index ef04f30..390f091 100644909--- a/hosts/jedha/services/upmpdcli.nix910+++ b/hosts/jedha/services/upmpdcli.nix911@@ -1,12 +1,12 @@912 /*913-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 914- should change playback if rmpd and upmpdcli are controlling the same MPD instance915- 916- • 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.917-• 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.918+ 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, it919+ should change playback if rmpd and upmpdcli are controlling the same MPD instance920 921-mpd now has a plugin that can play music from upnp server 922-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction923+ • 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.924+ • 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.925+926+ mpd now has a plugin that can play music from upnp server927+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction928 */929 930 { pkgs, lib, ... }:931@@ -44,7 +44,7 @@ in932 mpdport = 6600;933 # try to see if I can control it myself934 ownqueue = 0;935- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 936+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo937 # control the playlist. The client can disconnect after playlist was created938 openhome = 0;939 upnpav = 1;940diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix941index 59d7129..e0cab47 100644942--- a/hosts/jedha/systemd.nix943+++ b/hosts/jedha/systemd.nix944@@ -34,61 +34,60 @@ in945 })946 # disabled because ha-mcp broken947 (lib.mkIf false {948- ha-mcp = {949- description = "Home Assistant MCP server";950- wantedBy = [ "multi-user.target" ];951- wants = [ "network-online.target" ];952- after = [ "network-online.target" ];953- environment = {954- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";955- HOME = "/var/lib/ha-mcp";956- MCP_HOST = "127.0.0.1";957- MCP_PORT = "8086";958- };959- serviceConfig = {960- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";961- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.962- EnvironmentFile = "/var/lib/ha-mcp/environment";963- DynamicUser = true;964- StateDirectory = "ha-mcp";965- WorkingDirectory = "/var/lib/ha-mcp";966- Restart = "on-failure";967- RestartSec = 5;968- UMask = "0077";969- };970+ ha-mcp = {971+ description = "Home Assistant MCP server";972+ wantedBy = [ "multi-user.target" ];973+ wants = [ "network-online.target" ];974+ after = [ "network-online.target" ];975+ environment = {976+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";977+ HOME = "/var/lib/ha-mcp";978+ MCP_HOST = "127.0.0.1";979+ MCP_PORT = "8086";980 };981+ serviceConfig = {982+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";983+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.984+ EnvironmentFile = "/var/lib/ha-mcp/environment";985+ DynamicUser = true;986+ StateDirectory = "ha-mcp";987+ WorkingDirectory = "/var/lib/ha-mcp";988+ Restart = "on-failure";989+ RestartSec = 5;990+ UMask = "0077";991+ };992+ };993 994- # copied from https://github.com/NixOS/nixpkgs/pull/544252995- # lib.recursiveUpdate slib.systemd.serviceDefaults {996- speech-to-phrase = {997- # after = [ "home-assistant.service" ];998- script = lib.concatStringsSep " " [999- (lib.getExe pkgs.speech-to-phrase)1000- "--models-dir"1001- "\"$STATE_DIRECTORY/models\""1002- "--train-dir"1003- "\"$STATE_DIRECTORY/train\""1004- # "--custom-sentences-dir" ""1005- "--uri 'tcp://127.0.0.1:10400'"1006- "--hass-websocket-uri"1007- "ws://${hassHost}:${toString hassPort}/api/websocket"1008- "--retrain-on-start"1009- "--retrain-on-connect"1010- "--retrain-seconds"1011- "300"1012- ];1013- serviceConfig = {1014- #1015- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1016- Group = "speech-to-phrase";1017- StateDirectory = "speech-to-phrase";1018- User = "speech-to-phrase";1019- # TODO: hardening1020- };1021+ # copied from https://github.com/NixOS/nixpkgs/pull/5442521022+ # lib.recursiveUpdate slib.systemd.serviceDefaults {1023+ speech-to-phrase = {1024+ # after = [ "home-assistant.service" ];1025+ script = lib.concatStringsSep " " [1026+ (lib.getExe pkgs.speech-to-phrase)1027+ "--models-dir"1028+ "\"$STATE_DIRECTORY/models\""1029+ "--train-dir"1030+ "\"$STATE_DIRECTORY/train\""1031+ # "--custom-sentences-dir" ""1032+ "--uri 'tcp://127.0.0.1:10400'"1033+ "--hass-websocket-uri"1034+ "ws://${hassHost}:${toString hassPort}/api/websocket"1035+ "--retrain-on-start"1036+ "--retrain-on-connect"1037+ "--retrain-seconds"1038+ "300"1039+ ];1040+ serviceConfig = {1041+ #1042+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1043+ Group = "speech-to-phrase";1044+ StateDirectory = "speech-to-phrase";1045+ User = "speech-to-phrase";1046+ # TODO: hardening1047 };1048+ };1049 1050- }1051- )1052+ })1053 ];1054 1055 # just to test1056diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1057index 5a92154..337beb9 1006441058--- a/hosts/router/services/home-assistant.nix1059+++ b/hosts/router/services/home-assistant.nix1060@@ -34,7 +34,7 @@ in1061 ];1062 1063 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1064-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1065+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1066 easy-floorplan1067 button-card1068 # home-assistant-custom-lovelace-modules.sankey-chart1069@@ -68,8 +68,6 @@ in1070 material-you-theme1071 ];1072 1073-1074-1075 blueprints = {1076 automation = [1077 # ATTENTION: The name should contain the extension .yaml1078diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1079index a81a7ef..928f21c 1006441080--- a/hosts/tatooine/default.nix1081+++ b/hosts/tatooine/default.nix1082@@ -132,7 +132,6 @@ in1083 enableRedistributableFirmware = true;1084 sane.enable = true;1085 1086-1087 # High quality BT calls1088 # https://nixos.wiki/wiki/Bluetooth1089 bluetooth = {1090diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1091index 6210293..5c3a889 1006441092--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1093+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1094@@ -1,9 +1,9 @@1095-{ pkgs, ...}:1096+{ pkgs, ... }:1097 {1098 1099- scripts = [1100- # as python1101- # pkgs.mpvDLNA1102- ];1103+ scripts = [1104+ # as python1105+ # pkgs.mpvDLNA1106+ ];1107 1108 }1109diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1110index adc82dd..1724c86 1006441111--- a/hosts/tatooine/services/adguardhome.nix1112+++ b/hosts/tatooine/services/adguardhome.nix1113@@ -10,7 +10,7 @@1114 settings = {1115 1116 # http (since v0.107.36): Web interface configuration.1117- # address: Web interface IP address with port to listen on 1118+ # address: Web interface IP address with port to listen on1119 http.address = "127.0.0.1:8084";1120 1121 };1122diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1123index dd02f3f..f14c221 1006441124--- a/hosts/tatooine/services/avahi.nix1125+++ b/hosts/tatooine/services/avahi.nix1126@@ -21,19 +21,19 @@1127 1128 settings = {1129 publish = {1130- publish-domain = true;1131- disable-publishing = false;1132- disable-user-service-publishing = false;1133- publish-addresses = true;1134- };1135+ publish-domain = true;1136+ disable-publishing = false;1137+ disable-user-service-publishing = false;1138+ publish-addresses = true;1139+ };1140 1141 server = {1142 use-ipv6 = false; # bug with multiple hostnames1143- # # 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.1144- # # secrets.jedha.hostname;1145- # # host-name = "jedha";1146- # # enable-dbus = true;1147- #1148+ # # 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.1149+ # # secrets.jedha.hostname;1150+ # # host-name = "jedha";1151+ # # enable-dbus = true;1152+ #1153 };1154 };1155 1156diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1157index 4cd2e1d..a9725d3 1006441158--- a/hosts/tatooine/services/mediatomb.nix1159+++ b/hosts/tatooine/services/mediatomb.nix1160@@ -1,6 +1,6 @@1161 # it's gerbera in fact1162 { pkgs, ... }:1163-let 1164+let1165 # <mappings>1166 # freeboxRevolution6Mappings = ''1167 # <extension-mimetype ignore-unknown="no">1168@@ -68,78 +68,77 @@ in1169 1170 # to avoid having to rewire the permissions1171 group = "minidlna";1172- interface="wlp2s0";1173+ interface = "wlp2s0";1174 # we should use subsitute for the VLC/ffmpedg commands1175-# postInstall = ''1176-# substitute $src/config.in $out/config \1177-# --replace-fail '@X@' "$X"1178-# '';1179-#1180-# For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1181-transcoding = ''<transcoding enabled="yes" >1182- <profile name="freebox-h264" enabled="yes" type="external">1183- <mimetype>video/mpeg</mimetype>1184- <accept-url>no</accept-url>1185- <first-resource>yes</first-resource>1186- <accept-ogg-theora>no</accept-ogg-theora>1187- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1188- arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1189- <buffer size="14400000" chunk-size="512000" fill-size="120000" />1190- </profile>1191- <profile name="freebox-aac" enabled="yes" type="external">1192- <mimetype>audio/aac</mimetype>1193- <accept-url>no</accept-url>1194- <first-resource>yes</first-resource>1195- <accept-ogg-theora>no</accept-ogg-theora>1196- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1197- arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1198- <buffer size="1048576" chunk-size="131072" fill-size="262144" />1199- </profile>1200- <mimetype-profile-mappings>1201- <!-- enable freebox ones -->1202- <transcode mimetype="video/x-flv" using="freebox-h264" />1203- <transcode mimetype="application/ogg" using="freebox-h264" />1204- <transcode mimetype="video/x-matroska" using="freebox-h264" />1205- <transcode mimetype="video/x-msvideo" using="freebox-h264" />1206- <transcode mimetype="audio/ogg" using="freebox-aac" />1207- </mimetype-profile-mappings>1208- </transcoding>1209- '';1210-1211+ # postInstall = ''1212+ # substitute $src/config.in $out/config \1213+ # --replace-fail '@X@' "$X"1214+ # '';1215+ #1216+ # For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1217+ transcoding = ''1218+ <transcoding enabled="yes" >1219+ <profile name="freebox-h264" enabled="yes" type="external">1220+ <mimetype>video/mpeg</mimetype>1221+ <accept-url>no</accept-url>1222+ <first-resource>yes</first-resource>1223+ <accept-ogg-theora>no</accept-ogg-theora>1224+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1225+ arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1226+ <buffer size="14400000" chunk-size="512000" fill-size="120000" />1227+ </profile>1228+ <profile name="freebox-aac" enabled="yes" type="external">1229+ <mimetype>audio/aac</mimetype>1230+ <accept-url>no</accept-url>1231+ <first-resource>yes</first-resource>1232+ <accept-ogg-theora>no</accept-ogg-theora>1233+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1234+ arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1235+ <buffer size="1048576" chunk-size="131072" fill-size="262144" />1236+ </profile>1237+ <mimetype-profile-mappings>1238+ <!-- enable freebox ones -->1239+ <transcode mimetype="video/x-flv" using="freebox-h264" />1240+ <transcode mimetype="application/ogg" using="freebox-h264" />1241+ <transcode mimetype="video/x-matroska" using="freebox-h264" />1242+ <transcode mimetype="video/x-msvideo" using="freebox-h264" />1243+ <transcode mimetype="audio/ogg" using="freebox-aac" />1244+ </mimetype-profile-mappings>1245+ </transcoding>1246+ '';1247 1248-# from-file="${./transcoding.xml}" />'';1249+ # from-file="${./transcoding.xml}" />'';1250 1251 mappings = ''<mappings from-file="${./mappings.xml}" />'';1252 1253-1254-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1255-# # Les codecs vidéos :1256-# # H.264 ;1257-# # MPEG2 ;1258-# # MS-MPEG4 (DivX 3) ;1259-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1260-# # VC1.1261-# #1262-# # Les codecs audios :1263-# # en decode :1264-# # AAC, ;1265-# # M Dolby Digital (downmix 2.0) ;1266-# # Dolby Digital Plus(downmix 2.0)1267-# # DTS core (downmix 2.0) ;1268-# # FLAC ;1269-# # MP2 ;1270-# # MP3 ;1271-# # Vorbis.1272-# #1273-# # en passthrough (via la sortie HDMI) :1274-# # AAC ;1275-# # Dolby Digital ;1276-# # Dolby Digital Plus ;1277-# # Dolby Digital TrueHD ;1278-# # DTS ;1279-# # DTS-HD (MA et HRA). 1280-# # d'apres1281-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1282+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1283+ # # Les codecs vidéos :1284+ # # H.264 ;1285+ # # MPEG2 ;1286+ # # MS-MPEG4 (DivX 3) ;1287+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1288+ # # VC1.1289+ # #1290+ # # Les codecs audios :1291+ # # en decode :1292+ # # AAC, ;1293+ # # M Dolby Digital (downmix 2.0) ;1294+ # # Dolby Digital Plus(downmix 2.0)1295+ # # DTS core (downmix 2.0) ;1296+ # # FLAC ;1297+ # # MP2 ;1298+ # # MP3 ;1299+ # # Vorbis.1300+ # #1301+ # # en passthrough (via la sortie HDMI) :1302+ # # AAC ;1303+ # # Dolby Digital ;1304+ # # Dolby Digital Plus ;1305+ # # Dolby Digital TrueHD ;1306+ # # DTS ;1307+ # # DTS-HD (MA et HRA).1308+ # # d'apres1309+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1310 1311 # Configured the Freebox transcode profiles through services.mediatomb.transcodingProfiles and MIME mappings in mediatomb.nix (hosts/tatooine/services/mediatomb.nix). Video transcodes to H.264/AAC in MPEG-TS; Ogg audio transcodes to AAC.1312 #1313@@ -178,19 +177,18 @@ transcoding = ''<transcoding enabled="yes" >1314 1315 # 49152 already used by mdp1316 port = 49153;1317- mediaDirectories= [1318- {1319- hidden-files = false;1320- path = "/home/teto/videos";1321- recursive = true;1322- }1323- {1324- hidden-files = false;1325- path = "/home/teto/Music";1326- recursive = true;1327- }1328-1329- ];1330+ mediaDirectories = [1331+ {1332+ hidden-files = false;1333+ path = "/home/teto/videos";1334+ recursive = true;1335+ }1336+ {1337+ hidden-files = false;1338+ path = "/home/teto/Music";1339+ recursive = true;1340+ }1341 1342+ ];1343 1344 }1345diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1346index 5a3e20e..e9c8039 1006441347--- a/hosts/tatooine/services/minidlna.nix1348+++ b/hosts/tatooine/services/minidlna.nix1349@@ -13,7 +13,6 @@1350 # to receive sssdp answers1351 openFirewall = true;1352 1353-1354 # there are udp errors when it binds to wireguard network ?1355 1356 settings = {1357@@ -22,7 +21,7 @@1358 friendly_name = "tatooine";1359 # inotify = "yes";1360 log_level = "warn";1361- media_dir = [ 1362+ media_dir = [1363 # can be prefixed with V/A, to filter audio/video1364 "/home/teto/videos"1365 "/home/teto/Music"1366@@ -30,11 +29,9 @@1367 1368 # Network interface to bind (optional; self-discovers if commented out)1369 # to avoid erros on wireguard if1370- network_interface="wlp2s0"; 1371+ network_interface = "wlp2s0";1372 # to remove warnings1373 inotify = "no";1374 # db_dir =1375 };1376 }1377-1378-1379diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1380index 0c082b6..58d9c85 1006441381--- a/hosts/tatooine/services/pulseaudio.nix1382+++ b/hosts/tatooine/services/pulseaudio.nix1383@@ -1,9 +1,8 @@1384 { pkgs, ... }:1385- # cant be enabled with pipewire1386- {1387- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1388- enable = false;1389- # for ad2p profle ?1390- package = pkgs.pulseaudioFull;1391- }1392-1393+# cant be enabled with pipewire1394+{1395+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1396+ enable = false;1397+ # for ad2p profle ?1398+ package = pkgs.pulseaudioFull;1399+}1400diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1401index e158259..4b6709c 1006441402--- a/hosts/tatooine/tetos.nix1403+++ b/hosts/tatooine/tetos.nix1404@@ -9,7 +9,8 @@1405 {1406 allowUpnp = true;1407 1408-} // lib.optionalAttrs withSecrets {1409+}1410+// lib.optionalAttrs withSecrets {1411 wireguard = {1412 id = 2;1413 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1414@@ -19,4 +20,4 @@1415 flakeSelf.nixosConfigurations.neotokyo1416 ];1417 };1418-} 1419+}1420diff --git a/justfile b/justfile1421index 36b0eaf..c6478cc 1006441422--- a/justfile1423+++ b/justfile1424@@ -65,12 +65,12 @@ bootstrap-vps target:1425 --debug1426 1427 bump-meli:1428- nix-update -F --version=branch=master meli-teto1429+ nix-update -F --version=branch=master meli-teto1430 1431 # urn:schemas-upnp-org:device:MediaRenderer:11432 discover-upnp-renderers:1433- gssdp-discover --timeout=5 \1434- --target=urn:schemas-upnp-org:device:MediaRenderer:11435+ gssdp-discover --timeout=5 \1436+ --target=urn:schemas-upnp-org:device:MediaRenderer:11437 1438 # just to save the command1439 1440@@ -326,7 +326,6 @@ inspect-current-generation:1441 flash-ulanzi-tc001:1442 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1443 1444-1445 # check dlna servers on the network1446 scan-upnp:1447 nmap --script=broadcast-upnp-info 192.168.0.0/161448diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1449index c73a06e..5448ba8 1006441450--- a/nixos/modules/minidlna.nix1451+++ b/nixos/modules/minidlna.nix1452@@ -1,7 +1,8 @@1453 { config, lib, ... }:1454 let1455 cfg = config.services.minidlna;1456- mediaDirs = map (dir:1457+ mediaDirs = map (1458+ dir:1459 let1460 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1461 in1462diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1463index dd25744..86ddd25 1006441464--- a/nixos/modules/upnp.nix1465+++ b/nixos/modules/upnp.nix1466@@ -1,7 +1,8 @@1467 { config, lib, ... }:1468 let1469- cfg = config.programs.upnp;1470-in {1471+ cfg = config.programs.upnp;1472+in1473+{1474 options = {1475 programs.upnp = {1476 enable = lib.mkEnableOption "upnp";1477@@ -17,13 +18,12 @@ in {1478 config = lib.mkIf cfg.enable {1479 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1480 1481- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];1482-# # SSDP multicast discovery port (UDP)1483-# sudo ufw allow 1900/udp comment 'DLNA SSDP'1484-#1485-# # MiniDLNA HTTP streaming & web status port (TCP)1486-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1487+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];1488+ # # SSDP multicast discovery port (UDP)1489+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'1490+ #1491+ # # MiniDLNA HTTP streaming & web status port (TCP)1492+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1493 1494 };1495 }1496-1497diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1498index 3820510..e4bca1c 1006441499--- a/nixos/profiles/adguardhome.nix1500+++ b/nixos/profiles/adguardhome.nix1501@@ -9,7 +9,6 @@1502 # mutableSettings = true;1503 # openFirewall = false;1504 1505-1506 # mutableSettings = true;1507 # extraArgs = [];1508 1509diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1510index 9ceeefc..3835a79 1006441511--- a/nixos/profiles/avahi.nix1512+++ b/nixos/profiles/avahi.nix1513@@ -1,9 +1,6 @@1514 /*1515-1516-guide:1517-avahi-browse-domains 1518-1519-1520+ guide:1521+ avahi-browse-domains1522 */1523 {1524 config,1525@@ -23,7 +20,7 @@ avahi-browse-domains1526 1527 server = {1528 1529- # List of non-local DNS domains to be browsed.1530+ # List of non-local DNS domains to be browsed.1531 browse-domains = [1532 # "0pointer.de"1533 # "zeroconf.org"1534diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix1535index db4eb98..38e8c16 1006441536--- a/nixos/profiles/desktop/default.nix1537+++ b/nixos/profiles/desktop/default.nix1538@@ -2,7 +2,6 @@1539 {1540 fonts.enableDefaultPackages = true;1541 1542-1543 console = {1544 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131281545 earlySetup = true;1546diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1547index 3f9282d..9039e39 1006441548--- a/nixos/profiles/desktop/programs/flyline.nix1549+++ b/nixos/profiles/desktop/programs/flyline.nix1550@@ -1,5 +1,5 @@1551 {1552 enable = true;1553- # 1554+ #1555 # package = ;1556 }1557diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix1558index daadd3f..d3fc61c 1006441559--- a/nixos/profiles/desktop/users/default.nix1560+++ b/nixos/profiles/desktop/users/default.nix1561@@ -1,3 +1,3 @@1562 {1563- groups.minidlna = {};1564+ groups.minidlna = { };1565 }1566diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix1567index aac0d91..995a67c 1006441568--- a/nixos/profiles/home-assistant.nix1569+++ b/nixos/profiles/home-assistant.nix1570@@ -17,13 +17,12 @@1571 # # "deconz" # interface for zigbee conbee II1572 # ];1573 1574-1575 package = pkgs.home-assistant.override {1576 1577 extraPackages = ps: [1578 ps.psycopg21579- # disabled because of ? 1580- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 1581+ # disabled because of ?1582+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await1583 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619081584 # # enables several default components1585 # ps.hass-nabucasa # to be able to login to cloud1586@@ -74,7 +73,7 @@1587 assist_pipeline = { };1588 # bluetooth = {}; # NO1589 # # enables several default components. DO NOT REMOVE (?)1590- default_config = { }; 1591+ default_config = { };1592 # map = {}; # show a local map1593 network = { };1594 homeassistant = {1595diff --git a/nixos/profiles/pixiecore.nix b/nixos/profiles/pixiecore.nix1596index c6a5355..141a4f8 1006441597--- a/nixos/profiles/pixiecore.nix1598+++ b/nixos/profiles/pixiecore.nix1599@@ -117,7 +117,7 @@ in1600 # one of “api”, “boot”, “quick”1601 package = pkgs.pixiecore-arm64;1602 mode = "boot";1603-# enp1s0f01604+ # enp1s0f01605 # extraArguments = ;1606 # listen1607 # cmdLine = ;