nixbot

builds

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

1treefmt v2.6.0traversed 1634 files2emitted 880 files for processing3formatted 880 files (47 changed) in 1.325s4 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 hosts/wsl/default.nix40 M hosts/wsl/hm-teto.nix41 M justfile42 M nixos/modules/minidlna.nix43 M nixos/modules/upnp.nix44 M nixos/profiles/adguardhome.nix45 M nixos/profiles/avahi.nix46 M nixos/profiles/desktop/default.nix47 M nixos/profiles/desktop/programs/flyline.nix48 M nixos/profiles/desktop/users/default.nix49 M nixos/profiles/home-assistant.nix50 M nixos/profiles/pixiecore.nix51diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix52index a4a9a74..4adedee 10064453--- a/by-name/ko/kodi-tetos/package.nix54+++ b/by-name/ko/kodi-tetos/package.nix55@@ -1,11 +1,13 @@56 { kodi, makeWrapper }:57 58 let59- kodiWithPackages = kodi.withPackages (p: with p; [60- jellyfin61- # pvr-iptvsimple62- vfs-sftp63- ]);64+ kodiWithPackages = kodi.withPackages (65+ p: with p; [66+ jellyfin67+ # pvr-iptvsimple68+ vfs-sftp69+ ]70+ );71 in72 kodiWithPackages.overrideAttrs (oldAttrs: {73 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];74diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix75index 9442d75..a9d8692 10064476--- a/by-name/ze/zeal-teto/package.nix77+++ b/by-name/ze/zeal-teto/package.nix78@@ -1,10 +1,9 @@79 { zeal }:80 zeal.overrideAttrs (oa: {81 82- # export QMLSCENE_DEVICE=software83- postInstall = ''84- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software85- '';86-87- })88+ # export QMLSCENE_DEVICE=software89+ postInstall = ''90+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software91+ '';92 93+})94diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh95index c2b1a84..6b647be 10064496--- a/config/bash/flyline.sh97+++ b/config/bash/flyline.sh98@@ -10,12 +10,11 @@ flyline history --backend flyline99 # it flickers100 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 2101 102-# Codex: change 103+# Codex: change104 flyline set-agent-mode \105- --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. " \106- --trigger-prefix ': ' \107- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'108-109+ --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. " \110+ --trigger-prefix ': ' \111+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'112 113 # Antigravity:114 # flyline set-agent-mode \115@@ -26,7 +25,6 @@ flyline set-agent-mode \116 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"117 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR118 119-120 # precmd_functions+=(set_ps1)121 # Now you can use this animation in your prompt. For example:122 PS1='\u@\h:\w MOUSE_MODE \n$ '123@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''124 125 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽126 127-128 # Experiment with higher frame rates for smooth transitions:129 # flyline create-prompt-widget animation --name "john" --fps 24 \130 # '\e[38;2;255;0;0m\u' \131@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''132 # '\e[38;2;255;0;63m\u' \133 # '\e[38;2;255;0;47m\u' \134 # '\e[38;2;255;0;31m\u' \135-# '\e[38;2;255;0;15m\u' 136+# '\e[38;2;255;0;15m\u'137diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua138index 85acdb0..9d9296e 100644139--- a/config/nvim/after/ftplugin/Avante.lua140+++ b/config/nvim/after/ftplugin/Avante.lua141@@ -14,7 +14,6 @@ vim.opt.showbreak = ''142 -- - update_content143 -- - on_state_change144 145-146 -- local sidebar = require('avante').get()147 148 -- vim.api.nvim_create_autocmd('WinEnter', {149@@ -29,8 +28,8 @@ vim.opt.showbreak = ''150 -- vim.wo.cursorline = false151 vim.wo.foldcolumn = '3' -- auto152 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.153--- could work well, react onto 154-vim.wo.foldmethod = "expr"155+-- could work well, react onto156+vim.wo.foldmethod = 'expr'157 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'158 159 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer160diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua161index b321120..bc9e2c6 100644162--- a/config/nvim/after/ftplugin/RikaiPopup.lua163+++ b/config/nvim/after/ftplugin/RikaiPopup.lua164@@ -3,10 +3,9 @@165 vim.keymap.set('n', '<localleader>s', function()166 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha167 168- vim.fn.jobstart({ 169- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })170-171+ vim.fn.jobstart({172+ 'mpv',173+ '--no-video',174+ vim.fn.expand('~/home/data/audio/notif1.wav'),175+ }, { detach = true })176 end, { buffer = true, desc = 'Play sound' })177-178-179-180diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua181index 1aed1c2..aecf410 100644182--- a/config/nvim/lua/init-manual.lua183+++ b/config/nvim/lua/init-manual.lua184@@ -949,8 +949,8 @@ end, { desc = 'Go to file, create if missing' })185 -- Outside of the fork it kills the plugin so careful186 -- normally overriden by setup call187 vim.g.avante = {188- -- -- print error messages, set to false to avoid issues with inspect_ai189- debug = false, 190+ -- -- print error messages, set to false to avoid issues with inspect_ai191+ debug = false,192 -- log_level =193 log_level = vim.log.levels.DEBUG,194 195@@ -1090,7 +1090,7 @@ vim.g.avante = {196 windows = {197 position = 'right',198 fillchars = 'eob: ',199- -- wrap = false,200+ -- wrap = false,201 -- TODO remove202 sidebar_header = {203 enabled = true, -- true, false to enable/disable the header204@@ -1355,8 +1355,8 @@ vim.api.nvim_create_autocmd({ 'User' }, {205 vim.notify('avante: LLM answered')206 -- Leave the event callback before closing all windows, including modified buffers.207 -- vim.schedule(function()208- -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua209- --210+ -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua211+ --212 -- vim.cmd('qall!')213 -- end)214 end,215@@ -1373,22 +1373,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {216 --217 -- ╰─218 219-220-vim.api.nvim_create_autocmd(221- 'PackChanged',222- {223+vim.api.nvim_create_autocmd('PackChanged', {224 callback = function(ev)225- local name, kind = ev.data.spec.name, ev.data.kind226- print("package name ", name)227- vim.print("spec ", ev.data.spec)228- -- vim.print("version ", ev.data.spec.version)229-230- -- print("package kind ", kind)231- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then232- -- -- Call `:AvanteBuild` to download prebuilt libraries233- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()234- -- end235- end236- }237-)238-239+ local name, kind = ev.data.spec.name, ev.data.kind240+ print('package name ', name)241+ vim.print('spec ', ev.data.spec)242+ -- vim.print("version ", ev.data.spec.version)243+244+ -- print("package kind ", kind)245+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then246+ -- -- Call `:AvanteBuild` to download prebuilt libraries247+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()248+ -- end249+ end,250+})251diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua252index ffcb08a..8b60a67 100644253--- a/config/nvim/lua/plugins/kitty-scrollback.lua254+++ b/config/nvim/lua/plugins/kitty-scrollback.lua255@@ -2,43 +2,43 @@256 -- if you want to create autocommands257 258 --259- -- myconfig = {260- -- kitty_get_text = {261- -- ansi = false,262- -- },263- -- },264- -- myfnconfig = function(kitty_data)265- -- return {266- -- kitty_get_text = {267- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',268- -- },269- -- }270- -- end,271+-- myconfig = {272+-- kitty_get_text = {273+-- ansi = false,274+-- },275+-- },276+-- myfnconfig = function(kitty_data)277+-- return {278+-- kitty_get_text = {279+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',280+-- },281+-- }282+-- end,283 require('kitty-scrollback').setup(284 -- global configuration285 {286- kitty_get_text = {287- -- boolean If true, the text will include the ANSI formatting escape codes for colors,288- ansi = true,289- extent = 'all',290- },291- -- scrollback_columns = 300,292- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external293- scrollback_tempfile = false,294- keymaps_enabled = false,295- close_after_yank = true,296- status_window = {297+ kitty_get_text = {298+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,299+ ansi = true,300+ extent = 'all',301+ },302+ -- scrollback_columns = 300,303+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external304+ scrollback_tempfile = false,305+ keymaps_enabled = false,306+ close_after_yank = true,307+ status_window = {308 309- style_simple = true, -- user may not have Nerd Fonts installed310- show_timer = true,311+ style_simple = true, -- user may not have Nerd Fonts installed312+ show_timer = true,313 314- autoclose = true,315- },316- paste_window = {317- -- yank_register = '',318- -- boolean? If true, the yank_register copies content to the paste window. If false, d319- -- -- isable yank to paste window320- -- yank_register_enabled = false,321- }322+ autoclose = true,323+ },324+ paste_window = {325+ -- yank_register = '',326+ -- boolean? If true, the yank_register copies content to the paste window. If false, d327+ -- -- isable yank to paste window328+ -- yank_register_enabled = false,329+ },330 }331 )332diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix333index e95570a..ae177f7 100644334--- a/hm/modules/audiocast.nix335+++ b/hm/modules/audiocast.nix336@@ -1,7 +1,13 @@337-{ config, lib, pkgs, ... }:338+{339+ config,340+ lib,341+ pkgs,342+ ...343+}:344 let345- cfg = config.services.audiocast;346-in {347+ cfg = config.services.audiocast;348+in349+{350 options = {351 services.audiocast = {352 enable = lib.mkEnableOption "audiocast-stream";353@@ -16,44 +22,43 @@ in {354 };355 config = lib.mkIf cfg.enable {356 357-358- # Renderer friendlyName to discover over SSDP359- # Hard-coded AVTransport control URL (skips SSDP discovery)360- # else we give url361- # ❯ yamaha discover362- # name host model udn363- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e364- # port 8082 Local HTTP port for the stream365- xdg.configFile."audiocast/config" = {366- enable = false;367- text = ''368- [audiocast]369- name = Espace Musical370- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)371- mode = app372- sink = audiocast373- sink_description = AudioCast (DLNA)374- '';375-};376-377- systemd.user.services.audiocast-stream = {378- Unit = {379- Description = "Stream PipeWire audio to a DLNA renderer";380- After = [381- "pipewire.service"382- "pipewire-pulse.service"383- ];384- Wants = [ "pipewire-pulse.service" ];385+ # Renderer friendlyName to discover over SSDP386+ # Hard-coded AVTransport control URL (skips SSDP discovery)387+ # else we give url388+ # ❯ yamaha discover389+ # name host model udn390+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e391+ # port 8082 Local HTTP port for the stream392+ xdg.configFile."audiocast/config" = {393+ enable = false;394+ text = ''395+ [audiocast]396+ name = Espace Musical397+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)398+ mode = app399+ sink = audiocast400+ sink_description = AudioCast (DLNA)401+ '';402 };403- Service = {404- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";405- Restart = "on-failure";406- # The renderer may be asleep or temporarily off the network. The407- # program exits when discovery fails, so retry without a tight loop.408- RestartSec = 30;409+410+ systemd.user.services.audiocast-stream = {411+ Unit = {412+ Description = "Stream PipeWire audio to a DLNA renderer";413+ After = [414+ "pipewire.service"415+ "pipewire-pulse.service"416+ ];417+ Wants = [ "pipewire-pulse.service" ];418+ };419+ Service = {420+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";421+ Restart = "on-failure";422+ # The renderer may be asleep or temporarily off the network. The423+ # program exits when discovery fails, so retry without a tight loop.424+ RestartSec = 30;425+ };426+ Install.WantedBy = [ "default.target" ];427 };428- Install.WantedBy = [ "default.target" ];429- };430 };431 432 }433diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix434index b6d495f..e7da295 100644435--- a/hm/modules/kitty.nix436+++ b/hm/modules/kitty.nix437@@ -54,7 +54,7 @@ in438 map kitty_mod+h kitty_scrollback_nvim ./tmp439 # Browse output of the last shell command in nvim440 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output441- '';442+ '';443 444 #445 # # Browse output of the last shell command in nvim446diff --git a/hm/modules/microsoft.nix b/hm/modules/microsoft.nix447index 218784e..da475a8 100644448--- a/hm/modules/microsoft.nix449+++ b/hm/modules/microsoft.nix450@@ -1,8 +1,14 @@451 # enable this module to work in a microsoft environment452-{ config, lib, pkgs, ... }:453+{454+ config,455+ lib,456+ pkgs,457+ ...458+}:459 let460- cfg = config.microsoft;461-in {462+ cfg = config.microsoft;463+in464+{465 options = {466 microsoft = {467 enable = lib.mkEnableOption "microsoft";468diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix469index 8d60438..e76a354 100644470--- a/hm/modules/package-sets.nix471+++ b/hm/modules/package-sets.nix472@@ -62,7 +62,6 @@ in473 474 };475 476-477 # this gets merged by default478 config = lib.mkMerge [479 {480@@ -115,7 +114,6 @@ in481 pkgs.blazingjj482 flakeSelf.inputs.jj-gh.packages.${system}.default483 484-485 # pkgs.gg-jj486 # pkgs.lazyjj487 # pkgs.jj-fzf488@@ -419,7 +417,6 @@ in489 lurk # a rust strace490 lsof # to see open files491 492-493 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship494 libossp_uuid # for the 'libuuid' executable495 496@@ -490,7 +487,6 @@ in497 498 # rainfrog # database exploration499 500-501 process-compose # docker-compose - like502 # rpl # to replace strings across files503 repgrep # replace matches found by rg504@@ -502,7 +498,7 @@ in505 tmux # when connecting via ssh506 trurl # used to parse url in the firefox-router executable507 universal-ctags # there are many different ctags, be careful !508- uv # to install python packages509+ uv # to install python packages510 unar # used to view archives by yazi (now using ouch ?)511 vifm512 viu # a console image viewer513@@ -697,7 +693,7 @@ in514 pkgs.tsukumi515 ];516 })517- (mkIf cfg.jellyfin {518+ (mkIf cfg.jellyfin {519 520 home.packages = [521 522@@ -708,13 +704,12 @@ in523 # pkgs.feishin # GUI524 # pkgs.jellycli # could not login :/525 526-527 # VIDEO compatible528 # - Jellyfin MPV Shim529 (ignoreBroken pkgs.tsukimi) # gtk+rust music player GUI530 pkgs.jellyfin-desktop531 pkgs.jellyfin-mpv-shim532- # jellyhaj # not upstreamed yet 533+ # jellyhaj # not upstreamed yet534 # fladder # nice GUI535 # jftui too minimalistic536 # pkgs.jellyflix # nice537diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix538index 5816c79..723f74e 100644539--- a/hm/profiles/teto-desktop/default.nix540+++ b/hm/profiles/teto-desktop/default.nix541@@ -113,7 +113,7 @@ in542 543 home.packages =544 with pkgs;545- let 546+ let547 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;548 549 # lux-cli-teto = lux-cli;550@@ -124,7 +124,7 @@ in551 in552 553 [554- kodi-teto 555+ kodi-teto556 codex # openai agent557 codex-acp # originated from zed-industries, used in avante558 559@@ -188,8 +188,7 @@ in560 # kaggle # kaggle interface561 # python3Packages.kaggle562 563-564- sonic-pi # for live music coding565+ sonic-pi # for live music coding566 stow567 systemctl-tui568 timr-tui # rust clock569@@ -267,7 +266,7 @@ in570 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;571 TETOS_BUILDER_JEDHA = builder_jedha;572 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;573- inherit (secrets) 574+ inherit (secrets)575 TAVILY_API_KEY576 FIRECRAWL_API_KEY577 CONFIDENT_AI_API_KEY578diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix579index e282359..ea63df4 100644580--- a/hm/profiles/teto-desktop/programs/codex.nix581+++ b/hm/profiles/teto-desktop/programs/codex.nix582@@ -1,6 +1,5 @@583 {584 585-586 enable = true;587 enableMcpIntegration = true;588 # CODEX_HOME/AGENTS.md.589diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix590index 9b41b6c..aabc790 100644591--- a/hm/profiles/teto-desktop/programs/firefox.nix592+++ b/hm/profiles/teto-desktop/programs/firefox.nix593@@ -95,19 +95,18 @@ in594 # extraConfig =595 id = 0;596 597- userChrome =598- ''599- /* Hide tab bar in FF Quantum */600- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {601- #TabsToolbar {602- visibility: collapse !important;603- margin-bottom: 21px !important;604- }605-606- }607- '';608-609- # userContent = 610+ userChrome = ''611+ /* Hide tab bar in FF Quantum */612+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {613+ #TabsToolbar {614+ visibility: collapse !important;615+ margin-bottom: 21px !important;616+ }617+618+ }619+ '';620+621+ # userContent =622 # ''623 # /* Hide scrollbar in FF Quantum */624 # *{scrollbar-width:none !important}625diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix626index aacec43..9037ef9 100644627--- a/hm/profiles/teto-desktop/programs/jujutsu.nix628+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix629@@ -34,9 +34,12 @@630 name = "teto";631 };632 ui = {633- # jj splits puts the cursor in a f**** position, we need $line to restore 634+ # jj splits puts the cursor in a f**** position, we need $line to restore635 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes636- editor = ["nvim" "+$line"];637+ editor = [638+ "nvim"639+ "+$line"640+ ];641 default-command = "status";642 merge-editor = "nvim";643 # Enable pagination for commands that support it (default)644diff --git a/hm/profiles/teto-desktop/programs/neovim.nix b/hm/profiles/teto-desktop/programs/neovim.nix645index 90413e9..ce5e554 100644646--- a/hm/profiles/teto-desktop/programs/neovim.nix647+++ b/hm/profiles/teto-desktop/programs/neovim.nix648@@ -246,7 +246,7 @@ let649 fswatch # better file watching starting with 0.10650 # go # for gitlab.nvim, we can probably ditch it afterwards651 652- lemminx # 653+ lemminx654 luajitPackages.luacheck655 656 luau-lsp657diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix658index be52e45..f9d09d8 100644659--- a/hm/profiles/teto-desktop/programs/rofi.nix660+++ b/hm/profiles/teto-desktop/programs/rofi.nix661@@ -37,8 +37,8 @@662 663 location = "center";664 modes = [665- # modes: [ combi ];666- # combi-modes: [ window, drun, run ];667+ # modes: [ combi ];668+ # combi-modes: [ window, drun, run ];669 670 ];671 672diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix673index 0dad1af..11dd2ad 100644674--- a/hm/profiles/teto-desktop/xdg/default.nix675+++ b/hm/profiles/teto-desktop/xdg/default.nix676@@ -101,12 +101,12 @@677 "bash/bashrc".text = ''678 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"679 source "$script_dir/manual.sh"680- ''681- # check if flyline defined too ?682- + lib.optionalString osConfig.programs.flyline.enable '' 683- source "$script_dir/flyline.sh"684+ ''685+ # check if flyline defined too ?686+ + lib.optionalString osConfig.programs.flyline.enable ''687+ source "$script_dir/flyline.sh"688 689- '';690+ '';691 692 "nvim/lua/generated-by-nix.lua" =693 let694diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix695index 4e65ba3..401717a 100644696--- a/hosts/jedha/default.nix697+++ b/hosts/jedha/default.nix698@@ -91,12 +91,20 @@ in699 # Upmpdcli's local-library server needs both discovery and HTTP access.700 networking.firewall = lib.mkIf config.services.upmpdcli.enable {701 allowedUDPPorts = [ 1900 ];702- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];703+ allowedTCPPorts = with config.services.upmpdcli.configuration; [704+ upnpport705+ uprclport706+ ];707 };708 709 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {710 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.711- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];712+ path = [713+ pkgs.recoll714+ pkgs.python3715+ pkgs.openssl716+ pkgs.diffutils717+ ];718 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];719 };720 721diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix722index babb3bb..861919d 100644723--- a/hosts/jedha/home-manager/users/teto/default.nix724+++ b/hosts/jedha/home-manager/users/teto/default.nix725@@ -104,7 +104,6 @@ in726 btop-cuda # for jedha727 brush # a rust implementation of bash728 729-730 # creates conflicts since it brings python and several executables731 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService732 733@@ -147,9 +146,9 @@ in734 # bridge-utils# pour brctl735 # vscode-css-languageserver # to showcase 'cssls' lsp server736 737- rura # to build shell pipelines738+ rura # to build shell pipelines739 # termusic # terminal music740- 741+742 ];743 744 package-sets = {745diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix746index 3378a39..9ce7079 100644747--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix748+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix749@@ -1,36 +1,34 @@750 { pkgs, lib, ... }:751 {752 753-754 enable = true;755 756 # github:utensils/mcp-nixos757- servers = 758- {759-760- nixos = {761- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";762- };763-764- # https://github.com/homeassistant-ai/ha-mcp765- ha-mcp = {766-767- command = "${lib.getExe pkgs.ha-mcp}";768-769- };770-771- # everything = {772- # command = "npx";773- # args = [ "-y" "@modelcontextprotocol/server-everything" ];774- # };775- # context7 = {776- # url = "https://mcp.context7.com/mcp";777- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";778- # };779- # codeberg = {780- # command = "/path/to/forgejo-mcp";781- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];782- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";783- # };784- };785+ servers = {786+787+ nixos = {788+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";789+ };790+791+ # https://github.com/homeassistant-ai/ha-mcp792+ ha-mcp = {793+794+ command = "${lib.getExe pkgs.ha-mcp}";795+796+ };797+798+ # everything = {799+ # command = "npx";800+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];801+ # };802+ # context7 = {803+ # url = "https://mcp.context7.com/mcp";804+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";805+ # };806+ # codeberg = {807+ # command = "/path/to/forgejo-mcp";808+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];809+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";810+ # };811+ };812 }813diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix814index 083732e..09017c2 100644815--- a/hosts/jedha/services/avahi.nix816+++ b/hosts/jedha/services/avahi.nix817@@ -13,7 +13,6 @@818 819 debug = true;820 821-822 # allowInterfaces = [823 # "wlp10s0"824 # ];825@@ -30,13 +29,12 @@826 };827 828 publish = {829- disable-publishing = false;830- disable-user-service-publishing = false;831- publish-addresses = true;832- };833-834+ disable-publishing = false;835+ disable-user-service-publishing = false;836+ publish-addresses = true;837 };838 839+ };840 841 nssmdns4 = true;842 # publish = {843diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix844index 7f3f4aa..f62f7ed 100644845--- a/hosts/jedha/services/minidlna.nix846+++ b/hosts/jedha/services/minidlna.nix847@@ -7,7 +7,6 @@848 # announceInterval = 60;849 openFirewall = true;850 851-852 # there are udp errors when it binds to wireguard network ?853 854 settings = {855@@ -16,9 +15,9 @@856 friendly_name = "jedha";857 # inotify = "yes";858 log_level = "warn";859- media_dir = [ 860+ media_dir = [861 # can be prefixed with V/A, to filter audio/video862- "/mnt/ext/music" 863+ "/mnt/ext/music"864 ];865 inotify = "yes";866 # db_dir =867diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix868index 28cc3b4..1d1609c 100644869--- a/hosts/jedha/services/opentelemetry-collector.nix870+++ b/hosts/jedha/services/opentelemetry-collector.nix871@@ -1,23 +1,22 @@872 {873 874-875 enable = true;876 877 settings =878-let879- port = 4318;880-in881+ let882+ port = 4318;883+ in884 {885- exporters.debug.verbosity = "detailed";886- receivers.otlp.protocols = {887- http.endpoint = "0.0.0.0:${toString port}";888- };889- service = {890- pipelines.logs = {891- receivers = [ "otlp" ];892- exporters = [ "debug" ];893- };894- };895+ exporters.debug.verbosity = "detailed";896+ receivers.otlp.protocols = {897+ http.endpoint = "0.0.0.0:${toString port}";898+ };899+ service = {900+ pipelines.logs = {901+ receivers = [ "otlp" ];902+ exporters = [ "debug" ];903+ };904+ };905 906- };907+ };908 }909diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix910index ef04f30..390f091 100644911--- a/hosts/jedha/services/upmpdcli.nix912+++ b/hosts/jedha/services/upmpdcli.nix913@@ -1,12 +1,12 @@914 /*915-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 916- should change playback if rmpd and upmpdcli are controlling the same MPD instance917- 918- • 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.919-• 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.920+ 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, it921+ should change playback if rmpd and upmpdcli are controlling the same MPD instance922 923-mpd now has a plugin that can play music from upnp server 924-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction925+ • 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.926+ • 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.927+928+ mpd now has a plugin that can play music from upnp server929+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction930 */931 932 { pkgs, lib, ... }:933@@ -44,7 +44,7 @@ in934 mpdport = 6600;935 # try to see if I can control it myself936 ownqueue = 0;937- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 938+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo939 # control the playlist. The client can disconnect after playlist was created940 openhome = 0;941 upnpav = 1;942diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix943index 59d7129..e0cab47 100644944--- a/hosts/jedha/systemd.nix945+++ b/hosts/jedha/systemd.nix946@@ -34,61 +34,60 @@ in947 })948 # disabled because ha-mcp broken949 (lib.mkIf false {950- ha-mcp = {951- description = "Home Assistant MCP server";952- wantedBy = [ "multi-user.target" ];953- wants = [ "network-online.target" ];954- after = [ "network-online.target" ];955- environment = {956- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";957- HOME = "/var/lib/ha-mcp";958- MCP_HOST = "127.0.0.1";959- MCP_PORT = "8086";960- };961- serviceConfig = {962- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";963- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.964- EnvironmentFile = "/var/lib/ha-mcp/environment";965- DynamicUser = true;966- StateDirectory = "ha-mcp";967- WorkingDirectory = "/var/lib/ha-mcp";968- Restart = "on-failure";969- RestartSec = 5;970- UMask = "0077";971- };972+ ha-mcp = {973+ description = "Home Assistant MCP server";974+ wantedBy = [ "multi-user.target" ];975+ wants = [ "network-online.target" ];976+ after = [ "network-online.target" ];977+ environment = {978+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";979+ HOME = "/var/lib/ha-mcp";980+ MCP_HOST = "127.0.0.1";981+ MCP_PORT = "8086";982 };983+ serviceConfig = {984+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";985+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.986+ EnvironmentFile = "/var/lib/ha-mcp/environment";987+ DynamicUser = true;988+ StateDirectory = "ha-mcp";989+ WorkingDirectory = "/var/lib/ha-mcp";990+ Restart = "on-failure";991+ RestartSec = 5;992+ UMask = "0077";993+ };994+ };995 996- # copied from https://github.com/NixOS/nixpkgs/pull/544252997- # lib.recursiveUpdate slib.systemd.serviceDefaults {998- speech-to-phrase = {999- # after = [ "home-assistant.service" ];1000- script = lib.concatStringsSep " " [1001- (lib.getExe pkgs.speech-to-phrase)1002- "--models-dir"1003- "\"$STATE_DIRECTORY/models\""1004- "--train-dir"1005- "\"$STATE_DIRECTORY/train\""1006- # "--custom-sentences-dir" ""1007- "--uri 'tcp://127.0.0.1:10400'"1008- "--hass-websocket-uri"1009- "ws://${hassHost}:${toString hassPort}/api/websocket"1010- "--retrain-on-start"1011- "--retrain-on-connect"1012- "--retrain-seconds"1013- "300"1014- ];1015- serviceConfig = {1016- #1017- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1018- Group = "speech-to-phrase";1019- StateDirectory = "speech-to-phrase";1020- User = "speech-to-phrase";1021- # TODO: hardening1022- };1023+ # copied from https://github.com/NixOS/nixpkgs/pull/5442521024+ # lib.recursiveUpdate slib.systemd.serviceDefaults {1025+ speech-to-phrase = {1026+ # after = [ "home-assistant.service" ];1027+ script = lib.concatStringsSep " " [1028+ (lib.getExe pkgs.speech-to-phrase)1029+ "--models-dir"1030+ "\"$STATE_DIRECTORY/models\""1031+ "--train-dir"1032+ "\"$STATE_DIRECTORY/train\""1033+ # "--custom-sentences-dir" ""1034+ "--uri 'tcp://127.0.0.1:10400'"1035+ "--hass-websocket-uri"1036+ "ws://${hassHost}:${toString hassPort}/api/websocket"1037+ "--retrain-on-start"1038+ "--retrain-on-connect"1039+ "--retrain-seconds"1040+ "300"1041+ ];1042+ serviceConfig = {1043+ #1044+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1045+ Group = "speech-to-phrase";1046+ StateDirectory = "speech-to-phrase";1047+ User = "speech-to-phrase";1048+ # TODO: hardening1049 };1050+ };1051 1052- }1053- )1054+ })1055 ];1056 1057 # just to test1058diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1059index 5a92154..337beb9 1006441060--- a/hosts/router/services/home-assistant.nix1061+++ b/hosts/router/services/home-assistant.nix1062@@ -34,7 +34,7 @@ in1063 ];1064 1065 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1066-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1067+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1068 easy-floorplan1069 button-card1070 # home-assistant-custom-lovelace-modules.sankey-chart1071@@ -68,8 +68,6 @@ in1072 material-you-theme1073 ];1074 1075-1076-1077 blueprints = {1078 automation = [1079 # ATTENTION: The name should contain the extension .yaml1080diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1081index a81a7ef..928f21c 1006441082--- a/hosts/tatooine/default.nix1083+++ b/hosts/tatooine/default.nix1084@@ -132,7 +132,6 @@ in1085 enableRedistributableFirmware = true;1086 sane.enable = true;1087 1088-1089 # High quality BT calls1090 # https://nixos.wiki/wiki/Bluetooth1091 bluetooth = {1092diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1093index 6210293..5c3a889 1006441094--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1095+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1096@@ -1,9 +1,9 @@1097-{ pkgs, ...}:1098+{ pkgs, ... }:1099 {1100 1101- scripts = [1102- # as python1103- # pkgs.mpvDLNA1104- ];1105+ scripts = [1106+ # as python1107+ # pkgs.mpvDLNA1108+ ];1109 1110 }1111diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1112index adc82dd..1724c86 1006441113--- a/hosts/tatooine/services/adguardhome.nix1114+++ b/hosts/tatooine/services/adguardhome.nix1115@@ -10,7 +10,7 @@1116 settings = {1117 1118 # http (since v0.107.36): Web interface configuration.1119- # address: Web interface IP address with port to listen on 1120+ # address: Web interface IP address with port to listen on1121 http.address = "127.0.0.1:8084";1122 1123 };1124diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1125index dd02f3f..f14c221 1006441126--- a/hosts/tatooine/services/avahi.nix1127+++ b/hosts/tatooine/services/avahi.nix1128@@ -21,19 +21,19 @@1129 1130 settings = {1131 publish = {1132- publish-domain = true;1133- disable-publishing = false;1134- disable-user-service-publishing = false;1135- publish-addresses = true;1136- };1137+ publish-domain = true;1138+ disable-publishing = false;1139+ disable-user-service-publishing = false;1140+ publish-addresses = true;1141+ };1142 1143 server = {1144 use-ipv6 = false; # bug with multiple hostnames1145- # # 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.1146- # # secrets.jedha.hostname;1147- # # host-name = "jedha";1148- # # enable-dbus = true;1149- #1150+ # # 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.1151+ # # secrets.jedha.hostname;1152+ # # host-name = "jedha";1153+ # # enable-dbus = true;1154+ #1155 };1156 };1157 1158diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1159index 4cd2e1d..a9725d3 1006441160--- a/hosts/tatooine/services/mediatomb.nix1161+++ b/hosts/tatooine/services/mediatomb.nix1162@@ -1,6 +1,6 @@1163 # it's gerbera in fact1164 { pkgs, ... }:1165-let 1166+let1167 # <mappings>1168 # freeboxRevolution6Mappings = ''1169 # <extension-mimetype ignore-unknown="no">1170@@ -68,78 +68,77 @@ in1171 1172 # to avoid having to rewire the permissions1173 group = "minidlna";1174- interface="wlp2s0";1175+ interface = "wlp2s0";1176 # we should use subsitute for the VLC/ffmpedg commands1177-# postInstall = ''1178-# substitute $src/config.in $out/config \1179-# --replace-fail '@X@' "$X"1180-# '';1181-#1182-# For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1183-transcoding = ''<transcoding enabled="yes" >1184- <profile name="freebox-h264" enabled="yes" type="external">1185- <mimetype>video/mpeg</mimetype>1186- <accept-url>no</accept-url>1187- <first-resource>yes</first-resource>1188- <accept-ogg-theora>no</accept-ogg-theora>1189- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1190- arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1191- <buffer size="14400000" chunk-size="512000" fill-size="120000" />1192- </profile>1193- <profile name="freebox-aac" enabled="yes" type="external">1194- <mimetype>audio/aac</mimetype>1195- <accept-url>no</accept-url>1196- <first-resource>yes</first-resource>1197- <accept-ogg-theora>no</accept-ogg-theora>1198- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1199- arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1200- <buffer size="1048576" chunk-size="131072" fill-size="262144" />1201- </profile>1202- <mimetype-profile-mappings>1203- <!-- enable freebox ones -->1204- <transcode mimetype="video/x-flv" using="freebox-h264" />1205- <transcode mimetype="application/ogg" using="freebox-h264" />1206- <transcode mimetype="video/x-matroska" using="freebox-h264" />1207- <transcode mimetype="video/x-msvideo" using="freebox-h264" />1208- <transcode mimetype="audio/ogg" using="freebox-aac" />1209- </mimetype-profile-mappings>1210- </transcoding>1211- '';1212-1213+ # postInstall = ''1214+ # substitute $src/config.in $out/config \1215+ # --replace-fail '@X@' "$X"1216+ # '';1217+ #1218+ # For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1219+ transcoding = ''1220+ <transcoding enabled="yes" >1221+ <profile name="freebox-h264" enabled="yes" type="external">1222+ <mimetype>video/mpeg</mimetype>1223+ <accept-url>no</accept-url>1224+ <first-resource>yes</first-resource>1225+ <accept-ogg-theora>no</accept-ogg-theora>1226+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1227+ arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1228+ <buffer size="14400000" chunk-size="512000" fill-size="120000" />1229+ </profile>1230+ <profile name="freebox-aac" enabled="yes" type="external">1231+ <mimetype>audio/aac</mimetype>1232+ <accept-url>no</accept-url>1233+ <first-resource>yes</first-resource>1234+ <accept-ogg-theora>no</accept-ogg-theora>1235+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1236+ arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1237+ <buffer size="1048576" chunk-size="131072" fill-size="262144" />1238+ </profile>1239+ <mimetype-profile-mappings>1240+ <!-- enable freebox ones -->1241+ <transcode mimetype="video/x-flv" using="freebox-h264" />1242+ <transcode mimetype="application/ogg" using="freebox-h264" />1243+ <transcode mimetype="video/x-matroska" using="freebox-h264" />1244+ <transcode mimetype="video/x-msvideo" using="freebox-h264" />1245+ <transcode mimetype="audio/ogg" using="freebox-aac" />1246+ </mimetype-profile-mappings>1247+ </transcoding>1248+ '';1249 1250-# from-file="${./transcoding.xml}" />'';1251+ # from-file="${./transcoding.xml}" />'';1252 1253 mappings = ''<mappings from-file="${./mappings.xml}" />'';1254 1255-1256-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1257-# # Les codecs vidéos :1258-# # H.264 ;1259-# # MPEG2 ;1260-# # MS-MPEG4 (DivX 3) ;1261-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1262-# # VC1.1263-# #1264-# # Les codecs audios :1265-# # en decode :1266-# # AAC, ;1267-# # M Dolby Digital (downmix 2.0) ;1268-# # Dolby Digital Plus(downmix 2.0)1269-# # DTS core (downmix 2.0) ;1270-# # FLAC ;1271-# # MP2 ;1272-# # MP3 ;1273-# # Vorbis.1274-# #1275-# # en passthrough (via la sortie HDMI) :1276-# # AAC ;1277-# # Dolby Digital ;1278-# # Dolby Digital Plus ;1279-# # Dolby Digital TrueHD ;1280-# # DTS ;1281-# # DTS-HD (MA et HRA). 1282-# # d'apres1283-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1284+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1285+ # # Les codecs vidéos :1286+ # # H.264 ;1287+ # # MPEG2 ;1288+ # # MS-MPEG4 (DivX 3) ;1289+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1290+ # # VC1.1291+ # #1292+ # # Les codecs audios :1293+ # # en decode :1294+ # # AAC, ;1295+ # # M Dolby Digital (downmix 2.0) ;1296+ # # Dolby Digital Plus(downmix 2.0)1297+ # # DTS core (downmix 2.0) ;1298+ # # FLAC ;1299+ # # MP2 ;1300+ # # MP3 ;1301+ # # Vorbis.1302+ # #1303+ # # en passthrough (via la sortie HDMI) :1304+ # # AAC ;1305+ # # Dolby Digital ;1306+ # # Dolby Digital Plus ;1307+ # # Dolby Digital TrueHD ;1308+ # # DTS ;1309+ # # DTS-HD (MA et HRA).1310+ # # d'apres1311+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1312 1313 # 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.1314 #1315@@ -178,19 +177,18 @@ transcoding = ''<transcoding enabled="yes" >1316 1317 # 49152 already used by mdp1318 port = 49153;1319- mediaDirectories= [1320- {1321- hidden-files = false;1322- path = "/home/teto/videos";1323- recursive = true;1324- }1325- {1326- hidden-files = false;1327- path = "/home/teto/Music";1328- recursive = true;1329- }1330-1331- ];1332+ mediaDirectories = [1333+ {1334+ hidden-files = false;1335+ path = "/home/teto/videos";1336+ recursive = true;1337+ }1338+ {1339+ hidden-files = false;1340+ path = "/home/teto/Music";1341+ recursive = true;1342+ }1343 1344+ ];1345 1346 }1347diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1348index 5a3e20e..e9c8039 1006441349--- a/hosts/tatooine/services/minidlna.nix1350+++ b/hosts/tatooine/services/minidlna.nix1351@@ -13,7 +13,6 @@1352 # to receive sssdp answers1353 openFirewall = true;1354 1355-1356 # there are udp errors when it binds to wireguard network ?1357 1358 settings = {1359@@ -22,7 +21,7 @@1360 friendly_name = "tatooine";1361 # inotify = "yes";1362 log_level = "warn";1363- media_dir = [ 1364+ media_dir = [1365 # can be prefixed with V/A, to filter audio/video1366 "/home/teto/videos"1367 "/home/teto/Music"1368@@ -30,11 +29,9 @@1369 1370 # Network interface to bind (optional; self-discovers if commented out)1371 # to avoid erros on wireguard if1372- network_interface="wlp2s0"; 1373+ network_interface = "wlp2s0";1374 # to remove warnings1375 inotify = "no";1376 # db_dir =1377 };1378 }1379-1380-1381diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1382index 0c082b6..58d9c85 1006441383--- a/hosts/tatooine/services/pulseaudio.nix1384+++ b/hosts/tatooine/services/pulseaudio.nix1385@@ -1,9 +1,8 @@1386 { pkgs, ... }:1387- # cant be enabled with pipewire1388- {1389- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1390- enable = false;1391- # for ad2p profle ?1392- package = pkgs.pulseaudioFull;1393- }1394-1395+# cant be enabled with pipewire1396+{1397+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1398+ enable = false;1399+ # for ad2p profle ?1400+ package = pkgs.pulseaudioFull;1401+}1402diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1403index e158259..4b6709c 1006441404--- a/hosts/tatooine/tetos.nix1405+++ b/hosts/tatooine/tetos.nix1406@@ -9,7 +9,8 @@1407 {1408 allowUpnp = true;1409 1410-} // lib.optionalAttrs withSecrets {1411+}1412+// lib.optionalAttrs withSecrets {1413 wireguard = {1414 id = 2;1415 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1416@@ -19,4 +20,4 @@1417 flakeSelf.nixosConfigurations.neotokyo1418 ];1419 };1420-} 1421+}1422diff --git a/hosts/wsl/default.nix b/hosts/wsl/default.nix1423index a1a38c4..cd78638 1006441424--- a/hosts/wsl/default.nix1425+++ b/hosts/wsl/default.nix1426@@ -64,7 +64,6 @@1427 home.stateVersion = "26.05";1428 };1429 1430-1431 programs.neovim = {1432 1433 enableRocks = true;1434diff --git a/hosts/wsl/hm-teto.nix b/hosts/wsl/hm-teto.nix1435index f92b079..4d513ac 1006441436--- a/hosts/wsl/hm-teto.nix1437+++ b/hosts/wsl/hm-teto.nix1438@@ -1,27 +1,32 @@1439-{ config, lib, pkgs, ... }:1440 {1441- programs.git = {1442- enable = true;1443- includes = [1444+ config,1445+ lib,1446+ pkgs,1447+ ...1448+}:1449+{1450+ programs.git = {1451+ enable = true;1452+ includes = [1453+1454+ { path = config.xdg.configHome + "/git/manual.gitconfig"; }1455+ ];1456 1457- { path = config.xdg.configHome + "/git/manual.gitconfig"; }1458- ];1459+ package = pkgs.gitFull; # to get send-email1460 1461- package = pkgs.gitFull; # to get send-email1462+ settings = {1463+ # user = {1464+ # email = lib.mkForce "886074+teto@users.noreply.github.com";1465+ # };1466+ user = {1467+ # mkForce due to nova1468+ name = "Matthieu C.";1469+ email = lib.mkForce "886074+teto@users.noreply.github.com";1470+ };1471 1472- settings = {1473- # user = {1474- # email = lib.mkForce "886074+teto@users.noreply.github.com";1475- # };1476- user = {1477- # mkForce due to nova1478- name = "Matthieu C.";1479- email = lib.mkForce "886074+teto@users.noreply.github.com";1480+ # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1481+ credential.helper = "store";1482 };1483 1484- # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1485- credential.helper = "store";1486 };1487-1488-};1489 }1490diff --git a/justfile b/justfile1491index 36b0eaf..c6478cc 1006441492--- a/justfile1493+++ b/justfile1494@@ -65,12 +65,12 @@ bootstrap-vps target:1495 --debug1496 1497 bump-meli:1498- nix-update -F --version=branch=master meli-teto1499+ nix-update -F --version=branch=master meli-teto1500 1501 # urn:schemas-upnp-org:device:MediaRenderer:11502 discover-upnp-renderers:1503- gssdp-discover --timeout=5 \1504- --target=urn:schemas-upnp-org:device:MediaRenderer:11505+ gssdp-discover --timeout=5 \1506+ --target=urn:schemas-upnp-org:device:MediaRenderer:11507 1508 # just to save the command1509 1510@@ -326,7 +326,6 @@ inspect-current-generation:1511 flash-ulanzi-tc001:1512 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1513 1514-1515 # check dlna servers on the network1516 scan-upnp:1517 nmap --script=broadcast-upnp-info 192.168.0.0/161518diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1519index c73a06e..5448ba8 1006441520--- a/nixos/modules/minidlna.nix1521+++ b/nixos/modules/minidlna.nix1522@@ -1,7 +1,8 @@1523 { config, lib, ... }:1524 let1525 cfg = config.services.minidlna;1526- mediaDirs = map (dir:1527+ mediaDirs = map (1528+ dir:1529 let1530 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1531 in1532diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1533index dd25744..86ddd25 1006441534--- a/nixos/modules/upnp.nix1535+++ b/nixos/modules/upnp.nix1536@@ -1,7 +1,8 @@1537 { config, lib, ... }:1538 let1539- cfg = config.programs.upnp;1540-in {1541+ cfg = config.programs.upnp;1542+in1543+{1544 options = {1545 programs.upnp = {1546 enable = lib.mkEnableOption "upnp";1547@@ -17,13 +18,12 @@ in {1548 config = lib.mkIf cfg.enable {1549 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1550 1551- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];1552-# # SSDP multicast discovery port (UDP)1553-# sudo ufw allow 1900/udp comment 'DLNA SSDP'1554-#1555-# # MiniDLNA HTTP streaming & web status port (TCP)1556-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1557+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];1558+ # # SSDP multicast discovery port (UDP)1559+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'1560+ #1561+ # # MiniDLNA HTTP streaming & web status port (TCP)1562+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1563 1564 };1565 }1566-1567diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1568index 3820510..e4bca1c 1006441569--- a/nixos/profiles/adguardhome.nix1570+++ b/nixos/profiles/adguardhome.nix1571@@ -9,7 +9,6 @@1572 # mutableSettings = true;1573 # openFirewall = false;1574 1575-1576 # mutableSettings = true;1577 # extraArgs = [];1578 1579diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1580index 9ceeefc..3835a79 1006441581--- a/nixos/profiles/avahi.nix1582+++ b/nixos/profiles/avahi.nix1583@@ -1,9 +1,6 @@1584 /*1585-1586-guide:1587-avahi-browse-domains 1588-1589-1590+ guide:1591+ avahi-browse-domains1592 */1593 {1594 config,1595@@ -23,7 +20,7 @@ avahi-browse-domains1596 1597 server = {1598 1599- # List of non-local DNS domains to be browsed.1600+ # List of non-local DNS domains to be browsed.1601 browse-domains = [1602 # "0pointer.de"1603 # "zeroconf.org"1604diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix1605index db4eb98..38e8c16 1006441606--- a/nixos/profiles/desktop/default.nix1607+++ b/nixos/profiles/desktop/default.nix1608@@ -2,7 +2,6 @@1609 {1610 fonts.enableDefaultPackages = true;1611 1612-1613 console = {1614 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131281615 earlySetup = true;1616diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1617index 3f9282d..9039e39 1006441618--- a/nixos/profiles/desktop/programs/flyline.nix1619+++ b/nixos/profiles/desktop/programs/flyline.nix1620@@ -1,5 +1,5 @@1621 {1622 enable = true;1623- # 1624+ #1625 # package = ;1626 }1627diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix1628index daadd3f..d3fc61c 1006441629--- a/nixos/profiles/desktop/users/default.nix1630+++ b/nixos/profiles/desktop/users/default.nix1631@@ -1,3 +1,3 @@1632 {1633- groups.minidlna = {};1634+ groups.minidlna = { };1635 }1636diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix1637index aac0d91..995a67c 1006441638--- a/nixos/profiles/home-assistant.nix1639+++ b/nixos/profiles/home-assistant.nix1640@@ -17,13 +17,12 @@1641 # # "deconz" # interface for zigbee conbee II1642 # ];1643 1644-1645 package = pkgs.home-assistant.override {1646 1647 extraPackages = ps: [1648 ps.psycopg21649- # disabled because of ? 1650- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 1651+ # disabled because of ?1652+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await1653 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619081654 # # enables several default components1655 # ps.hass-nabucasa # to be able to login to cloud1656@@ -74,7 +73,7 @@1657 assist_pipeline = { };1658 # bluetooth = {}; # NO1659 # # enables several default components. DO NOT REMOVE (?)1660- default_config = { }; 1661+ default_config = { };1662 # map = {}; # show a local map1663 network = { };1664 homeassistant = {1665diff --git a/nixos/profiles/pixiecore.nix b/nixos/profiles/pixiecore.nix1666index c6a5355..141a4f8 1006441667--- a/nixos/profiles/pixiecore.nix1668+++ b/nixos/profiles/pixiecore.nix1669@@ -117,7 +117,7 @@ in1670 # one of “api”, “boot”, “quick”1671 package = pkgs.pixiecore-arm64;1672 mode = "boot";1673-# enp1s0f01674+ # enp1s0f01675 # extraArguments = ;1676 # listen1677 # cmdLine = ;