treefmt-check
checks.x86_64-linux.formatting
· build #61
· raw
1treefmt v2.6.0traversed 1628 files2emitted 876 files for processing3formatted 876 files (42 changed) in 1.352s4 M by-name/ko/kodi-tetos/package.nix5 M by-name/ze/zeal-teto/package.nix6 M config/bash/flyline.sh7 M config/nvim/after/ftplugin/Avante.lua8 M config/nvim/after/ftplugin/RikaiPopup.lua9 M config/nvim/lua/init-manual.lua10 M config/nvim/lua/plugins/kitty-scrollback.lua11 M hm/modules/audiocast.nix12 M hm/modules/kitty.nix13 M hm/modules/package-sets.nix14 M hm/profiles/teto-desktop/default.nix15 M hm/profiles/teto-desktop/programs/codex.nix16 M hm/profiles/teto-desktop/programs/firefox.nix17 M hm/profiles/teto-desktop/programs/jujutsu.nix18 M hm/profiles/teto-desktop/programs/rofi.nix19 M hm/profiles/teto-desktop/xdg/default.nix20 M hosts/jedha/default.nix21 M hosts/jedha/home-manager/users/teto/default.nix22 M hosts/jedha/home-manager/users/teto/programs/mcp.nix23 M hosts/jedha/services/avahi.nix24 M hosts/jedha/services/minidlna.nix25 M hosts/jedha/services/opentelemetry-collector.nix26 M hosts/jedha/services/upmpdcli.nix27 M hosts/jedha/systemd.nix28 M hosts/router/services/home-assistant.nix29 M hosts/tatooine/default.nix30 M hosts/tatooine/home-manager/users/teto/programs/mpv.nix31 M hosts/tatooine/services/adguardhome.nix32 M hosts/tatooine/services/avahi.nix33 M hosts/tatooine/services/mediatomb.nix34 M hosts/tatooine/services/minidlna.nix35 M hosts/tatooine/services/pulseaudio.nix36 M hosts/tatooine/tetos.nix37 M justfile38 M nixos/modules/minidlna.nix39 M nixos/modules/upnp.nix40 M nixos/profiles/adguardhome.nix41 M nixos/profiles/avahi.nix42 M nixos/profiles/desktop/default.nix43 M nixos/profiles/desktop/programs/flyline.nix44 M nixos/profiles/desktop/users/default.nix45 M nixos/profiles/home-assistant.nix46diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix47index a4a9a74..4adedee 10064448--- a/by-name/ko/kodi-tetos/package.nix49+++ b/by-name/ko/kodi-tetos/package.nix50@@ -1,11 +1,13 @@51 { kodi, makeWrapper }:52 53 let54- kodiWithPackages = kodi.withPackages (p: with p; [55- jellyfin56- # pvr-iptvsimple57- vfs-sftp58- ]);59+ kodiWithPackages = kodi.withPackages (60+ p: with p; [61+ jellyfin62+ # pvr-iptvsimple63+ vfs-sftp64+ ]65+ );66 in67 kodiWithPackages.overrideAttrs (oldAttrs: {68 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];69diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix70index 9442d75..a9d8692 10064471--- a/by-name/ze/zeal-teto/package.nix72+++ b/by-name/ze/zeal-teto/package.nix73@@ -1,10 +1,9 @@74 { zeal }:75 zeal.overrideAttrs (oa: {76 77- # export QMLSCENE_DEVICE=software78- postInstall = ''79- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software80- '';81-82- })83+ # export QMLSCENE_DEVICE=software84+ postInstall = ''85+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software86+ '';87 88+})89diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh90index c2b1a84..6b647be 10064491--- a/config/bash/flyline.sh92+++ b/config/bash/flyline.sh93@@ -10,12 +10,11 @@ flyline history --backend flyline94 # it flickers95 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 296 97-# Codex: change 98+# Codex: change99 flyline set-agent-mode \100- --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. " \101- --trigger-prefix ': ' \102- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'103-104+ --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. " \105+ --trigger-prefix ': ' \106+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'107 108 # Antigravity:109 # flyline set-agent-mode \110@@ -26,7 +25,6 @@ flyline set-agent-mode \111 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"112 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR113 114-115 # precmd_functions+=(set_ps1)116 # Now you can use this animation in your prompt. For example:117 PS1='\u@\h:\w MOUSE_MODE \n$ '118@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''119 120 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽121 122-123 # Experiment with higher frame rates for smooth transitions:124 # flyline create-prompt-widget animation --name "john" --fps 24 \125 # '\e[38;2;255;0;0m\u' \126@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''127 # '\e[38;2;255;0;63m\u' \128 # '\e[38;2;255;0;47m\u' \129 # '\e[38;2;255;0;31m\u' \130-# '\e[38;2;255;0;15m\u' 131+# '\e[38;2;255;0;15m\u'132diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua133index 85acdb0..9d9296e 100644134--- a/config/nvim/after/ftplugin/Avante.lua135+++ b/config/nvim/after/ftplugin/Avante.lua136@@ -14,7 +14,6 @@ vim.opt.showbreak = ''137 -- - update_content138 -- - on_state_change139 140-141 -- local sidebar = require('avante').get()142 143 -- vim.api.nvim_create_autocmd('WinEnter', {144@@ -29,8 +28,8 @@ vim.opt.showbreak = ''145 -- vim.wo.cursorline = false146 vim.wo.foldcolumn = '3' -- auto147 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.148--- could work well, react onto 149-vim.wo.foldmethod = "expr"150+-- could work well, react onto151+vim.wo.foldmethod = 'expr'152 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'153 154 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer155diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua156index b321120..bc9e2c6 100644157--- a/config/nvim/after/ftplugin/RikaiPopup.lua158+++ b/config/nvim/after/ftplugin/RikaiPopup.lua159@@ -3,10 +3,9 @@160 vim.keymap.set('n', '<localleader>s', function()161 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha162 163- vim.fn.jobstart({ 164- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })165-166+ vim.fn.jobstart({167+ 'mpv',168+ '--no-video',169+ vim.fn.expand('~/home/data/audio/notif1.wav'),170+ }, { detach = true })171 end, { buffer = true, desc = 'Play sound' })172-173-174-175diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua176index cc3dfce..da96811 100644177--- a/config/nvim/lua/init-manual.lua178+++ b/config/nvim/lua/init-manual.lua179@@ -948,8 +948,8 @@ end, { desc = 'Go to file, create if missing' })180 -- Outside of the fork it kills the plugin so careful181 -- normally overriden by setup call182 vim.g.avante = {183- -- -- print error messages, set to false to avoid issues with inspect_ai184- debug = false, 185+ -- -- print error messages, set to false to avoid issues with inspect_ai186+ debug = false,187 -- log_level =188 log_level = vim.log.levels.DEBUG,189 190@@ -1353,8 +1353,8 @@ vim.api.nvim_create_autocmd({ 'User' }, {191 vim.notify('avante: LLM answered')192 -- Leave the event callback before closing all windows, including modified buffers.193 -- vim.schedule(function()194- -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua195- --196+ -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua197+ --198 -- vim.cmd('qall!')199 -- end)200 end,201@@ -1371,22 +1371,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {202 --203 -- ╰─204 205-206-vim.api.nvim_create_autocmd(207- 'PackChanged',208- {209+vim.api.nvim_create_autocmd('PackChanged', {210 callback = function(ev)211- local name, kind = ev.data.spec.name, ev.data.kind212- print("package name ", name)213- vim.print("spec ", ev.data.spec)214- -- vim.print("version ", ev.data.spec.version)215-216- -- print("package kind ", kind)217- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then218- -- -- Call `:AvanteBuild` to download prebuilt libraries219- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()220- -- end221- end222- }223-)224-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+ end,236+})237diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua238index ffcb08a..8b60a67 100644239--- a/config/nvim/lua/plugins/kitty-scrollback.lua240+++ b/config/nvim/lua/plugins/kitty-scrollback.lua241@@ -2,43 +2,43 @@242 -- if you want to create autocommands243 244 --245- -- myconfig = {246- -- kitty_get_text = {247- -- ansi = false,248- -- },249- -- },250- -- myfnconfig = function(kitty_data)251- -- return {252- -- kitty_get_text = {253- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',254- -- },255- -- }256- -- end,257+-- myconfig = {258+-- kitty_get_text = {259+-- ansi = false,260+-- },261+-- },262+-- myfnconfig = function(kitty_data)263+-- return {264+-- kitty_get_text = {265+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',266+-- },267+-- }268+-- end,269 require('kitty-scrollback').setup(270 -- global configuration271 {272- kitty_get_text = {273- -- boolean If true, the text will include the ANSI formatting escape codes for colors,274- ansi = true,275- extent = 'all',276- },277- -- scrollback_columns = 300,278- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external279- scrollback_tempfile = false,280- keymaps_enabled = false,281- close_after_yank = true,282- status_window = {283+ kitty_get_text = {284+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,285+ ansi = true,286+ extent = 'all',287+ },288+ -- scrollback_columns = 300,289+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external290+ scrollback_tempfile = false,291+ keymaps_enabled = false,292+ close_after_yank = true,293+ status_window = {294 295- style_simple = true, -- user may not have Nerd Fonts installed296- show_timer = true,297+ style_simple = true, -- user may not have Nerd Fonts installed298+ show_timer = true,299 300- autoclose = true,301- },302- paste_window = {303- -- yank_register = '',304- -- boolean? If true, the yank_register copies content to the paste window. If false, d305- -- -- isable yank to paste window306- -- yank_register_enabled = false,307- }308+ autoclose = true,309+ },310+ paste_window = {311+ -- yank_register = '',312+ -- boolean? If true, the yank_register copies content to the paste window. If false, d313+ -- -- isable yank to paste window314+ -- yank_register_enabled = false,315+ },316 }317 )318diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix319index e95570a..ae177f7 100644320--- a/hm/modules/audiocast.nix321+++ b/hm/modules/audiocast.nix322@@ -1,7 +1,13 @@323-{ config, lib, pkgs, ... }:324+{325+ config,326+ lib,327+ pkgs,328+ ...329+}:330 let331- cfg = config.services.audiocast;332-in {333+ cfg = config.services.audiocast;334+in335+{336 options = {337 services.audiocast = {338 enable = lib.mkEnableOption "audiocast-stream";339@@ -16,44 +22,43 @@ in {340 };341 config = lib.mkIf cfg.enable {342 343-344- # Renderer friendlyName to discover over SSDP345- # Hard-coded AVTransport control URL (skips SSDP discovery)346- # else we give url347- # ❯ yamaha discover348- # name host model udn349- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e350- # port 8082 Local HTTP port for the stream351- xdg.configFile."audiocast/config" = {352- enable = false;353- text = ''354- [audiocast]355- name = Espace Musical356- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)357- mode = app358- sink = audiocast359- sink_description = AudioCast (DLNA)360- '';361-};362-363- systemd.user.services.audiocast-stream = {364- Unit = {365- Description = "Stream PipeWire audio to a DLNA renderer";366- After = [367- "pipewire.service"368- "pipewire-pulse.service"369- ];370- Wants = [ "pipewire-pulse.service" ];371+ # Renderer friendlyName to discover over SSDP372+ # Hard-coded AVTransport control URL (skips SSDP discovery)373+ # else we give url374+ # ❯ yamaha discover375+ # name host model udn376+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e377+ # port 8082 Local HTTP port for the stream378+ xdg.configFile."audiocast/config" = {379+ enable = false;380+ text = ''381+ [audiocast]382+ name = Espace Musical383+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)384+ mode = app385+ sink = audiocast386+ sink_description = AudioCast (DLNA)387+ '';388 };389- Service = {390- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";391- Restart = "on-failure";392- # The renderer may be asleep or temporarily off the network. The393- # program exits when discovery fails, so retry without a tight loop.394- RestartSec = 30;395+396+ systemd.user.services.audiocast-stream = {397+ Unit = {398+ Description = "Stream PipeWire audio to a DLNA renderer";399+ After = [400+ "pipewire.service"401+ "pipewire-pulse.service"402+ ];403+ Wants = [ "pipewire-pulse.service" ];404+ };405+ Service = {406+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";407+ Restart = "on-failure";408+ # The renderer may be asleep or temporarily off the network. The409+ # program exits when discovery fails, so retry without a tight loop.410+ RestartSec = 30;411+ };412+ Install.WantedBy = [ "default.target" ];413 };414- Install.WantedBy = [ "default.target" ];415- };416 };417 418 }419diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix420index b6d495f..e7da295 100644421--- a/hm/modules/kitty.nix422+++ b/hm/modules/kitty.nix423@@ -54,7 +54,7 @@ in424 map kitty_mod+h kitty_scrollback_nvim ./tmp425 # Browse output of the last shell command in nvim426 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output427- '';428+ '';429 430 #431 # # Browse output of the last shell command in nvim432diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix433index b811d14..4107eab 100644434--- a/hm/modules/package-sets.nix435+++ b/hm/modules/package-sets.nix436@@ -62,7 +62,6 @@ in437 438 };439 440-441 # this gets merged by default442 config = lib.mkMerge [443 {444@@ -115,7 +114,6 @@ in445 pkgs.blazingjj446 flakeSelf.inputs.jj-gh.packages.${system}.default447 448-449 # pkgs.gg-jj450 # pkgs.lazyjj451 # pkgs.jj-fzf452@@ -419,7 +417,6 @@ in453 lurk # a rust strace454 lsof # to see open files455 456-457 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship458 libossp_uuid # for the 'libuuid' executable459 460@@ -490,7 +487,6 @@ in461 462 # rainfrog # database exploration463 464-465 process-compose # docker-compose - like466 # rpl # to replace strings across files467 repgrep # replace matches found by rg468@@ -502,7 +498,7 @@ in469 tmux # when connecting via ssh470 trurl # used to parse url in the firefox-router executable471 universal-ctags # there are many different ctags, be careful !472- uv # to install python packages473+ uv # to install python packages474 unar # used to view archives by yazi (now using ouch ?)475 vifm476 viu # a console image viewer477@@ -698,7 +694,7 @@ in478 pkgs.tsukumi479 ];480 })481- (mkIf cfg.jellyfin {482+ (mkIf cfg.jellyfin {483 484 home.packages = [485 486@@ -709,13 +705,12 @@ in487 # pkgs.feishin # GUI488 # pkgs.jellycli # could not login :/489 490-491 # VIDEO compatible492 # - Jellyfin MPV Shim493 pkgs.tsukimi # gtk+rust music player GUI494 pkgs.jellyfin-desktop495 pkgs.jellyfin-mpv-shim496- # jellyhaj # not upstreamed yet 497+ # jellyhaj # not upstreamed yet498 # fladder # nice GUI499 # jftui too minimalistic500 # pkgs.jellyflix # nice501diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix502index 74e9949..27bc56e 100644503--- a/hm/profiles/teto-desktop/default.nix504+++ b/hm/profiles/teto-desktop/default.nix505@@ -112,7 +112,7 @@ in506 507 home.packages =508 with pkgs;509- let 510+ let511 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;512 513 # lux-cli-teto = lux-cli;514@@ -123,7 +123,7 @@ in515 in516 517 [518- kodi-teto 519+ kodi-teto520 codex # openai agent521 codex-acp # originated from zed-industries, used in avante522 523@@ -187,8 +187,7 @@ in524 # kaggle # kaggle interface525 # python3Packages.kaggle526 527-528- sonic-pi # for live music coding529+ sonic-pi # for live music coding530 stow531 systemctl-tui532 timr-tui # rust clock533@@ -266,7 +265,7 @@ in534 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;535 TETOS_BUILDER_JEDHA = builder_jedha;536 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;537- inherit (secrets) 538+ inherit (secrets)539 TAVILY_API_KEY540 FIRECRAWL_API_KEY541 CONFIDENT_AI_API_KEY542diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix543index e282359..ea63df4 100644544--- a/hm/profiles/teto-desktop/programs/codex.nix545+++ b/hm/profiles/teto-desktop/programs/codex.nix546@@ -1,6 +1,5 @@547 {548 549-550 enable = true;551 enableMcpIntegration = true;552 # CODEX_HOME/AGENTS.md.553diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix554index 9b41b6c..aabc790 100644555--- a/hm/profiles/teto-desktop/programs/firefox.nix556+++ b/hm/profiles/teto-desktop/programs/firefox.nix557@@ -95,19 +95,18 @@ in558 # extraConfig =559 id = 0;560 561- userChrome =562- ''563- /* Hide tab bar in FF Quantum */564- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {565- #TabsToolbar {566- visibility: collapse !important;567- margin-bottom: 21px !important;568- }569-570- }571- '';572-573- # userContent = 574+ userChrome = ''575+ /* Hide tab bar in FF Quantum */576+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {577+ #TabsToolbar {578+ visibility: collapse !important;579+ margin-bottom: 21px !important;580+ }581+582+ }583+ '';584+585+ # userContent =586 # ''587 # /* Hide scrollbar in FF Quantum */588 # *{scrollbar-width:none !important}589diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix590index aacec43..9037ef9 100644591--- a/hm/profiles/teto-desktop/programs/jujutsu.nix592+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix593@@ -34,9 +34,12 @@594 name = "teto";595 };596 ui = {597- # jj splits puts the cursor in a f**** position, we need $line to restore 598+ # jj splits puts the cursor in a f**** position, we need $line to restore599 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes600- editor = ["nvim" "+$line"];601+ editor = [602+ "nvim"603+ "+$line"604+ ];605 default-command = "status";606 merge-editor = "nvim";607 # Enable pagination for commands that support it (default)608diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix609index be52e45..f9d09d8 100644610--- a/hm/profiles/teto-desktop/programs/rofi.nix611+++ b/hm/profiles/teto-desktop/programs/rofi.nix612@@ -37,8 +37,8 @@613 614 location = "center";615 modes = [616- # modes: [ combi ];617- # combi-modes: [ window, drun, run ];618+ # modes: [ combi ];619+ # combi-modes: [ window, drun, run ];620 621 ];622 623diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix624index 0dad1af..11dd2ad 100644625--- a/hm/profiles/teto-desktop/xdg/default.nix626+++ b/hm/profiles/teto-desktop/xdg/default.nix627@@ -101,12 +101,12 @@628 "bash/bashrc".text = ''629 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"630 source "$script_dir/manual.sh"631- ''632- # check if flyline defined too ?633- + lib.optionalString osConfig.programs.flyline.enable '' 634- source "$script_dir/flyline.sh"635+ ''636+ # check if flyline defined too ?637+ + lib.optionalString osConfig.programs.flyline.enable ''638+ source "$script_dir/flyline.sh"639 640- '';641+ '';642 643 "nvim/lua/generated-by-nix.lua" =644 let645diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix646index 4e65ba3..401717a 100644647--- a/hosts/jedha/default.nix648+++ b/hosts/jedha/default.nix649@@ -91,12 +91,20 @@ in650 # Upmpdcli's local-library server needs both discovery and HTTP access.651 networking.firewall = lib.mkIf config.services.upmpdcli.enable {652 allowedUDPPorts = [ 1900 ];653- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];654+ allowedTCPPorts = with config.services.upmpdcli.configuration; [655+ upnpport656+ uprclport657+ ];658 };659 660 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {661 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.662- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];663+ path = [664+ pkgs.recoll665+ pkgs.python3666+ pkgs.openssl667+ pkgs.diffutils668+ ];669 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];670 };671 672diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix673index babb3bb..861919d 100644674--- a/hosts/jedha/home-manager/users/teto/default.nix675+++ b/hosts/jedha/home-manager/users/teto/default.nix676@@ -104,7 +104,6 @@ in677 btop-cuda # for jedha678 brush # a rust implementation of bash679 680-681 # creates conflicts since it brings python and several executables682 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService683 684@@ -147,9 +146,9 @@ in685 # bridge-utils# pour brctl686 # vscode-css-languageserver # to showcase 'cssls' lsp server687 688- rura # to build shell pipelines689+ rura # to build shell pipelines690 # termusic # terminal music691- 692+693 ];694 695 package-sets = {696diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix697index 3378a39..9ce7079 100644698--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix699+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix700@@ -1,36 +1,34 @@701 { pkgs, lib, ... }:702 {703 704-705 enable = true;706 707 # github:utensils/mcp-nixos708- servers = 709- {710-711- nixos = {712- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";713- };714-715- # https://github.com/homeassistant-ai/ha-mcp716- ha-mcp = {717-718- command = "${lib.getExe pkgs.ha-mcp}";719-720- };721-722- # everything = {723- # command = "npx";724- # args = [ "-y" "@modelcontextprotocol/server-everything" ];725- # };726- # context7 = {727- # url = "https://mcp.context7.com/mcp";728- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";729- # };730- # codeberg = {731- # command = "/path/to/forgejo-mcp";732- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];733- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";734- # };735- };736+ servers = {737+738+ nixos = {739+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";740+ };741+742+ # https://github.com/homeassistant-ai/ha-mcp743+ ha-mcp = {744+745+ command = "${lib.getExe pkgs.ha-mcp}";746+747+ };748+749+ # everything = {750+ # command = "npx";751+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];752+ # };753+ # context7 = {754+ # url = "https://mcp.context7.com/mcp";755+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";756+ # };757+ # codeberg = {758+ # command = "/path/to/forgejo-mcp";759+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];760+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";761+ # };762+ };763 }764diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix765index 083732e..09017c2 100644766--- a/hosts/jedha/services/avahi.nix767+++ b/hosts/jedha/services/avahi.nix768@@ -13,7 +13,6 @@769 770 debug = true;771 772-773 # allowInterfaces = [774 # "wlp10s0"775 # ];776@@ -30,13 +29,12 @@777 };778 779 publish = {780- disable-publishing = false;781- disable-user-service-publishing = false;782- publish-addresses = true;783- };784-785+ disable-publishing = false;786+ disable-user-service-publishing = false;787+ publish-addresses = true;788 };789 790+ };791 792 nssmdns4 = true;793 # publish = {794diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix795index 7f3f4aa..f62f7ed 100644796--- a/hosts/jedha/services/minidlna.nix797+++ b/hosts/jedha/services/minidlna.nix798@@ -7,7 +7,6 @@799 # announceInterval = 60;800 openFirewall = true;801 802-803 # there are udp errors when it binds to wireguard network ?804 805 settings = {806@@ -16,9 +15,9 @@807 friendly_name = "jedha";808 # inotify = "yes";809 log_level = "warn";810- media_dir = [ 811+ media_dir = [812 # can be prefixed with V/A, to filter audio/video813- "/mnt/ext/music" 814+ "/mnt/ext/music"815 ];816 inotify = "yes";817 # db_dir =818diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix819index 28cc3b4..1d1609c 100644820--- a/hosts/jedha/services/opentelemetry-collector.nix821+++ b/hosts/jedha/services/opentelemetry-collector.nix822@@ -1,23 +1,22 @@823 {824 825-826 enable = true;827 828 settings =829-let830- port = 4318;831-in832+ let833+ port = 4318;834+ in835 {836- exporters.debug.verbosity = "detailed";837- receivers.otlp.protocols = {838- http.endpoint = "0.0.0.0:${toString port}";839- };840- service = {841- pipelines.logs = {842- receivers = [ "otlp" ];843- exporters = [ "debug" ];844- };845- };846+ exporters.debug.verbosity = "detailed";847+ receivers.otlp.protocols = {848+ http.endpoint = "0.0.0.0:${toString port}";849+ };850+ service = {851+ pipelines.logs = {852+ receivers = [ "otlp" ];853+ exporters = [ "debug" ];854+ };855+ };856 857- };858+ };859 }860diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix861index ef04f30..390f091 100644862--- a/hosts/jedha/services/upmpdcli.nix863+++ b/hosts/jedha/services/upmpdcli.nix864@@ -1,12 +1,12 @@865 /*866-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 867- should change playback if rmpd and upmpdcli are controlling the same MPD instance868- 869- • 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.870-• 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.871+ 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, it872+ should change playback if rmpd and upmpdcli are controlling the same MPD instance873 874-mpd now has a plugin that can play music from upnp server 875-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction876+ • 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.877+ • 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.878+879+ mpd now has a plugin that can play music from upnp server880+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction881 */882 883 { pkgs, lib, ... }:884@@ -44,7 +44,7 @@ in885 mpdport = 6600;886 # try to see if I can control it myself887 ownqueue = 0;888- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 889+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo890 # control the playlist. The client can disconnect after playlist was created891 openhome = 0;892 upnpav = 1;893diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix894index 59d7129..e0cab47 100644895--- a/hosts/jedha/systemd.nix896+++ b/hosts/jedha/systemd.nix897@@ -34,61 +34,60 @@ in898 })899 # disabled because ha-mcp broken900 (lib.mkIf false {901- ha-mcp = {902- description = "Home Assistant MCP server";903- wantedBy = [ "multi-user.target" ];904- wants = [ "network-online.target" ];905- after = [ "network-online.target" ];906- environment = {907- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";908- HOME = "/var/lib/ha-mcp";909- MCP_HOST = "127.0.0.1";910- MCP_PORT = "8086";911- };912- serviceConfig = {913- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";914- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.915- EnvironmentFile = "/var/lib/ha-mcp/environment";916- DynamicUser = true;917- StateDirectory = "ha-mcp";918- WorkingDirectory = "/var/lib/ha-mcp";919- Restart = "on-failure";920- RestartSec = 5;921- UMask = "0077";922- };923+ ha-mcp = {924+ description = "Home Assistant MCP server";925+ wantedBy = [ "multi-user.target" ];926+ wants = [ "network-online.target" ];927+ after = [ "network-online.target" ];928+ environment = {929+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";930+ HOME = "/var/lib/ha-mcp";931+ MCP_HOST = "127.0.0.1";932+ MCP_PORT = "8086";933 };934+ serviceConfig = {935+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";936+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.937+ EnvironmentFile = "/var/lib/ha-mcp/environment";938+ DynamicUser = true;939+ StateDirectory = "ha-mcp";940+ WorkingDirectory = "/var/lib/ha-mcp";941+ Restart = "on-failure";942+ RestartSec = 5;943+ UMask = "0077";944+ };945+ };946 947- # copied from https://github.com/NixOS/nixpkgs/pull/544252948- # lib.recursiveUpdate slib.systemd.serviceDefaults {949- speech-to-phrase = {950- # after = [ "home-assistant.service" ];951- script = lib.concatStringsSep " " [952- (lib.getExe pkgs.speech-to-phrase)953- "--models-dir"954- "\"$STATE_DIRECTORY/models\""955- "--train-dir"956- "\"$STATE_DIRECTORY/train\""957- # "--custom-sentences-dir" ""958- "--uri 'tcp://127.0.0.1:10400'"959- "--hass-websocket-uri"960- "ws://${hassHost}:${toString hassPort}/api/websocket"961- "--retrain-on-start"962- "--retrain-on-connect"963- "--retrain-seconds"964- "300"965- ];966- serviceConfig = {967- #968- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;969- Group = "speech-to-phrase";970- StateDirectory = "speech-to-phrase";971- User = "speech-to-phrase";972- # TODO: hardening973- };974+ # copied from https://github.com/NixOS/nixpkgs/pull/544252975+ # lib.recursiveUpdate slib.systemd.serviceDefaults {976+ speech-to-phrase = {977+ # after = [ "home-assistant.service" ];978+ script = lib.concatStringsSep " " [979+ (lib.getExe pkgs.speech-to-phrase)980+ "--models-dir"981+ "\"$STATE_DIRECTORY/models\""982+ "--train-dir"983+ "\"$STATE_DIRECTORY/train\""984+ # "--custom-sentences-dir" ""985+ "--uri 'tcp://127.0.0.1:10400'"986+ "--hass-websocket-uri"987+ "ws://${hassHost}:${toString hassPort}/api/websocket"988+ "--retrain-on-start"989+ "--retrain-on-connect"990+ "--retrain-seconds"991+ "300"992+ ];993+ serviceConfig = {994+ #995+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;996+ Group = "speech-to-phrase";997+ StateDirectory = "speech-to-phrase";998+ User = "speech-to-phrase";999+ # TODO: hardening1000 };1001+ };1002 1003- }1004- )1005+ })1006 ];1007 1008 # just to test1009diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1010index 5a92154..337beb9 1006441011--- a/hosts/router/services/home-assistant.nix1012+++ b/hosts/router/services/home-assistant.nix1013@@ -34,7 +34,7 @@ in1014 ];1015 1016 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1017-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1018+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1019 easy-floorplan1020 button-card1021 # home-assistant-custom-lovelace-modules.sankey-chart1022@@ -68,8 +68,6 @@ in1023 material-you-theme1024 ];1025 1026-1027-1028 blueprints = {1029 automation = [1030 # ATTENTION: The name should contain the extension .yaml1031diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1032index a81a7ef..928f21c 1006441033--- a/hosts/tatooine/default.nix1034+++ b/hosts/tatooine/default.nix1035@@ -132,7 +132,6 @@ in1036 enableRedistributableFirmware = true;1037 sane.enable = true;1038 1039-1040 # High quality BT calls1041 # https://nixos.wiki/wiki/Bluetooth1042 bluetooth = {1043diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1044index 6210293..5c3a889 1006441045--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1046+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1047@@ -1,9 +1,9 @@1048-{ pkgs, ...}:1049+{ pkgs, ... }:1050 {1051 1052- scripts = [1053- # as python1054- # pkgs.mpvDLNA1055- ];1056+ scripts = [1057+ # as python1058+ # pkgs.mpvDLNA1059+ ];1060 1061 }1062diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1063index adc82dd..1724c86 1006441064--- a/hosts/tatooine/services/adguardhome.nix1065+++ b/hosts/tatooine/services/adguardhome.nix1066@@ -10,7 +10,7 @@1067 settings = {1068 1069 # http (since v0.107.36): Web interface configuration.1070- # address: Web interface IP address with port to listen on 1071+ # address: Web interface IP address with port to listen on1072 http.address = "127.0.0.1:8084";1073 1074 };1075diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1076index dd02f3f..f14c221 1006441077--- a/hosts/tatooine/services/avahi.nix1078+++ b/hosts/tatooine/services/avahi.nix1079@@ -21,19 +21,19 @@1080 1081 settings = {1082 publish = {1083- publish-domain = true;1084- disable-publishing = false;1085- disable-user-service-publishing = false;1086- publish-addresses = true;1087- };1088+ publish-domain = true;1089+ disable-publishing = false;1090+ disable-user-service-publishing = false;1091+ publish-addresses = true;1092+ };1093 1094 server = {1095 use-ipv6 = false; # bug with multiple hostnames1096- # # 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.1097- # # secrets.jedha.hostname;1098- # # host-name = "jedha";1099- # # enable-dbus = true;1100- #1101+ # # 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.1102+ # # secrets.jedha.hostname;1103+ # # host-name = "jedha";1104+ # # enable-dbus = true;1105+ #1106 };1107 };1108 1109diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1110index 89aead3..2451b2c 1006441111--- a/hosts/tatooine/services/mediatomb.nix1112+++ b/hosts/tatooine/services/mediatomb.nix1113@@ -1,65 +1,65 @@1114 # it's gerbera in fact1115 { pkgs, ... }:1116-let 1117+let1118 freeboxRevolution6Mappings = ''1119- <mappings>1120- <extension-mimetype ignore-unknown="no">1121- <map from="avi" to="video/x-msvideo"/>1122- <map from="flv" to="video/x-flv"/>1123- <map from="mkv" to="video/x-matroska"/>1124- <map from="m2t" to="video/mp2t"/>1125- <map from="m2ts" to="video/mp2t"/>1126- <map from="mp4" to="video/mp4"/>1127- <map from="mov" to="video/quicktime"/>1128- <map from="mts" to="video/mp2t"/>1129- <map from="ts" to="video/mp2t"/>1130- <map from="wmv" to="video/x-ms-wmv"/>1131- <map from="mpa" to="video/mpeg"/>1132- <map from="mpe" to="video/mpeg"/>1133- <map from="mpeg" to="video/mpeg"/>1134- <map from="mpg" to="video/mpeg"/>1135- <map from="mpv2" to="video/mpeg"/>1136- <map from="ogv" to="video/ogg"/>1137- <map from="ogm" to="video/ogg"/>1138- <map from="wmv" to="video/x-ms-wmv"/>1139- <map from="wmv" to="video/x-ms-wmv"/>1140+ <mappings>1141+ <extension-mimetype ignore-unknown="no">1142+ <map from="avi" to="video/x-msvideo"/>1143+ <map from="flv" to="video/x-flv"/>1144+ <map from="mkv" to="video/x-matroska"/>1145+ <map from="m2t" to="video/mp2t"/>1146+ <map from="m2ts" to="video/mp2t"/>1147+ <map from="mp4" to="video/mp4"/>1148+ <map from="mov" to="video/quicktime"/>1149+ <map from="mts" to="video/mp2t"/>1150+ <map from="ts" to="video/mp2t"/>1151+ <map from="wmv" to="video/x-ms-wmv"/>1152+ <map from="mpa" to="video/mpeg"/>1153+ <map from="mpe" to="video/mpeg"/>1154+ <map from="mpeg" to="video/mpeg"/>1155+ <map from="mpg" to="video/mpeg"/>1156+ <map from="mpv2" to="video/mpeg"/>1157+ <map from="ogv" to="video/ogg"/>1158+ <map from="ogm" to="video/ogg"/>1159+ <map from="wmv" to="video/x-ms-wmv"/>1160+ <map from="wmv" to="video/x-ms-wmv"/>1161 1162- <map from="flac" to="audio/x-flac"/>1163- <map from="mka" to="audio/x-matroska"/>1164- <map from="mp2" to="audio/mpeg"/>1165- <map from="mp3" to="audio/mpeg"/>1166- <map from="oga" to="audio/ogg"/>1167- <map from="wma" to="audio/x-ms-wma"/>1168- 1169- <map from="jpe" to="image/jpeg"/>1170- <map from="jpeg" to="image/jpeg"/>1171- <map from="jpg" to="image/jpeg"/>1172- <map from="gif" to="image/gif"/>1173- <map from="png" to="image/png"/>1174- 1175- <map from="ogg" to="application/ogg"/>1176- <map from="ogx" to="application/ogg"/>1177- <!-- /freebox V6 -->1178- 1179- <map from="3gp" to="video/3gpp"/>1180- <map from="asf" to="video/x-ms-asf"/>1181- <map from="asr" to="video/x-ms-asf"/>1182- <map from="asx" to="video/x-ms-asf"/>1183- <map from="lsf" to="video/x-la-asf"/>1184- <map from="lsx" to="video/x-la-asf"/>1185- <map from="movie" to="video/x-sgi-movie"/>1186- <map from="qt" to="video/quicktime"/>1187- <map from="rv" to="video/vnd.rn-realvideo"/>1188- <map from="wm" to="video/x-ms-wm"/>1189- <map from="wmx" to="video/x-ms-wmx"/>1190- <map from="wvx" to="video/x-ms-wvx"/>1191+ <map from="flac" to="audio/x-flac"/>1192+ <map from="mka" to="audio/x-matroska"/>1193+ <map from="mp2" to="audio/mpeg"/>1194+ <map from="mp3" to="audio/mpeg"/>1195+ <map from="oga" to="audio/ogg"/>1196+ <map from="wma" to="audio/x-ms-wma"/>1197+ 1198+ <map from="jpe" to="image/jpeg"/>1199+ <map from="jpeg" to="image/jpeg"/>1200+ <map from="jpg" to="image/jpeg"/>1201+ <map from="gif" to="image/gif"/>1202+ <map from="png" to="image/png"/>1203+ 1204+ <map from="ogg" to="application/ogg"/>1205+ <map from="ogx" to="application/ogg"/>1206+ <!-- /freebox V6 -->1207+ 1208+ <map from="3gp" to="video/3gpp"/>1209+ <map from="asf" to="video/x-ms-asf"/>1210+ <map from="asr" to="video/x-ms-asf"/>1211+ <map from="asx" to="video/x-ms-asf"/>1212+ <map from="lsf" to="video/x-la-asf"/>1213+ <map from="lsx" to="video/x-la-asf"/>1214+ <map from="movie" to="video/x-sgi-movie"/>1215+ <map from="qt" to="video/quicktime"/>1216+ <map from="rv" to="video/vnd.rn-realvideo"/>1217+ <map from="wm" to="video/x-ms-wm"/>1218+ <map from="wmx" to="video/x-ms-wmx"/>1219+ <map from="wvx" to="video/x-ms-wvx"/>1220 1221- <map from="aif" to="audio/x-aiff"/>1222- <map from="aifc" to="audio/x-aiff"/>1223- <map from="aiff" to="audio/x-aiff"/>1224- <map from="au" to="audio/basic"/>1225- <map from="kar" to="audio/midi"/>1226- '';1227+ <map from="aif" to="audio/x-aiff"/>1228+ <map from="aifc" to="audio/x-aiff"/>1229+ <map from="aiff" to="audio/x-aiff"/>1230+ <map from="au" to="audio/basic"/>1231+ <map from="kar" to="audio/midi"/>1232+ '';1233 1234 in1235 {1236@@ -68,36 +68,36 @@ in1237 1238 # to avoid having to rewire the permissions1239 group = "minidlna";1240- interface="wlp2s0";1241+ interface = "wlp2s0";1242 1243-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1244-# # Les codecs vidéos :1245-# # H.264 ;1246-# # MPEG2 ;1247-# # MS-MPEG4 (DivX 3) ;1248-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1249-# # VC1.1250-# #1251-# # Les codecs audios :1252-# # en decode :1253-# # AAC, ;1254-# # M Dolby Digital (downmix 2.0) ;1255-# # Dolby Digital Plus(downmix 2.0)1256-# # DTS core (downmix 2.0) ;1257-# # FLAC ;1258-# # MP2 ;1259-# # MP3 ;1260-# # Vorbis.1261-# #1262-# # en passthrough (via la sortie HDMI) :1263-# # AAC ;1264-# # Dolby Digital ;1265-# # Dolby Digital Plus ;1266-# # Dolby Digital TrueHD ;1267-# # DTS ;1268-# # DTS-HD (MA et HRA). 1269-# # d'apres1270-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1271+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1272+ # # Les codecs vidéos :1273+ # # H.264 ;1274+ # # MPEG2 ;1275+ # # MS-MPEG4 (DivX 3) ;1276+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1277+ # # VC1.1278+ # #1279+ # # Les codecs audios :1280+ # # en decode :1281+ # # AAC, ;1282+ # # M Dolby Digital (downmix 2.0) ;1283+ # # Dolby Digital Plus(downmix 2.0)1284+ # # DTS core (downmix 2.0) ;1285+ # # FLAC ;1286+ # # MP2 ;1287+ # # MP3 ;1288+ # # Vorbis.1289+ # #1290+ # # en passthrough (via la sortie HDMI) :1291+ # # AAC ;1292+ # # Dolby Digital ;1293+ # # Dolby Digital Plus ;1294+ # # Dolby Digital TrueHD ;1295+ # # DTS ;1296+ # # DTS-HD (MA et HRA).1297+ # # d'apres1298+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1299 1300 # 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.1301 transcodingMimeMappings = [1302@@ -107,7 +107,7 @@ in1303 ''<transcode mimetype="video/x-msvideo" using="freebox-h264" />''1304 ''<transcode mimetype="audio/ogg" using="freebox-aac" />''1305 ];1306- 1307+1308 transcoding = ''<transcoding enabled="yes" from-file=${./transcoding.xml}">'';1309 1310 # transcodingProfiles = [1311@@ -138,19 +138,18 @@ in1312 1313 # 49152 already used by mdp1314 port = 49153;1315- mediaDirectories= [1316- {1317- hidden-files = false;1318- path = "/home/teto/videos";1319- recursive = true;1320- }1321- {1322- hidden-files = false;1323- path = "/home/teto/Music";1324- recursive = true;1325- }1326-1327- ];1328+ mediaDirectories = [1329+ {1330+ hidden-files = false;1331+ path = "/home/teto/videos";1332+ recursive = true;1333+ }1334+ {1335+ hidden-files = false;1336+ path = "/home/teto/Music";1337+ recursive = true;1338+ }1339 1340+ ];1341 1342 }1343diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1344index 5a3e20e..e9c8039 1006441345--- a/hosts/tatooine/services/minidlna.nix1346+++ b/hosts/tatooine/services/minidlna.nix1347@@ -13,7 +13,6 @@1348 # to receive sssdp answers1349 openFirewall = true;1350 1351-1352 # there are udp errors when it binds to wireguard network ?1353 1354 settings = {1355@@ -22,7 +21,7 @@1356 friendly_name = "tatooine";1357 # inotify = "yes";1358 log_level = "warn";1359- media_dir = [ 1360+ media_dir = [1361 # can be prefixed with V/A, to filter audio/video1362 "/home/teto/videos"1363 "/home/teto/Music"1364@@ -30,11 +29,9 @@1365 1366 # Network interface to bind (optional; self-discovers if commented out)1367 # to avoid erros on wireguard if1368- network_interface="wlp2s0"; 1369+ network_interface = "wlp2s0";1370 # to remove warnings1371 inotify = "no";1372 # db_dir =1373 };1374 }1375-1376-1377diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1378index 0c082b6..58d9c85 1006441379--- a/hosts/tatooine/services/pulseaudio.nix1380+++ b/hosts/tatooine/services/pulseaudio.nix1381@@ -1,9 +1,8 @@1382 { pkgs, ... }:1383- # cant be enabled with pipewire1384- {1385- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1386- enable = false;1387- # for ad2p profle ?1388- package = pkgs.pulseaudioFull;1389- }1390-1391+# cant be enabled with pipewire1392+{1393+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1394+ enable = false;1395+ # for ad2p profle ?1396+ package = pkgs.pulseaudioFull;1397+}1398diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1399index e158259..4b6709c 1006441400--- a/hosts/tatooine/tetos.nix1401+++ b/hosts/tatooine/tetos.nix1402@@ -9,7 +9,8 @@1403 {1404 allowUpnp = true;1405 1406-} // lib.optionalAttrs withSecrets {1407+}1408+// lib.optionalAttrs withSecrets {1409 wireguard = {1410 id = 2;1411 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1412@@ -19,4 +20,4 @@1413 flakeSelf.nixosConfigurations.neotokyo1414 ];1415 };1416-} 1417+}1418diff --git a/justfile b/justfile1419index 36b0eaf..c6478cc 1006441420--- a/justfile1421+++ b/justfile1422@@ -65,12 +65,12 @@ bootstrap-vps target:1423 --debug1424 1425 bump-meli:1426- nix-update -F --version=branch=master meli-teto1427+ nix-update -F --version=branch=master meli-teto1428 1429 # urn:schemas-upnp-org:device:MediaRenderer:11430 discover-upnp-renderers:1431- gssdp-discover --timeout=5 \1432- --target=urn:schemas-upnp-org:device:MediaRenderer:11433+ gssdp-discover --timeout=5 \1434+ --target=urn:schemas-upnp-org:device:MediaRenderer:11435 1436 # just to save the command1437 1438@@ -326,7 +326,6 @@ inspect-current-generation:1439 flash-ulanzi-tc001:1440 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1441 1442-1443 # check dlna servers on the network1444 scan-upnp:1445 nmap --script=broadcast-upnp-info 192.168.0.0/161446diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1447index c73a06e..5448ba8 1006441448--- a/nixos/modules/minidlna.nix1449+++ b/nixos/modules/minidlna.nix1450@@ -1,7 +1,8 @@1451 { config, lib, ... }:1452 let1453 cfg = config.services.minidlna;1454- mediaDirs = map (dir:1455+ mediaDirs = map (1456+ dir:1457 let1458 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1459 in1460diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1461index dd25744..86ddd25 1006441462--- a/nixos/modules/upnp.nix1463+++ b/nixos/modules/upnp.nix1464@@ -1,7 +1,8 @@1465 { config, lib, ... }:1466 let1467- cfg = config.programs.upnp;1468-in {1469+ cfg = config.programs.upnp;1470+in1471+{1472 options = {1473 programs.upnp = {1474 enable = lib.mkEnableOption "upnp";1475@@ -17,13 +18,12 @@ in {1476 config = lib.mkIf cfg.enable {1477 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1478 1479- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];1480-# # SSDP multicast discovery port (UDP)1481-# sudo ufw allow 1900/udp comment 'DLNA SSDP'1482-#1483-# # MiniDLNA HTTP streaming & web status port (TCP)1484-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1485+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];1486+ # # SSDP multicast discovery port (UDP)1487+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'1488+ #1489+ # # MiniDLNA HTTP streaming & web status port (TCP)1490+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1491 1492 };1493 }1494-1495diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1496index 3820510..e4bca1c 1006441497--- a/nixos/profiles/adguardhome.nix1498+++ b/nixos/profiles/adguardhome.nix1499@@ -9,7 +9,6 @@1500 # mutableSettings = true;1501 # openFirewall = false;1502 1503-1504 # mutableSettings = true;1505 # extraArgs = [];1506 1507diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1508index 9ceeefc..3835a79 1006441509--- a/nixos/profiles/avahi.nix1510+++ b/nixos/profiles/avahi.nix1511@@ -1,9 +1,6 @@1512 /*1513-1514-guide:1515-avahi-browse-domains 1516-1517-1518+ guide:1519+ avahi-browse-domains1520 */1521 {1522 config,1523@@ -23,7 +20,7 @@ avahi-browse-domains1524 1525 server = {1526 1527- # List of non-local DNS domains to be browsed.1528+ # List of non-local DNS domains to be browsed.1529 browse-domains = [1530 # "0pointer.de"1531 # "zeroconf.org"1532diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix1533index db4eb98..38e8c16 1006441534--- a/nixos/profiles/desktop/default.nix1535+++ b/nixos/profiles/desktop/default.nix1536@@ -2,7 +2,6 @@1537 {1538 fonts.enableDefaultPackages = true;1539 1540-1541 console = {1542 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131281543 earlySetup = true;1544diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1545index 3f9282d..9039e39 1006441546--- a/nixos/profiles/desktop/programs/flyline.nix1547+++ b/nixos/profiles/desktop/programs/flyline.nix1548@@ -1,5 +1,5 @@1549 {1550 enable = true;1551- # 1552+ #1553 # package = ;1554 }1555diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix1556index daadd3f..d3fc61c 1006441557--- a/nixos/profiles/desktop/users/default.nix1558+++ b/nixos/profiles/desktop/users/default.nix1559@@ -1,3 +1,3 @@1560 {1561- groups.minidlna = {};1562+ groups.minidlna = { };1563 }1564diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix1565index aac0d91..995a67c 1006441566--- a/nixos/profiles/home-assistant.nix1567+++ b/nixos/profiles/home-assistant.nix1568@@ -17,13 +17,12 @@1569 # # "deconz" # interface for zigbee conbee II1570 # ];1571 1572-1573 package = pkgs.home-assistant.override {1574 1575 extraPackages = ps: [1576 ps.psycopg21577- # disabled because of ? 1578- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 1579+ # disabled because of ?1580+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await1581 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619081582 # # enables several default components1583 # ps.hass-nabucasa # to be able to login to cloud1584@@ -74,7 +73,7 @@1585 assist_pipeline = { };1586 # bluetooth = {}; # NO1587 # # enables several default components. DO NOT REMOVE (?)1588- default_config = { }; 1589+ default_config = { };1590 # map = {}; # show a local map1591 network = { };1592 homeassistant = {