nixbot

builds

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

1treefmt v2.6.0traversed 1636 files2emitted 882 files for processing3formatted 882 files (48 changed) in 1.498s4 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/flyline.nix13 M hm/modules/kitty.nix14 M hm/modules/microsoft.nix15 M hm/modules/package-sets.nix16 M hm/profiles/teto-desktop/default.nix17 M hm/profiles/teto-desktop/programs/codex.nix18 M hm/profiles/teto-desktop/programs/firefox.nix19 M hm/profiles/teto-desktop/programs/jujutsu.nix20 M hm/profiles/teto-desktop/programs/neovim.nix21 M hm/profiles/teto-desktop/programs/rofi.nix22 M hm/profiles/teto-desktop/xdg/default.nix23 M hosts/jedha/default.nix24 M hosts/jedha/home-manager/users/teto/default.nix25 M hosts/jedha/home-manager/users/teto/programs/mcp.nix26 M hosts/jedha/services/avahi.nix27 M hosts/jedha/services/minidlna.nix28 M hosts/jedha/services/opentelemetry-collector.nix29 M hosts/jedha/services/upmpdcli.nix30 M hosts/jedha/systemd.nix31 M hosts/router/services/home-assistant.nix32 M hosts/tatooine/default.nix33 M hosts/tatooine/home-manager/users/teto/programs/mpv.nix34 M hosts/tatooine/services/adguardhome.nix35 M hosts/tatooine/services/avahi.nix36 M hosts/tatooine/services/mediatomb.nix37 M hosts/tatooine/services/minidlna.nix38 M hosts/tatooine/services/pulseaudio.nix39 M hosts/tatooine/tetos.nix40 M hosts/wsl/hm-teto.nix41 M hosts/wsl/llamacpp.nix42 M justfile43 M nixos/modules/minidlna.nix44 M nixos/modules/upnp.nix45 M nixos/profiles/adguardhome.nix46 M nixos/profiles/avahi.nix47 M nixos/profiles/desktop/default.nix48 M nixos/profiles/desktop/programs/flyline.nix49 M nixos/profiles/desktop/users/default.nix50 M nixos/profiles/home-assistant.nix51 M nixos/profiles/pixiecore.nix52diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix53index a4a9a74..4adedee 10064454--- a/by-name/ko/kodi-tetos/package.nix55+++ b/by-name/ko/kodi-tetos/package.nix56@@ -1,11 +1,13 @@57 { kodi, makeWrapper }:58 59 let60- kodiWithPackages = kodi.withPackages (p: with p; [61- jellyfin62- # pvr-iptvsimple63- vfs-sftp64- ]);65+ kodiWithPackages = kodi.withPackages (66+ p: with p; [67+ jellyfin68+ # pvr-iptvsimple69+ vfs-sftp70+ ]71+ );72 in73 kodiWithPackages.overrideAttrs (oldAttrs: {74 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];75diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix76index 9442d75..a9d8692 10064477--- a/by-name/ze/zeal-teto/package.nix78+++ b/by-name/ze/zeal-teto/package.nix79@@ -1,10 +1,9 @@80 { zeal }:81 zeal.overrideAttrs (oa: {82 83- # export QMLSCENE_DEVICE=software84- postInstall = ''85- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software86- '';87-88- })89+ # export QMLSCENE_DEVICE=software90+ postInstall = ''91+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software92+ '';93 94+})95diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh96index c2b1a84..6b647be 10064497--- a/config/bash/flyline.sh98+++ b/config/bash/flyline.sh99@@ -10,12 +10,11 @@ flyline history --backend flyline100 # it flickers101 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 2102 103-# Codex: change 104+# Codex: change105 flyline set-agent-mode \106- --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. " \107- --trigger-prefix ': ' \108- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'109-110+ --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. " \111+ --trigger-prefix ': ' \112+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'113 114 # Antigravity:115 # flyline set-agent-mode \116@@ -26,7 +25,6 @@ flyline set-agent-mode \117 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"118 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR119 120-121 # precmd_functions+=(set_ps1)122 # Now you can use this animation in your prompt. For example:123 PS1='\u@\h:\w MOUSE_MODE \n$ '124@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''125 126 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽127 128-129 # Experiment with higher frame rates for smooth transitions:130 # flyline create-prompt-widget animation --name "john" --fps 24 \131 # '\e[38;2;255;0;0m\u' \132@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''133 # '\e[38;2;255;0;63m\u' \134 # '\e[38;2;255;0;47m\u' \135 # '\e[38;2;255;0;31m\u' \136-# '\e[38;2;255;0;15m\u' 137+# '\e[38;2;255;0;15m\u'138diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua139index 85acdb0..9d9296e 100644140--- a/config/nvim/after/ftplugin/Avante.lua141+++ b/config/nvim/after/ftplugin/Avante.lua142@@ -14,7 +14,6 @@ vim.opt.showbreak = ''143 -- - update_content144 -- - on_state_change145 146-147 -- local sidebar = require('avante').get()148 149 -- vim.api.nvim_create_autocmd('WinEnter', {150@@ -29,8 +28,8 @@ vim.opt.showbreak = ''151 -- vim.wo.cursorline = false152 vim.wo.foldcolumn = '3' -- auto153 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.154--- could work well, react onto 155-vim.wo.foldmethod = "expr"156+-- could work well, react onto157+vim.wo.foldmethod = 'expr'158 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'159 160 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer161diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua162index b321120..bc9e2c6 100644163--- a/config/nvim/after/ftplugin/RikaiPopup.lua164+++ b/config/nvim/after/ftplugin/RikaiPopup.lua165@@ -3,10 +3,9 @@166 vim.keymap.set('n', '<localleader>s', function()167 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha168 169- vim.fn.jobstart({ 170- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })171-172+ vim.fn.jobstart({173+ 'mpv',174+ '--no-video',175+ vim.fn.expand('~/home/data/audio/notif1.wav'),176+ }, { detach = true })177 end, { buffer = true, desc = 'Play sound' })178-179-180-181diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua182index 1aed1c2..aecf410 100644183--- a/config/nvim/lua/init-manual.lua184+++ b/config/nvim/lua/init-manual.lua185@@ -949,8 +949,8 @@ end, { desc = 'Go to file, create if missing' })186 -- Outside of the fork it kills the plugin so careful187 -- normally overriden by setup call188 vim.g.avante = {189- -- -- print error messages, set to false to avoid issues with inspect_ai190- debug = false, 191+ -- -- print error messages, set to false to avoid issues with inspect_ai192+ debug = false,193 -- log_level =194 log_level = vim.log.levels.DEBUG,195 196@@ -1090,7 +1090,7 @@ vim.g.avante = {197 windows = {198 position = 'right',199 fillchars = 'eob: ',200- -- wrap = false,201+ -- wrap = false,202 -- TODO remove203 sidebar_header = {204 enabled = true, -- true, false to enable/disable the header205@@ -1355,8 +1355,8 @@ vim.api.nvim_create_autocmd({ 'User' }, {206 vim.notify('avante: LLM answered')207 -- Leave the event callback before closing all windows, including modified buffers.208 -- vim.schedule(function()209- -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua210- --211+ -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua212+ --213 -- vim.cmd('qall!')214 -- end)215 end,216@@ -1373,22 +1373,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {217 --218 -- ╰─219 220-221-vim.api.nvim_create_autocmd(222- 'PackChanged',223- {224+vim.api.nvim_create_autocmd('PackChanged', {225 callback = function(ev)226- local name, kind = ev.data.spec.name, ev.data.kind227- print("package name ", name)228- vim.print("spec ", ev.data.spec)229- -- vim.print("version ", ev.data.spec.version)230-231- -- print("package kind ", kind)232- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then233- -- -- Call `:AvanteBuild` to download prebuilt libraries234- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()235- -- end236- end237- }238-)239-240+ local name, kind = ev.data.spec.name, ev.data.kind241+ print('package name ', name)242+ vim.print('spec ', ev.data.spec)243+ -- vim.print("version ", ev.data.spec.version)244+245+ -- print("package kind ", kind)246+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then247+ -- -- Call `:AvanteBuild` to download prebuilt libraries248+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()249+ -- end250+ end,251+})252diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua253index ffcb08a..8b60a67 100644254--- a/config/nvim/lua/plugins/kitty-scrollback.lua255+++ b/config/nvim/lua/plugins/kitty-scrollback.lua256@@ -2,43 +2,43 @@257 -- if you want to create autocommands258 259 --260- -- myconfig = {261- -- kitty_get_text = {262- -- ansi = false,263- -- },264- -- },265- -- myfnconfig = function(kitty_data)266- -- return {267- -- kitty_get_text = {268- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',269- -- },270- -- }271- -- end,272+-- myconfig = {273+-- kitty_get_text = {274+-- ansi = false,275+-- },276+-- },277+-- myfnconfig = function(kitty_data)278+-- return {279+-- kitty_get_text = {280+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',281+-- },282+-- }283+-- end,284 require('kitty-scrollback').setup(285 -- global configuration286 {287- kitty_get_text = {288- -- boolean If true, the text will include the ANSI formatting escape codes for colors,289- ansi = true,290- extent = 'all',291- },292- -- scrollback_columns = 300,293- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external294- scrollback_tempfile = false,295- keymaps_enabled = false,296- close_after_yank = true,297- status_window = {298+ kitty_get_text = {299+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,300+ ansi = true,301+ extent = 'all',302+ },303+ -- scrollback_columns = 300,304+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external305+ scrollback_tempfile = false,306+ keymaps_enabled = false,307+ close_after_yank = true,308+ status_window = {309 310- style_simple = true, -- user may not have Nerd Fonts installed311- show_timer = true,312+ style_simple = true, -- user may not have Nerd Fonts installed313+ show_timer = true,314 315- autoclose = true,316- },317- paste_window = {318- -- yank_register = '',319- -- boolean? If true, the yank_register copies content to the paste window. If false, d320- -- -- isable yank to paste window321- -- yank_register_enabled = false,322- }323+ autoclose = true,324+ },325+ paste_window = {326+ -- yank_register = '',327+ -- boolean? If true, the yank_register copies content to the paste window. If false, d328+ -- -- isable yank to paste window329+ -- yank_register_enabled = false,330+ },331 }332 )333diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix334index e95570a..ae177f7 100644335--- a/hm/modules/audiocast.nix336+++ b/hm/modules/audiocast.nix337@@ -1,7 +1,13 @@338-{ config, lib, pkgs, ... }:339+{340+ config,341+ lib,342+ pkgs,343+ ...344+}:345 let346- cfg = config.services.audiocast;347-in {348+ cfg = config.services.audiocast;349+in350+{351 options = {352 services.audiocast = {353 enable = lib.mkEnableOption "audiocast-stream";354@@ -16,44 +22,43 @@ in {355 };356 config = lib.mkIf cfg.enable {357 358-359- # Renderer friendlyName to discover over SSDP360- # Hard-coded AVTransport control URL (skips SSDP discovery)361- # else we give url362- # ❯ yamaha discover363- # name host model udn364- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e365- # port 8082 Local HTTP port for the stream366- xdg.configFile."audiocast/config" = {367- enable = false;368- text = ''369- [audiocast]370- name = Espace Musical371- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)372- mode = app373- sink = audiocast374- sink_description = AudioCast (DLNA)375- '';376-};377-378- systemd.user.services.audiocast-stream = {379- Unit = {380- Description = "Stream PipeWire audio to a DLNA renderer";381- After = [382- "pipewire.service"383- "pipewire-pulse.service"384- ];385- Wants = [ "pipewire-pulse.service" ];386+ # Renderer friendlyName to discover over SSDP387+ # Hard-coded AVTransport control URL (skips SSDP discovery)388+ # else we give url389+ # ❯ yamaha discover390+ # name host model udn391+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e392+ # port 8082 Local HTTP port for the stream393+ xdg.configFile."audiocast/config" = {394+ enable = false;395+ text = ''396+ [audiocast]397+ name = Espace Musical398+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)399+ mode = app400+ sink = audiocast401+ sink_description = AudioCast (DLNA)402+ '';403 };404- Service = {405- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";406- Restart = "on-failure";407- # The renderer may be asleep or temporarily off the network. The408- # program exits when discovery fails, so retry without a tight loop.409- RestartSec = 30;410+411+ systemd.user.services.audiocast-stream = {412+ Unit = {413+ Description = "Stream PipeWire audio to a DLNA renderer";414+ After = [415+ "pipewire.service"416+ "pipewire-pulse.service"417+ ];418+ Wants = [ "pipewire-pulse.service" ];419+ };420+ Service = {421+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";422+ Restart = "on-failure";423+ # The renderer may be asleep or temporarily off the network. The424+ # program exits when discovery fails, so retry without a tight loop.425+ RestartSec = 30;426+ };427+ Install.WantedBy = [ "default.target" ];428 };429- Install.WantedBy = [ "default.target" ];430- };431 };432 433 }434diff --git a/hm/modules/flyline.nix b/hm/modules/flyline.nix435index 7381439..4065a82 100644436--- a/hm/modules/flyline.nix437+++ b/hm/modules/flyline.nix438@@ -1,8 +1,15 @@439-# 440-{ config, lib, pkgs, osConfig ? null, ... }:441+#442+{443+ config,444+ lib,445+ pkgs,446+ osConfig ? null,447+ ...448+}:449 let450- cfg = config.programs.flyline;451-in {452+ cfg = config.programs.flyline;453+in454+{455 options = {456 programs.flyline = {457 458@@ -37,6 +44,6 @@ in {459 flyline history --backend flyline460 source ${./config/bash/flyline.sh}461 462- '';463+ '';464 };465 }466diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix467index b6d495f..e7da295 100644468--- a/hm/modules/kitty.nix469+++ b/hm/modules/kitty.nix470@@ -54,7 +54,7 @@ in471 map kitty_mod+h kitty_scrollback_nvim ./tmp472 # Browse output of the last shell command in nvim473 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output474- '';475+ '';476 477 #478 # # Browse output of the last shell command in nvim479diff --git a/hm/modules/microsoft.nix b/hm/modules/microsoft.nix480index 218784e..da475a8 100644481--- a/hm/modules/microsoft.nix482+++ b/hm/modules/microsoft.nix483@@ -1,8 +1,14 @@484 # enable this module to work in a microsoft environment485-{ config, lib, pkgs, ... }:486+{487+ config,488+ lib,489+ pkgs,490+ ...491+}:492 let493- cfg = config.microsoft;494-in {495+ cfg = config.microsoft;496+in497+{498 options = {499 microsoft = {500 enable = lib.mkEnableOption "microsoft";501diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix502index 8d60438..e76a354 100644503--- a/hm/modules/package-sets.nix504+++ b/hm/modules/package-sets.nix505@@ -62,7 +62,6 @@ in506 507 };508 509-510 # this gets merged by default511 config = lib.mkMerge [512 {513@@ -115,7 +114,6 @@ in514 pkgs.blazingjj515 flakeSelf.inputs.jj-gh.packages.${system}.default516 517-518 # pkgs.gg-jj519 # pkgs.lazyjj520 # pkgs.jj-fzf521@@ -419,7 +417,6 @@ in522 lurk # a rust strace523 lsof # to see open files524 525-526 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship527 libossp_uuid # for the 'libuuid' executable528 529@@ -490,7 +487,6 @@ in530 531 # rainfrog # database exploration532 533-534 process-compose # docker-compose - like535 # rpl # to replace strings across files536 repgrep # replace matches found by rg537@@ -502,7 +498,7 @@ in538 tmux # when connecting via ssh539 trurl # used to parse url in the firefox-router executable540 universal-ctags # there are many different ctags, be careful !541- uv # to install python packages542+ uv # to install python packages543 unar # used to view archives by yazi (now using ouch ?)544 vifm545 viu # a console image viewer546@@ -697,7 +693,7 @@ in547 pkgs.tsukumi548 ];549 })550- (mkIf cfg.jellyfin {551+ (mkIf cfg.jellyfin {552 553 home.packages = [554 555@@ -708,13 +704,12 @@ in556 # pkgs.feishin # GUI557 # pkgs.jellycli # could not login :/558 559-560 # VIDEO compatible561 # - Jellyfin MPV Shim562 (ignoreBroken pkgs.tsukimi) # gtk+rust music player GUI563 pkgs.jellyfin-desktop564 pkgs.jellyfin-mpv-shim565- # jellyhaj # not upstreamed yet 566+ # jellyhaj # not upstreamed yet567 # fladder # nice GUI568 # jftui too minimalistic569 # pkgs.jellyflix # nice570diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix571index 5816c79..723f74e 100644572--- a/hm/profiles/teto-desktop/default.nix573+++ b/hm/profiles/teto-desktop/default.nix574@@ -113,7 +113,7 @@ in575 576 home.packages =577 with pkgs;578- let 579+ let580 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;581 582 # lux-cli-teto = lux-cli;583@@ -124,7 +124,7 @@ in584 in585 586 [587- kodi-teto 588+ kodi-teto589 codex # openai agent590 codex-acp # originated from zed-industries, used in avante591 592@@ -188,8 +188,7 @@ in593 # kaggle # kaggle interface594 # python3Packages.kaggle595 596-597- sonic-pi # for live music coding598+ sonic-pi # for live music coding599 stow600 systemctl-tui601 timr-tui # rust clock602@@ -267,7 +266,7 @@ in603 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;604 TETOS_BUILDER_JEDHA = builder_jedha;605 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;606- inherit (secrets) 607+ inherit (secrets)608 TAVILY_API_KEY609 FIRECRAWL_API_KEY610 CONFIDENT_AI_API_KEY611diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix612index e282359..ea63df4 100644613--- a/hm/profiles/teto-desktop/programs/codex.nix614+++ b/hm/profiles/teto-desktop/programs/codex.nix615@@ -1,6 +1,5 @@616 {617 618-619 enable = true;620 enableMcpIntegration = true;621 # CODEX_HOME/AGENTS.md.622diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix623index 9b41b6c..aabc790 100644624--- a/hm/profiles/teto-desktop/programs/firefox.nix625+++ b/hm/profiles/teto-desktop/programs/firefox.nix626@@ -95,19 +95,18 @@ in627 # extraConfig =628 id = 0;629 630- userChrome =631- ''632- /* Hide tab bar in FF Quantum */633- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {634- #TabsToolbar {635- visibility: collapse !important;636- margin-bottom: 21px !important;637- }638-639- }640- '';641-642- # userContent = 643+ userChrome = ''644+ /* Hide tab bar in FF Quantum */645+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {646+ #TabsToolbar {647+ visibility: collapse !important;648+ margin-bottom: 21px !important;649+ }650+651+ }652+ '';653+654+ # userContent =655 # ''656 # /* Hide scrollbar in FF Quantum */657 # *{scrollbar-width:none !important}658diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix659index aacec43..9037ef9 100644660--- a/hm/profiles/teto-desktop/programs/jujutsu.nix661+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix662@@ -34,9 +34,12 @@663 name = "teto";664 };665 ui = {666- # jj splits puts the cursor in a f**** position, we need $line to restore 667+ # jj splits puts the cursor in a f**** position, we need $line to restore668 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes669- editor = ["nvim" "+$line"];670+ editor = [671+ "nvim"672+ "+$line"673+ ];674 default-command = "status";675 merge-editor = "nvim";676 # Enable pagination for commands that support it (default)677diff --git a/hm/profiles/teto-desktop/programs/neovim.nix b/hm/profiles/teto-desktop/programs/neovim.nix678index 90413e9..ce5e554 100644679--- a/hm/profiles/teto-desktop/programs/neovim.nix680+++ b/hm/profiles/teto-desktop/programs/neovim.nix681@@ -246,7 +246,7 @@ let682 fswatch # better file watching starting with 0.10683 # go # for gitlab.nvim, we can probably ditch it afterwards684 685- lemminx # 686+ lemminx687 luajitPackages.luacheck688 689 luau-lsp690diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix691index be52e45..f9d09d8 100644692--- a/hm/profiles/teto-desktop/programs/rofi.nix693+++ b/hm/profiles/teto-desktop/programs/rofi.nix694@@ -37,8 +37,8 @@695 696 location = "center";697 modes = [698- # modes: [ combi ];699- # combi-modes: [ window, drun, run ];700+ # modes: [ combi ];701+ # combi-modes: [ window, drun, run ];702 703 ];704 705diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix706index 0dad1af..11dd2ad 100644707--- a/hm/profiles/teto-desktop/xdg/default.nix708+++ b/hm/profiles/teto-desktop/xdg/default.nix709@@ -101,12 +101,12 @@710 "bash/bashrc".text = ''711 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"712 source "$script_dir/manual.sh"713- ''714- # check if flyline defined too ?715- + lib.optionalString osConfig.programs.flyline.enable '' 716- source "$script_dir/flyline.sh"717+ ''718+ # check if flyline defined too ?719+ + lib.optionalString osConfig.programs.flyline.enable ''720+ source "$script_dir/flyline.sh"721 722- '';723+ '';724 725 "nvim/lua/generated-by-nix.lua" =726 let727diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix728index 4e65ba3..401717a 100644729--- a/hosts/jedha/default.nix730+++ b/hosts/jedha/default.nix731@@ -91,12 +91,20 @@ in732 # Upmpdcli's local-library server needs both discovery and HTTP access.733 networking.firewall = lib.mkIf config.services.upmpdcli.enable {734 allowedUDPPorts = [ 1900 ];735- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];736+ allowedTCPPorts = with config.services.upmpdcli.configuration; [737+ upnpport738+ uprclport739+ ];740 };741 742 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {743 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.744- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];745+ path = [746+ pkgs.recoll747+ pkgs.python3748+ pkgs.openssl749+ pkgs.diffutils750+ ];751 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];752 };753 754diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix755index babb3bb..861919d 100644756--- a/hosts/jedha/home-manager/users/teto/default.nix757+++ b/hosts/jedha/home-manager/users/teto/default.nix758@@ -104,7 +104,6 @@ in759 btop-cuda # for jedha760 brush # a rust implementation of bash761 762-763 # creates conflicts since it brings python and several executables764 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService765 766@@ -147,9 +146,9 @@ in767 # bridge-utils# pour brctl768 # vscode-css-languageserver # to showcase 'cssls' lsp server769 770- rura # to build shell pipelines771+ rura # to build shell pipelines772 # termusic # terminal music773- 774+775 ];776 777 package-sets = {778diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix779index 3378a39..9ce7079 100644780--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix781+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix782@@ -1,36 +1,34 @@783 { pkgs, lib, ... }:784 {785 786-787 enable = true;788 789 # github:utensils/mcp-nixos790- servers = 791- {792-793- nixos = {794- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";795- };796-797- # https://github.com/homeassistant-ai/ha-mcp798- ha-mcp = {799-800- command = "${lib.getExe pkgs.ha-mcp}";801-802- };803-804- # everything = {805- # command = "npx";806- # args = [ "-y" "@modelcontextprotocol/server-everything" ];807- # };808- # context7 = {809- # url = "https://mcp.context7.com/mcp";810- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";811- # };812- # codeberg = {813- # command = "/path/to/forgejo-mcp";814- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];815- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";816- # };817- };818+ servers = {819+820+ nixos = {821+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";822+ };823+824+ # https://github.com/homeassistant-ai/ha-mcp825+ ha-mcp = {826+827+ command = "${lib.getExe pkgs.ha-mcp}";828+829+ };830+831+ # everything = {832+ # command = "npx";833+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];834+ # };835+ # context7 = {836+ # url = "https://mcp.context7.com/mcp";837+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";838+ # };839+ # codeberg = {840+ # command = "/path/to/forgejo-mcp";841+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];842+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";843+ # };844+ };845 }846diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix847index 083732e..09017c2 100644848--- a/hosts/jedha/services/avahi.nix849+++ b/hosts/jedha/services/avahi.nix850@@ -13,7 +13,6 @@851 852 debug = true;853 854-855 # allowInterfaces = [856 # "wlp10s0"857 # ];858@@ -30,13 +29,12 @@859 };860 861 publish = {862- disable-publishing = false;863- disable-user-service-publishing = false;864- publish-addresses = true;865- };866-867+ disable-publishing = false;868+ disable-user-service-publishing = false;869+ publish-addresses = true;870 };871 872+ };873 874 nssmdns4 = true;875 # publish = {876diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix877index 7f3f4aa..f62f7ed 100644878--- a/hosts/jedha/services/minidlna.nix879+++ b/hosts/jedha/services/minidlna.nix880@@ -7,7 +7,6 @@881 # announceInterval = 60;882 openFirewall = true;883 884-885 # there are udp errors when it binds to wireguard network ?886 887 settings = {888@@ -16,9 +15,9 @@889 friendly_name = "jedha";890 # inotify = "yes";891 log_level = "warn";892- media_dir = [ 893+ media_dir = [894 # can be prefixed with V/A, to filter audio/video895- "/mnt/ext/music" 896+ "/mnt/ext/music"897 ];898 inotify = "yes";899 # db_dir =900diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix901index 28cc3b4..1d1609c 100644902--- a/hosts/jedha/services/opentelemetry-collector.nix903+++ b/hosts/jedha/services/opentelemetry-collector.nix904@@ -1,23 +1,22 @@905 {906 907-908 enable = true;909 910 settings =911-let912- port = 4318;913-in914+ let915+ port = 4318;916+ in917 {918- exporters.debug.verbosity = "detailed";919- receivers.otlp.protocols = {920- http.endpoint = "0.0.0.0:${toString port}";921- };922- service = {923- pipelines.logs = {924- receivers = [ "otlp" ];925- exporters = [ "debug" ];926- };927- };928+ exporters.debug.verbosity = "detailed";929+ receivers.otlp.protocols = {930+ http.endpoint = "0.0.0.0:${toString port}";931+ };932+ service = {933+ pipelines.logs = {934+ receivers = [ "otlp" ];935+ exporters = [ "debug" ];936+ };937+ };938 939- };940+ };941 }942diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix943index ef04f30..390f091 100644944--- a/hosts/jedha/services/upmpdcli.nix945+++ b/hosts/jedha/services/upmpdcli.nix946@@ -1,12 +1,12 @@947 /*948-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 949- should change playback if rmpd and upmpdcli are controlling the same MPD instance950- 951- • 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.952-• 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.953+ 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, it954+ should change playback if rmpd and upmpdcli are controlling the same MPD instance955 956-mpd now has a plugin that can play music from upnp server 957-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction958+ • 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.959+ • 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.960+961+ mpd now has a plugin that can play music from upnp server962+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction963 */964 965 { pkgs, lib, ... }:966@@ -44,7 +44,7 @@ in967 mpdport = 6600;968 # try to see if I can control it myself969 ownqueue = 0;970- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 971+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo972 # control the playlist. The client can disconnect after playlist was created973 openhome = 0;974 upnpav = 1;975diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix976index 59d7129..e0cab47 100644977--- a/hosts/jedha/systemd.nix978+++ b/hosts/jedha/systemd.nix979@@ -34,61 +34,60 @@ in980 })981 # disabled because ha-mcp broken982 (lib.mkIf false {983- ha-mcp = {984- description = "Home Assistant MCP server";985- wantedBy = [ "multi-user.target" ];986- wants = [ "network-online.target" ];987- after = [ "network-online.target" ];988- environment = {989- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";990- HOME = "/var/lib/ha-mcp";991- MCP_HOST = "127.0.0.1";992- MCP_PORT = "8086";993- };994- serviceConfig = {995- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";996- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.997- EnvironmentFile = "/var/lib/ha-mcp/environment";998- DynamicUser = true;999- StateDirectory = "ha-mcp";1000- WorkingDirectory = "/var/lib/ha-mcp";1001- Restart = "on-failure";1002- RestartSec = 5;1003- UMask = "0077";1004- };1005+ ha-mcp = {1006+ description = "Home Assistant MCP server";1007+ wantedBy = [ "multi-user.target" ];1008+ wants = [ "network-online.target" ];1009+ after = [ "network-online.target" ];1010+ environment = {1011+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";1012+ HOME = "/var/lib/ha-mcp";1013+ MCP_HOST = "127.0.0.1";1014+ MCP_PORT = "8086";1015 };1016+ serviceConfig = {1017+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";1018+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.1019+ EnvironmentFile = "/var/lib/ha-mcp/environment";1020+ DynamicUser = true;1021+ StateDirectory = "ha-mcp";1022+ WorkingDirectory = "/var/lib/ha-mcp";1023+ Restart = "on-failure";1024+ RestartSec = 5;1025+ UMask = "0077";1026+ };1027+ };1028 1029- # copied from https://github.com/NixOS/nixpkgs/pull/5442521030- # lib.recursiveUpdate slib.systemd.serviceDefaults {1031- speech-to-phrase = {1032- # after = [ "home-assistant.service" ];1033- script = lib.concatStringsSep " " [1034- (lib.getExe pkgs.speech-to-phrase)1035- "--models-dir"1036- "\"$STATE_DIRECTORY/models\""1037- "--train-dir"1038- "\"$STATE_DIRECTORY/train\""1039- # "--custom-sentences-dir" ""1040- "--uri 'tcp://127.0.0.1:10400'"1041- "--hass-websocket-uri"1042- "ws://${hassHost}:${toString hassPort}/api/websocket"1043- "--retrain-on-start"1044- "--retrain-on-connect"1045- "--retrain-seconds"1046- "300"1047- ];1048- serviceConfig = {1049- #1050- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1051- Group = "speech-to-phrase";1052- StateDirectory = "speech-to-phrase";1053- User = "speech-to-phrase";1054- # TODO: hardening1055- };1056+ # copied from https://github.com/NixOS/nixpkgs/pull/5442521057+ # lib.recursiveUpdate slib.systemd.serviceDefaults {1058+ speech-to-phrase = {1059+ # after = [ "home-assistant.service" ];1060+ script = lib.concatStringsSep " " [1061+ (lib.getExe pkgs.speech-to-phrase)1062+ "--models-dir"1063+ "\"$STATE_DIRECTORY/models\""1064+ "--train-dir"1065+ "\"$STATE_DIRECTORY/train\""1066+ # "--custom-sentences-dir" ""1067+ "--uri 'tcp://127.0.0.1:10400'"1068+ "--hass-websocket-uri"1069+ "ws://${hassHost}:${toString hassPort}/api/websocket"1070+ "--retrain-on-start"1071+ "--retrain-on-connect"1072+ "--retrain-seconds"1073+ "300"1074+ ];1075+ serviceConfig = {1076+ #1077+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1078+ Group = "speech-to-phrase";1079+ StateDirectory = "speech-to-phrase";1080+ User = "speech-to-phrase";1081+ # TODO: hardening1082 };1083+ };1084 1085- }1086- )1087+ })1088 ];1089 1090 # just to test1091diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1092index 5a92154..337beb9 1006441093--- a/hosts/router/services/home-assistant.nix1094+++ b/hosts/router/services/home-assistant.nix1095@@ -34,7 +34,7 @@ in1096 ];1097 1098 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1099-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1100+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1101 easy-floorplan1102 button-card1103 # home-assistant-custom-lovelace-modules.sankey-chart1104@@ -68,8 +68,6 @@ in1105 material-you-theme1106 ];1107 1108-1109-1110 blueprints = {1111 automation = [1112 # ATTENTION: The name should contain the extension .yaml1113diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1114index a81a7ef..928f21c 1006441115--- a/hosts/tatooine/default.nix1116+++ b/hosts/tatooine/default.nix1117@@ -132,7 +132,6 @@ in1118 enableRedistributableFirmware = true;1119 sane.enable = true;1120 1121-1122 # High quality BT calls1123 # https://nixos.wiki/wiki/Bluetooth1124 bluetooth = {1125diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1126index 6210293..5c3a889 1006441127--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1128+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1129@@ -1,9 +1,9 @@1130-{ pkgs, ...}:1131+{ pkgs, ... }:1132 {1133 1134- scripts = [1135- # as python1136- # pkgs.mpvDLNA1137- ];1138+ scripts = [1139+ # as python1140+ # pkgs.mpvDLNA1141+ ];1142 1143 }1144diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1145index adc82dd..1724c86 1006441146--- a/hosts/tatooine/services/adguardhome.nix1147+++ b/hosts/tatooine/services/adguardhome.nix1148@@ -10,7 +10,7 @@1149 settings = {1150 1151 # http (since v0.107.36): Web interface configuration.1152- # address: Web interface IP address with port to listen on 1153+ # address: Web interface IP address with port to listen on1154 http.address = "127.0.0.1:8084";1155 1156 };1157diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1158index dd02f3f..f14c221 1006441159--- a/hosts/tatooine/services/avahi.nix1160+++ b/hosts/tatooine/services/avahi.nix1161@@ -21,19 +21,19 @@1162 1163 settings = {1164 publish = {1165- publish-domain = true;1166- disable-publishing = false;1167- disable-user-service-publishing = false;1168- publish-addresses = true;1169- };1170+ publish-domain = true;1171+ disable-publishing = false;1172+ disable-user-service-publishing = false;1173+ publish-addresses = true;1174+ };1175 1176 server = {1177 use-ipv6 = false; # bug with multiple hostnames1178- # # 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.1179- # # secrets.jedha.hostname;1180- # # host-name = "jedha";1181- # # enable-dbus = true;1182- #1183+ # # 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.1184+ # # secrets.jedha.hostname;1185+ # # host-name = "jedha";1186+ # # enable-dbus = true;1187+ #1188 };1189 };1190 1191diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1192index 4cd2e1d..a9725d3 1006441193--- a/hosts/tatooine/services/mediatomb.nix1194+++ b/hosts/tatooine/services/mediatomb.nix1195@@ -1,6 +1,6 @@1196 # it's gerbera in fact1197 { pkgs, ... }:1198-let 1199+let1200 # <mappings>1201 # freeboxRevolution6Mappings = ''1202 # <extension-mimetype ignore-unknown="no">1203@@ -68,78 +68,77 @@ in1204 1205 # to avoid having to rewire the permissions1206 group = "minidlna";1207- interface="wlp2s0";1208+ interface = "wlp2s0";1209 # we should use subsitute for the VLC/ffmpedg commands1210-# postInstall = ''1211-# substitute $src/config.in $out/config \1212-# --replace-fail '@X@' "$X"1213-# '';1214-#1215-# For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1216-transcoding = ''<transcoding enabled="yes" >1217- <profile name="freebox-h264" enabled="yes" type="external">1218- <mimetype>video/mpeg</mimetype>1219- <accept-url>no</accept-url>1220- <first-resource>yes</first-resource>1221- <accept-ogg-theora>no</accept-ogg-theora>1222- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1223- arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1224- <buffer size="14400000" chunk-size="512000" fill-size="120000" />1225- </profile>1226- <profile name="freebox-aac" enabled="yes" type="external">1227- <mimetype>audio/aac</mimetype>1228- <accept-url>no</accept-url>1229- <first-resource>yes</first-resource>1230- <accept-ogg-theora>no</accept-ogg-theora>1231- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1232- arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1233- <buffer size="1048576" chunk-size="131072" fill-size="262144" />1234- </profile>1235- <mimetype-profile-mappings>1236- <!-- enable freebox ones -->1237- <transcode mimetype="video/x-flv" using="freebox-h264" />1238- <transcode mimetype="application/ogg" using="freebox-h264" />1239- <transcode mimetype="video/x-matroska" using="freebox-h264" />1240- <transcode mimetype="video/x-msvideo" using="freebox-h264" />1241- <transcode mimetype="audio/ogg" using="freebox-aac" />1242- </mimetype-profile-mappings>1243- </transcoding>1244- '';1245-1246+ # postInstall = ''1247+ # substitute $src/config.in $out/config \1248+ # --replace-fail '@X@' "$X"1249+ # '';1250+ #1251+ # For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1252+ transcoding = ''1253+ <transcoding enabled="yes" >1254+ <profile name="freebox-h264" enabled="yes" type="external">1255+ <mimetype>video/mpeg</mimetype>1256+ <accept-url>no</accept-url>1257+ <first-resource>yes</first-resource>1258+ <accept-ogg-theora>no</accept-ogg-theora>1259+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1260+ arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1261+ <buffer size="14400000" chunk-size="512000" fill-size="120000" />1262+ </profile>1263+ <profile name="freebox-aac" enabled="yes" type="external">1264+ <mimetype>audio/aac</mimetype>1265+ <accept-url>no</accept-url>1266+ <first-resource>yes</first-resource>1267+ <accept-ogg-theora>no</accept-ogg-theora>1268+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1269+ arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1270+ <buffer size="1048576" chunk-size="131072" fill-size="262144" />1271+ </profile>1272+ <mimetype-profile-mappings>1273+ <!-- enable freebox ones -->1274+ <transcode mimetype="video/x-flv" using="freebox-h264" />1275+ <transcode mimetype="application/ogg" using="freebox-h264" />1276+ <transcode mimetype="video/x-matroska" using="freebox-h264" />1277+ <transcode mimetype="video/x-msvideo" using="freebox-h264" />1278+ <transcode mimetype="audio/ogg" using="freebox-aac" />1279+ </mimetype-profile-mappings>1280+ </transcoding>1281+ '';1282 1283-# from-file="${./transcoding.xml}" />'';1284+ # from-file="${./transcoding.xml}" />'';1285 1286 mappings = ''<mappings from-file="${./mappings.xml}" />'';1287 1288-1289-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1290-# # Les codecs vidéos :1291-# # H.264 ;1292-# # MPEG2 ;1293-# # MS-MPEG4 (DivX 3) ;1294-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1295-# # VC1.1296-# #1297-# # Les codecs audios :1298-# # en decode :1299-# # AAC, ;1300-# # M Dolby Digital (downmix 2.0) ;1301-# # Dolby Digital Plus(downmix 2.0)1302-# # DTS core (downmix 2.0) ;1303-# # FLAC ;1304-# # MP2 ;1305-# # MP3 ;1306-# # Vorbis.1307-# #1308-# # en passthrough (via la sortie HDMI) :1309-# # AAC ;1310-# # Dolby Digital ;1311-# # Dolby Digital Plus ;1312-# # Dolby Digital TrueHD ;1313-# # DTS ;1314-# # DTS-HD (MA et HRA). 1315-# # d'apres1316-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1317+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1318+ # # Les codecs vidéos :1319+ # # H.264 ;1320+ # # MPEG2 ;1321+ # # MS-MPEG4 (DivX 3) ;1322+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1323+ # # VC1.1324+ # #1325+ # # Les codecs audios :1326+ # # en decode :1327+ # # AAC, ;1328+ # # M Dolby Digital (downmix 2.0) ;1329+ # # Dolby Digital Plus(downmix 2.0)1330+ # # DTS core (downmix 2.0) ;1331+ # # FLAC ;1332+ # # MP2 ;1333+ # # MP3 ;1334+ # # Vorbis.1335+ # #1336+ # # en passthrough (via la sortie HDMI) :1337+ # # AAC ;1338+ # # Dolby Digital ;1339+ # # Dolby Digital Plus ;1340+ # # Dolby Digital TrueHD ;1341+ # # DTS ;1342+ # # DTS-HD (MA et HRA).1343+ # # d'apres1344+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1345 1346 # 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.1347 #1348@@ -178,19 +177,18 @@ transcoding = ''<transcoding enabled="yes" >1349 1350 # 49152 already used by mdp1351 port = 49153;1352- mediaDirectories= [1353- {1354- hidden-files = false;1355- path = "/home/teto/videos";1356- recursive = true;1357- }1358- {1359- hidden-files = false;1360- path = "/home/teto/Music";1361- recursive = true;1362- }1363-1364- ];1365+ mediaDirectories = [1366+ {1367+ hidden-files = false;1368+ path = "/home/teto/videos";1369+ recursive = true;1370+ }1371+ {1372+ hidden-files = false;1373+ path = "/home/teto/Music";1374+ recursive = true;1375+ }1376 1377+ ];1378 1379 }1380diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1381index 5a3e20e..e9c8039 1006441382--- a/hosts/tatooine/services/minidlna.nix1383+++ b/hosts/tatooine/services/minidlna.nix1384@@ -13,7 +13,6 @@1385 # to receive sssdp answers1386 openFirewall = true;1387 1388-1389 # there are udp errors when it binds to wireguard network ?1390 1391 settings = {1392@@ -22,7 +21,7 @@1393 friendly_name = "tatooine";1394 # inotify = "yes";1395 log_level = "warn";1396- media_dir = [ 1397+ media_dir = [1398 # can be prefixed with V/A, to filter audio/video1399 "/home/teto/videos"1400 "/home/teto/Music"1401@@ -30,11 +29,9 @@1402 1403 # Network interface to bind (optional; self-discovers if commented out)1404 # to avoid erros on wireguard if1405- network_interface="wlp2s0"; 1406+ network_interface = "wlp2s0";1407 # to remove warnings1408 inotify = "no";1409 # db_dir =1410 };1411 }1412-1413-1414diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1415index 0c082b6..58d9c85 1006441416--- a/hosts/tatooine/services/pulseaudio.nix1417+++ b/hosts/tatooine/services/pulseaudio.nix1418@@ -1,9 +1,8 @@1419 { pkgs, ... }:1420- # cant be enabled with pipewire1421- {1422- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1423- enable = false;1424- # for ad2p profle ?1425- package = pkgs.pulseaudioFull;1426- }1427-1428+# cant be enabled with pipewire1429+{1430+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1431+ enable = false;1432+ # for ad2p profle ?1433+ package = pkgs.pulseaudioFull;1434+}1435diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1436index e158259..4b6709c 1006441437--- a/hosts/tatooine/tetos.nix1438+++ b/hosts/tatooine/tetos.nix1439@@ -9,7 +9,8 @@1440 {1441 allowUpnp = true;1442 1443-} // lib.optionalAttrs withSecrets {1444+}1445+// lib.optionalAttrs withSecrets {1446 wireguard = {1447 id = 2;1448 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1449@@ -19,4 +20,4 @@1450 flakeSelf.nixosConfigurations.neotokyo1451 ];1452 };1453-} 1454+}1455diff --git a/hosts/wsl/hm-teto.nix b/hosts/wsl/hm-teto.nix1456index ef31ff2..a4ca0d6 1006441457--- a/hosts/wsl/hm-teto.nix1458+++ b/hosts/wsl/hm-teto.nix1459@@ -1,29 +1,34 @@1460-{ config, lib, pkgs, ... }:1461 {1462- programs.git = {1463- enable = true;1464- includes = [1465+ config,1466+ lib,1467+ pkgs,1468+ ...1469+}:1470+{1471+ programs.git = {1472+ enable = true;1473+ includes = [1474+1475+ { path = config.xdg.configHome + "/git/manual.gitconfig"; }1476+ ];1477 1478- { path = config.xdg.configHome + "/git/manual.gitconfig"; }1479- ];1480+ package = pkgs.gitFull; # to get send-email1481 1482- package = pkgs.gitFull; # to get send-email1483+ settings = {1484+ # user = {1485+ # email = lib.mkForce "886074+teto@users.noreply.github.com";1486+ # };1487+ user = {1488+ # mkForce due to nova1489+ name = "Matthieu C.";1490+ email = lib.mkForce "886074+teto@users.noreply.github.com";1491+ };1492 1493- settings = {1494- # user = {1495- # email = lib.mkForce "886074+teto@users.noreply.github.com";1496- # };1497- user = {1498- # mkForce due to nova1499- name = "Matthieu C.";1500- email = lib.mkForce "886074+teto@users.noreply.github.com";1501+ # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1502+ credential.helper = "store";1503 };1504 1505- # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1506- credential.helper = "store";1507 };1508 1509-};1510-1511-programs.flyline.enable = true;1512+ programs.flyline.enable = true;1513 }1514diff --git a/hosts/wsl/llamacpp.nix b/hosts/wsl/llamacpp.nix1515index d9f179f..d1f1f13 1006441516--- a/hosts/wsl/llamacpp.nix1517+++ b/hosts/wsl/llamacpp.nix1518@@ -1,5 +1,4 @@1519 {1520 enable = true;1521 1522-1523 }1524diff --git a/justfile b/justfile1525index 36b0eaf..c6478cc 1006441526--- a/justfile1527+++ b/justfile1528@@ -65,12 +65,12 @@ bootstrap-vps target:1529 --debug1530 1531 bump-meli:1532- nix-update -F --version=branch=master meli-teto1533+ nix-update -F --version=branch=master meli-teto1534 1535 # urn:schemas-upnp-org:device:MediaRenderer:11536 discover-upnp-renderers:1537- gssdp-discover --timeout=5 \1538- --target=urn:schemas-upnp-org:device:MediaRenderer:11539+ gssdp-discover --timeout=5 \1540+ --target=urn:schemas-upnp-org:device:MediaRenderer:11541 1542 # just to save the command1543 1544@@ -326,7 +326,6 @@ inspect-current-generation:1545 flash-ulanzi-tc001:1546 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1547 1548-1549 # check dlna servers on the network1550 scan-upnp:1551 nmap --script=broadcast-upnp-info 192.168.0.0/161552diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1553index c73a06e..5448ba8 1006441554--- a/nixos/modules/minidlna.nix1555+++ b/nixos/modules/minidlna.nix1556@@ -1,7 +1,8 @@1557 { config, lib, ... }:1558 let1559 cfg = config.services.minidlna;1560- mediaDirs = map (dir:1561+ mediaDirs = map (1562+ dir:1563 let1564 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1565 in1566diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1567index dd25744..86ddd25 1006441568--- a/nixos/modules/upnp.nix1569+++ b/nixos/modules/upnp.nix1570@@ -1,7 +1,8 @@1571 { config, lib, ... }:1572 let1573- cfg = config.programs.upnp;1574-in {1575+ cfg = config.programs.upnp;1576+in1577+{1578 options = {1579 programs.upnp = {1580 enable = lib.mkEnableOption "upnp";1581@@ -17,13 +18,12 @@ in {1582 config = lib.mkIf cfg.enable {1583 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1584 1585- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];1586-# # SSDP multicast discovery port (UDP)1587-# sudo ufw allow 1900/udp comment 'DLNA SSDP'1588-#1589-# # MiniDLNA HTTP streaming & web status port (TCP)1590-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1591+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];1592+ # # SSDP multicast discovery port (UDP)1593+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'1594+ #1595+ # # MiniDLNA HTTP streaming & web status port (TCP)1596+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1597 1598 };1599 }1600-1601diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1602index 3820510..e4bca1c 1006441603--- a/nixos/profiles/adguardhome.nix1604+++ b/nixos/profiles/adguardhome.nix1605@@ -9,7 +9,6 @@1606 # mutableSettings = true;1607 # openFirewall = false;1608 1609-1610 # mutableSettings = true;1611 # extraArgs = [];1612 1613diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1614index 9ceeefc..3835a79 1006441615--- a/nixos/profiles/avahi.nix1616+++ b/nixos/profiles/avahi.nix1617@@ -1,9 +1,6 @@1618 /*1619-1620-guide:1621-avahi-browse-domains 1622-1623-1624+ guide:1625+ avahi-browse-domains1626 */1627 {1628 config,1629@@ -23,7 +20,7 @@ avahi-browse-domains1630 1631 server = {1632 1633- # List of non-local DNS domains to be browsed.1634+ # List of non-local DNS domains to be browsed.1635 browse-domains = [1636 # "0pointer.de"1637 # "zeroconf.org"1638diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix1639index db4eb98..38e8c16 1006441640--- a/nixos/profiles/desktop/default.nix1641+++ b/nixos/profiles/desktop/default.nix1642@@ -2,7 +2,6 @@1643 {1644 fonts.enableDefaultPackages = true;1645 1646-1647 console = {1648 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131281649 earlySetup = true;1650diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1651index 3f9282d..9039e39 1006441652--- a/nixos/profiles/desktop/programs/flyline.nix1653+++ b/nixos/profiles/desktop/programs/flyline.nix1654@@ -1,5 +1,5 @@1655 {1656 enable = true;1657- # 1658+ #1659 # package = ;1660 }1661diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix1662index daadd3f..d3fc61c 1006441663--- a/nixos/profiles/desktop/users/default.nix1664+++ b/nixos/profiles/desktop/users/default.nix1665@@ -1,3 +1,3 @@1666 {1667- groups.minidlna = {};1668+ groups.minidlna = { };1669 }1670diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix1671index aac0d91..995a67c 1006441672--- a/nixos/profiles/home-assistant.nix1673+++ b/nixos/profiles/home-assistant.nix1674@@ -17,13 +17,12 @@1675 # # "deconz" # interface for zigbee conbee II1676 # ];1677 1678-1679 package = pkgs.home-assistant.override {1680 1681 extraPackages = ps: [1682 ps.psycopg21683- # disabled because of ? 1684- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 1685+ # disabled because of ?1686+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await1687 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619081688 # # enables several default components1689 # ps.hass-nabucasa # to be able to login to cloud1690@@ -74,7 +73,7 @@1691 assist_pipeline = { };1692 # bluetooth = {}; # NO1693 # # enables several default components. DO NOT REMOVE (?)1694- default_config = { }; 1695+ default_config = { };1696 # map = {}; # show a local map1697 network = { };1698 homeassistant = {1699diff --git a/nixos/profiles/pixiecore.nix b/nixos/profiles/pixiecore.nix1700index c6a5355..141a4f8 1006441701--- a/nixos/profiles/pixiecore.nix1702+++ b/nixos/profiles/pixiecore.nix1703@@ -117,7 +117,7 @@ in1704 # one of “api”, “boot”, “quick”1705 package = pkgs.pixiecore-arm64;1706 mode = "boot";1707-# enp1s0f01708+ # enp1s0f01709 # extraArguments = ;1710 # listen1711 # cmdLine = ;