treefmt-check
checks.x86_64-linux.formatting
· build #60
· raw
1treefmt v2.6.0traversed 1627 files2emitted 876 files for processing3formatted 876 files (42 changed) in 1.296s4 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 c64c1af..0de9f69 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 19d355a..840e346 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 77dae93..78c87ca 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 45588a8..3b7bfef 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- termusic # terminal music690- 691+ rura # to build shell pipelines692+ termusic # terminal music693+694 ];695 696 package-sets = {697diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix698index 3378a39..9ce7079 100644699--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix700+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix701@@ -1,36 +1,34 @@702 { pkgs, lib, ... }:703 {704 705-706 enable = true;707 708 # github:utensils/mcp-nixos709- servers = 710- {711-712- nixos = {713- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";714- };715-716- # https://github.com/homeassistant-ai/ha-mcp717- ha-mcp = {718-719- command = "${lib.getExe pkgs.ha-mcp}";720-721- };722-723- # everything = {724- # command = "npx";725- # args = [ "-y" "@modelcontextprotocol/server-everything" ];726- # };727- # context7 = {728- # url = "https://mcp.context7.com/mcp";729- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";730- # };731- # codeberg = {732- # command = "/path/to/forgejo-mcp";733- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];734- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";735- # };736- };737+ servers = {738+739+ nixos = {740+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";741+ };742+743+ # https://github.com/homeassistant-ai/ha-mcp744+ ha-mcp = {745+746+ command = "${lib.getExe pkgs.ha-mcp}";747+748+ };749+750+ # everything = {751+ # command = "npx";752+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];753+ # };754+ # context7 = {755+ # url = "https://mcp.context7.com/mcp";756+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";757+ # };758+ # codeberg = {759+ # command = "/path/to/forgejo-mcp";760+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];761+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";762+ # };763+ };764 }765diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix766index 083732e..09017c2 100644767--- a/hosts/jedha/services/avahi.nix768+++ b/hosts/jedha/services/avahi.nix769@@ -13,7 +13,6 @@770 771 debug = true;772 773-774 # allowInterfaces = [775 # "wlp10s0"776 # ];777@@ -30,13 +29,12 @@778 };779 780 publish = {781- disable-publishing = false;782- disable-user-service-publishing = false;783- publish-addresses = true;784- };785-786+ disable-publishing = false;787+ disable-user-service-publishing = false;788+ publish-addresses = true;789 };790 791+ };792 793 nssmdns4 = true;794 # publish = {795diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix796index 0ea64f9..9b1b770 100644797--- a/hosts/jedha/services/minidlna.nix798+++ b/hosts/jedha/services/minidlna.nix799@@ -7,7 +7,6 @@800 # announceInterval = 60;801 openFirewall = true;802 803-804 # there are udp errors when it binds to wireguard network ?805 806 settings = {807@@ -16,9 +15,9 @@808 friendly_name = "jedha";809 # inotify = "yes";810 log_level = "warn";811- media_dir = [ 812+ media_dir = [813 # can be prefixed with V/A, to filter audio/video814- "/mnt/ext/music" 815+ "/mnt/ext/music"816 ];817 inotify = "yes";818 # db_dir =819diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix820index 28cc3b4..1d1609c 100644821--- a/hosts/jedha/services/opentelemetry-collector.nix822+++ b/hosts/jedha/services/opentelemetry-collector.nix823@@ -1,23 +1,22 @@824 {825 826-827 enable = true;828 829 settings =830-let831- port = 4318;832-in833+ let834+ port = 4318;835+ in836 {837- exporters.debug.verbosity = "detailed";838- receivers.otlp.protocols = {839- http.endpoint = "0.0.0.0:${toString port}";840- };841- service = {842- pipelines.logs = {843- receivers = [ "otlp" ];844- exporters = [ "debug" ];845- };846- };847+ exporters.debug.verbosity = "detailed";848+ receivers.otlp.protocols = {849+ http.endpoint = "0.0.0.0:${toString port}";850+ };851+ service = {852+ pipelines.logs = {853+ receivers = [ "otlp" ];854+ exporters = [ "debug" ];855+ };856+ };857 858- };859+ };860 }861diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix862index ef04f30..390f091 100644863--- a/hosts/jedha/services/upmpdcli.nix864+++ b/hosts/jedha/services/upmpdcli.nix865@@ -1,12 +1,12 @@866 /*867-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 868- should change playback if rmpd and upmpdcli are controlling the same MPD instance869- 870- • 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.871-• 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.872+ 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, it873+ should change playback if rmpd and upmpdcli are controlling the same MPD instance874 875-mpd now has a plugin that can play music from upnp server 876-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction877+ • 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.878+ • 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.879+880+ mpd now has a plugin that can play music from upnp server881+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction882 */883 884 { pkgs, lib, ... }:885@@ -44,7 +44,7 @@ in886 mpdport = 6600;887 # try to see if I can control it myself888 ownqueue = 0;889- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 890+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo891 # control the playlist. The client can disconnect after playlist was created892 openhome = 0;893 upnpav = 1;894diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix895index 59d7129..e0cab47 100644896--- a/hosts/jedha/systemd.nix897+++ b/hosts/jedha/systemd.nix898@@ -34,61 +34,60 @@ in899 })900 # disabled because ha-mcp broken901 (lib.mkIf false {902- ha-mcp = {903- description = "Home Assistant MCP server";904- wantedBy = [ "multi-user.target" ];905- wants = [ "network-online.target" ];906- after = [ "network-online.target" ];907- environment = {908- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";909- HOME = "/var/lib/ha-mcp";910- MCP_HOST = "127.0.0.1";911- MCP_PORT = "8086";912- };913- serviceConfig = {914- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";915- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.916- EnvironmentFile = "/var/lib/ha-mcp/environment";917- DynamicUser = true;918- StateDirectory = "ha-mcp";919- WorkingDirectory = "/var/lib/ha-mcp";920- Restart = "on-failure";921- RestartSec = 5;922- UMask = "0077";923- };924+ ha-mcp = {925+ description = "Home Assistant MCP server";926+ wantedBy = [ "multi-user.target" ];927+ wants = [ "network-online.target" ];928+ after = [ "network-online.target" ];929+ environment = {930+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";931+ HOME = "/var/lib/ha-mcp";932+ MCP_HOST = "127.0.0.1";933+ MCP_PORT = "8086";934 };935+ serviceConfig = {936+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";937+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.938+ EnvironmentFile = "/var/lib/ha-mcp/environment";939+ DynamicUser = true;940+ StateDirectory = "ha-mcp";941+ WorkingDirectory = "/var/lib/ha-mcp";942+ Restart = "on-failure";943+ RestartSec = 5;944+ UMask = "0077";945+ };946+ };947 948- # copied from https://github.com/NixOS/nixpkgs/pull/544252949- # lib.recursiveUpdate slib.systemd.serviceDefaults {950- speech-to-phrase = {951- # after = [ "home-assistant.service" ];952- script = lib.concatStringsSep " " [953- (lib.getExe pkgs.speech-to-phrase)954- "--models-dir"955- "\"$STATE_DIRECTORY/models\""956- "--train-dir"957- "\"$STATE_DIRECTORY/train\""958- # "--custom-sentences-dir" ""959- "--uri 'tcp://127.0.0.1:10400'"960- "--hass-websocket-uri"961- "ws://${hassHost}:${toString hassPort}/api/websocket"962- "--retrain-on-start"963- "--retrain-on-connect"964- "--retrain-seconds"965- "300"966- ];967- serviceConfig = {968- #969- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;970- Group = "speech-to-phrase";971- StateDirectory = "speech-to-phrase";972- User = "speech-to-phrase";973- # TODO: hardening974- };975+ # copied from https://github.com/NixOS/nixpkgs/pull/544252976+ # lib.recursiveUpdate slib.systemd.serviceDefaults {977+ speech-to-phrase = {978+ # after = [ "home-assistant.service" ];979+ script = lib.concatStringsSep " " [980+ (lib.getExe pkgs.speech-to-phrase)981+ "--models-dir"982+ "\"$STATE_DIRECTORY/models\""983+ "--train-dir"984+ "\"$STATE_DIRECTORY/train\""985+ # "--custom-sentences-dir" ""986+ "--uri 'tcp://127.0.0.1:10400'"987+ "--hass-websocket-uri"988+ "ws://${hassHost}:${toString hassPort}/api/websocket"989+ "--retrain-on-start"990+ "--retrain-on-connect"991+ "--retrain-seconds"992+ "300"993+ ];994+ serviceConfig = {995+ #996+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;997+ Group = "speech-to-phrase";998+ StateDirectory = "speech-to-phrase";999+ User = "speech-to-phrase";1000+ # TODO: hardening1001 };1002+ };1003 1004- }1005- )1006+ })1007 ];1008 1009 # just to test1010diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1011index 5a92154..337beb9 1006441012--- a/hosts/router/services/home-assistant.nix1013+++ b/hosts/router/services/home-assistant.nix1014@@ -34,7 +34,7 @@ in1015 ];1016 1017 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1018-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1019+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1020 easy-floorplan1021 button-card1022 # home-assistant-custom-lovelace-modules.sankey-chart1023@@ -68,8 +68,6 @@ in1024 material-you-theme1025 ];1026 1027-1028-1029 blueprints = {1030 automation = [1031 # ATTENTION: The name should contain the extension .yaml1032diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1033index a81a7ef..928f21c 1006441034--- a/hosts/tatooine/default.nix1035+++ b/hosts/tatooine/default.nix1036@@ -132,7 +132,6 @@ in1037 enableRedistributableFirmware = true;1038 sane.enable = true;1039 1040-1041 # High quality BT calls1042 # https://nixos.wiki/wiki/Bluetooth1043 bluetooth = {1044diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1045index 6210293..5c3a889 1006441046--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1047+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1048@@ -1,9 +1,9 @@1049-{ pkgs, ...}:1050+{ pkgs, ... }:1051 {1052 1053- scripts = [1054- # as python1055- # pkgs.mpvDLNA1056- ];1057+ scripts = [1058+ # as python1059+ # pkgs.mpvDLNA1060+ ];1061 1062 }1063diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1064index adc82dd..1724c86 1006441065--- a/hosts/tatooine/services/adguardhome.nix1066+++ b/hosts/tatooine/services/adguardhome.nix1067@@ -10,7 +10,7 @@1068 settings = {1069 1070 # http (since v0.107.36): Web interface configuration.1071- # address: Web interface IP address with port to listen on 1072+ # address: Web interface IP address with port to listen on1073 http.address = "127.0.0.1:8084";1074 1075 };1076diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1077index dd02f3f..f14c221 1006441078--- a/hosts/tatooine/services/avahi.nix1079+++ b/hosts/tatooine/services/avahi.nix1080@@ -21,19 +21,19 @@1081 1082 settings = {1083 publish = {1084- publish-domain = true;1085- disable-publishing = false;1086- disable-user-service-publishing = false;1087- publish-addresses = true;1088- };1089+ publish-domain = true;1090+ disable-publishing = false;1091+ disable-user-service-publishing = false;1092+ publish-addresses = true;1093+ };1094 1095 server = {1096 use-ipv6 = false; # bug with multiple hostnames1097- # # 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.1098- # # secrets.jedha.hostname;1099- # # host-name = "jedha";1100- # # enable-dbus = true;1101- #1102+ # # 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.1103+ # # secrets.jedha.hostname;1104+ # # host-name = "jedha";1105+ # # enable-dbus = true;1106+ #1107 };1108 };1109 1110diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1111index 866cf0c..6a11f8c 1006441112--- a/hosts/tatooine/services/mediatomb.nix1113+++ b/hosts/tatooine/services/mediatomb.nix1114@@ -1,65 +1,65 @@1115 # it's gerbera in fact1116 { pkgs, ... }:1117-let 1118+let1119 freeboxRevolution6Mappings = ''1120- <mappings>1121- <extension-mimetype ignore-unknown="no">1122- <map from="avi" to="video/x-msvideo"/>1123- <map from="flv" to="video/x-flv"/>1124- <map from="mkv" to="video/x-matroska"/>1125- <map from="m2t" to="video/mp2t"/>1126- <map from="m2ts" to="video/mp2t"/>1127- <map from="mp4" to="video/mp4"/>1128- <map from="mov" to="video/quicktime"/>1129- <map from="mts" to="video/mp2t"/>1130- <map from="ts" to="video/mp2t"/>1131- <map from="wmv" to="video/x-ms-wmv"/>1132- <map from="mpa" to="video/mpeg"/>1133- <map from="mpe" to="video/mpeg"/>1134- <map from="mpeg" to="video/mpeg"/>1135- <map from="mpg" to="video/mpeg"/>1136- <map from="mpv2" to="video/mpeg"/>1137- <map from="ogv" to="video/ogg"/>1138- <map from="ogm" to="video/ogg"/>1139- <map from="wmv" to="video/x-ms-wmv"/>1140- <map from="wmv" to="video/x-ms-wmv"/>1141+ <mappings>1142+ <extension-mimetype ignore-unknown="no">1143+ <map from="avi" to="video/x-msvideo"/>1144+ <map from="flv" to="video/x-flv"/>1145+ <map from="mkv" to="video/x-matroska"/>1146+ <map from="m2t" to="video/mp2t"/>1147+ <map from="m2ts" to="video/mp2t"/>1148+ <map from="mp4" to="video/mp4"/>1149+ <map from="mov" to="video/quicktime"/>1150+ <map from="mts" to="video/mp2t"/>1151+ <map from="ts" to="video/mp2t"/>1152+ <map from="wmv" to="video/x-ms-wmv"/>1153+ <map from="mpa" to="video/mpeg"/>1154+ <map from="mpe" to="video/mpeg"/>1155+ <map from="mpeg" to="video/mpeg"/>1156+ <map from="mpg" to="video/mpeg"/>1157+ <map from="mpv2" to="video/mpeg"/>1158+ <map from="ogv" to="video/ogg"/>1159+ <map from="ogm" to="video/ogg"/>1160+ <map from="wmv" to="video/x-ms-wmv"/>1161+ <map from="wmv" to="video/x-ms-wmv"/>1162 1163- <map from="flac" to="audio/x-flac"/>1164- <map from="mka" to="audio/x-matroska"/>1165- <map from="mp2" to="audio/mpeg"/>1166- <map from="mp3" to="audio/mpeg"/>1167- <map from="oga" to="audio/ogg"/>1168- <map from="wma" to="audio/x-ms-wma"/>1169- 1170- <map from="jpe" to="image/jpeg"/>1171- <map from="jpeg" to="image/jpeg"/>1172- <map from="jpg" to="image/jpeg"/>1173- <map from="gif" to="image/gif"/>1174- <map from="png" to="image/png"/>1175- 1176- <map from="ogg" to="application/ogg"/>1177- <map from="ogx" to="application/ogg"/>1178- <!-- /freebox V6 -->1179- 1180- <map from="3gp" to="video/3gpp"/>1181- <map from="asf" to="video/x-ms-asf"/>1182- <map from="asr" to="video/x-ms-asf"/>1183- <map from="asx" to="video/x-ms-asf"/>1184- <map from="lsf" to="video/x-la-asf"/>1185- <map from="lsx" to="video/x-la-asf"/>1186- <map from="movie" to="video/x-sgi-movie"/>1187- <map from="qt" to="video/quicktime"/>1188- <map from="rv" to="video/vnd.rn-realvideo"/>1189- <map from="wm" to="video/x-ms-wm"/>1190- <map from="wmx" to="video/x-ms-wmx"/>1191- <map from="wvx" to="video/x-ms-wvx"/>1192+ <map from="flac" to="audio/x-flac"/>1193+ <map from="mka" to="audio/x-matroska"/>1194+ <map from="mp2" to="audio/mpeg"/>1195+ <map from="mp3" to="audio/mpeg"/>1196+ <map from="oga" to="audio/ogg"/>1197+ <map from="wma" to="audio/x-ms-wma"/>1198+ 1199+ <map from="jpe" to="image/jpeg"/>1200+ <map from="jpeg" to="image/jpeg"/>1201+ <map from="jpg" to="image/jpeg"/>1202+ <map from="gif" to="image/gif"/>1203+ <map from="png" to="image/png"/>1204+ 1205+ <map from="ogg" to="application/ogg"/>1206+ <map from="ogx" to="application/ogg"/>1207+ <!-- /freebox V6 -->1208+ 1209+ <map from="3gp" to="video/3gpp"/>1210+ <map from="asf" to="video/x-ms-asf"/>1211+ <map from="asr" to="video/x-ms-asf"/>1212+ <map from="asx" to="video/x-ms-asf"/>1213+ <map from="lsf" to="video/x-la-asf"/>1214+ <map from="lsx" to="video/x-la-asf"/>1215+ <map from="movie" to="video/x-sgi-movie"/>1216+ <map from="qt" to="video/quicktime"/>1217+ <map from="rv" to="video/vnd.rn-realvideo"/>1218+ <map from="wm" to="video/x-ms-wm"/>1219+ <map from="wmx" to="video/x-ms-wmx"/>1220+ <map from="wvx" to="video/x-ms-wvx"/>1221 1222- <map from="aif" to="audio/x-aiff"/>1223- <map from="aifc" to="audio/x-aiff"/>1224- <map from="aiff" to="audio/x-aiff"/>1225- <map from="au" to="audio/basic"/>1226- <map from="kar" to="audio/midi"/>1227- '';1228+ <map from="aif" to="audio/x-aiff"/>1229+ <map from="aifc" to="audio/x-aiff"/>1230+ <map from="aiff" to="audio/x-aiff"/>1231+ <map from="au" to="audio/basic"/>1232+ <map from="kar" to="audio/midi"/>1233+ '';1234 1235 in1236 {1237@@ -68,37 +68,37 @@ in1238 1239 # to avoid having to rewire the permissions1240 group = "minidlna";1241- interface="wlp2s0";1242+ interface = "wlp2s0";1243 transcoding = true;1244 1245-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1246-# # Les codecs vidéos :1247-# # H.264 ;1248-# # MPEG2 ;1249-# # MS-MPEG4 (DivX 3) ;1250-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1251-# # VC1.1252-# #1253-# # Les codecs audios :1254-# # en decode :1255-# # AAC, ;1256-# # M Dolby Digital (downmix 2.0) ;1257-# # Dolby Digital Plus(downmix 2.0)1258-# # DTS core (downmix 2.0) ;1259-# # FLAC ;1260-# # MP2 ;1261-# # MP3 ;1262-# # Vorbis.1263-# #1264-# # en passthrough (via la sortie HDMI) :1265-# # AAC ;1266-# # Dolby Digital ;1267-# # Dolby Digital Plus ;1268-# # Dolby Digital TrueHD ;1269-# # DTS ;1270-# # DTS-HD (MA et HRA). 1271-# # d'apres1272-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1273+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1274+ # # Les codecs vidéos :1275+ # # H.264 ;1276+ # # MPEG2 ;1277+ # # MS-MPEG4 (DivX 3) ;1278+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1279+ # # VC1.1280+ # #1281+ # # Les codecs audios :1282+ # # en decode :1283+ # # AAC, ;1284+ # # M Dolby Digital (downmix 2.0) ;1285+ # # Dolby Digital Plus(downmix 2.0)1286+ # # DTS core (downmix 2.0) ;1287+ # # FLAC ;1288+ # # MP2 ;1289+ # # MP3 ;1290+ # # Vorbis.1291+ # #1292+ # # en passthrough (via la sortie HDMI) :1293+ # # AAC ;1294+ # # Dolby Digital ;1295+ # # Dolby Digital Plus ;1296+ # # Dolby Digital TrueHD ;1297+ # # DTS ;1298+ # # DTS-HD (MA et HRA).1299+ # # d'apres1300+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1301 1302 # 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.1303 transcodingMimeMappings = [1304@@ -135,19 +135,18 @@ in1305 1306 # 49152 already used by mdp1307 port = 49153;1308- mediaDirectories= [1309- {1310- hidden-files = false;1311- path = "/home/teto/videos";1312- recursive = true;1313- }1314- {1315- hidden-files = false;1316- path = "/home/teto/Music";1317- recursive = true;1318- }1319-1320- ];1321+ mediaDirectories = [1322+ {1323+ hidden-files = false;1324+ path = "/home/teto/videos";1325+ recursive = true;1326+ }1327+ {1328+ hidden-files = false;1329+ path = "/home/teto/Music";1330+ recursive = true;1331+ }1332 1333+ ];1334 1335 }1336diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1337index 5a3e20e..e9c8039 1006441338--- a/hosts/tatooine/services/minidlna.nix1339+++ b/hosts/tatooine/services/minidlna.nix1340@@ -13,7 +13,6 @@1341 # to receive sssdp answers1342 openFirewall = true;1343 1344-1345 # there are udp errors when it binds to wireguard network ?1346 1347 settings = {1348@@ -22,7 +21,7 @@1349 friendly_name = "tatooine";1350 # inotify = "yes";1351 log_level = "warn";1352- media_dir = [ 1353+ media_dir = [1354 # can be prefixed with V/A, to filter audio/video1355 "/home/teto/videos"1356 "/home/teto/Music"1357@@ -30,11 +29,9 @@1358 1359 # Network interface to bind (optional; self-discovers if commented out)1360 # to avoid erros on wireguard if1361- network_interface="wlp2s0"; 1362+ network_interface = "wlp2s0";1363 # to remove warnings1364 inotify = "no";1365 # db_dir =1366 };1367 }1368-1369-1370diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1371index 0c082b6..58d9c85 1006441372--- a/hosts/tatooine/services/pulseaudio.nix1373+++ b/hosts/tatooine/services/pulseaudio.nix1374@@ -1,9 +1,8 @@1375 { pkgs, ... }:1376- # cant be enabled with pipewire1377- {1378- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1379- enable = false;1380- # for ad2p profle ?1381- package = pkgs.pulseaudioFull;1382- }1383-1384+# cant be enabled with pipewire1385+{1386+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1387+ enable = false;1388+ # for ad2p profle ?1389+ package = pkgs.pulseaudioFull;1390+}1391diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1392index e158259..4b6709c 1006441393--- a/hosts/tatooine/tetos.nix1394+++ b/hosts/tatooine/tetos.nix1395@@ -9,7 +9,8 @@1396 {1397 allowUpnp = true;1398 1399-} // lib.optionalAttrs withSecrets {1400+}1401+// lib.optionalAttrs withSecrets {1402 wireguard = {1403 id = 2;1404 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1405@@ -19,4 +20,4 @@1406 flakeSelf.nixosConfigurations.neotokyo1407 ];1408 };1409-} 1410+}1411diff --git a/justfile b/justfile1412index 05ae960..6f9b6ee 1006441413--- a/justfile1414+++ b/justfile1415@@ -65,12 +65,12 @@ bootstrap-vps target:1416 --debug1417 1418 bump-meli:1419- nix-update -F --version=branch=master meli-teto1420+ nix-update -F --version=branch=master meli-teto1421 1422 # urn:schemas-upnp-org:device:MediaRenderer:11423 discover-upnp-renderers:1424- gssdp-discover --timeout=5 \1425- --target=urn:schemas-upnp-org:device:MediaRenderer:11426+ gssdp-discover --timeout=5 \1427+ --target=urn:schemas-upnp-org:device:MediaRenderer:11428 1429 # just to save the command1430 1431@@ -326,7 +326,6 @@ inspect-current-generation:1432 flash-ulanzi-tc001:1433 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1434 1435-1436 # check dlna servers on the network1437 scan-upnp:1438 nmap --script=broadcast-upnp-info 192.168.0.0/161439diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1440index c73a06e..5448ba8 1006441441--- a/nixos/modules/minidlna.nix1442+++ b/nixos/modules/minidlna.nix1443@@ -1,7 +1,8 @@1444 { config, lib, ... }:1445 let1446 cfg = config.services.minidlna;1447- mediaDirs = map (dir:1448+ mediaDirs = map (1449+ dir:1450 let1451 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1452 in1453diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1454index dd25744..86ddd25 1006441455--- a/nixos/modules/upnp.nix1456+++ b/nixos/modules/upnp.nix1457@@ -1,7 +1,8 @@1458 { config, lib, ... }:1459 let1460- cfg = config.programs.upnp;1461-in {1462+ cfg = config.programs.upnp;1463+in1464+{1465 options = {1466 programs.upnp = {1467 enable = lib.mkEnableOption "upnp";1468@@ -17,13 +18,12 @@ in {1469 config = lib.mkIf cfg.enable {1470 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1471 1472- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];1473-# # SSDP multicast discovery port (UDP)1474-# sudo ufw allow 1900/udp comment 'DLNA SSDP'1475-#1476-# # MiniDLNA HTTP streaming & web status port (TCP)1477-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1478+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];1479+ # # SSDP multicast discovery port (UDP)1480+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'1481+ #1482+ # # MiniDLNA HTTP streaming & web status port (TCP)1483+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1484 1485 };1486 }1487-1488diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1489index 3820510..e4bca1c 1006441490--- a/nixos/profiles/adguardhome.nix1491+++ b/nixos/profiles/adguardhome.nix1492@@ -9,7 +9,6 @@1493 # mutableSettings = true;1494 # openFirewall = false;1495 1496-1497 # mutableSettings = true;1498 # extraArgs = [];1499 1500diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1501index 9ceeefc..3835a79 1006441502--- a/nixos/profiles/avahi.nix1503+++ b/nixos/profiles/avahi.nix1504@@ -1,9 +1,6 @@1505 /*1506-1507-guide:1508-avahi-browse-domains 1509-1510-1511+ guide:1512+ avahi-browse-domains1513 */1514 {1515 config,1516@@ -23,7 +20,7 @@ avahi-browse-domains1517 1518 server = {1519 1520- # List of non-local DNS domains to be browsed.1521+ # List of non-local DNS domains to be browsed.1522 browse-domains = [1523 # "0pointer.de"1524 # "zeroconf.org"1525diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix1526index db4eb98..38e8c16 1006441527--- a/nixos/profiles/desktop/default.nix1528+++ b/nixos/profiles/desktop/default.nix1529@@ -2,7 +2,6 @@1530 {1531 fonts.enableDefaultPackages = true;1532 1533-1534 console = {1535 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131281536 earlySetup = true;1537diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1538index 3f9282d..9039e39 1006441539--- a/nixos/profiles/desktop/programs/flyline.nix1540+++ b/nixos/profiles/desktop/programs/flyline.nix1541@@ -1,5 +1,5 @@1542 {1543 enable = true;1544- # 1545+ #1546 # package = ;1547 }1548diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix1549index daadd3f..d3fc61c 1006441550--- a/nixos/profiles/desktop/users/default.nix1551+++ b/nixos/profiles/desktop/users/default.nix1552@@ -1,3 +1,3 @@1553 {1554- groups.minidlna = {};1555+ groups.minidlna = { };1556 }1557diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix1558index aac0d91..995a67c 1006441559--- a/nixos/profiles/home-assistant.nix1560+++ b/nixos/profiles/home-assistant.nix1561@@ -17,13 +17,12 @@1562 # # "deconz" # interface for zigbee conbee II1563 # ];1564 1565-1566 package = pkgs.home-assistant.override {1567 1568 extraPackages = ps: [1569 ps.psycopg21570- # disabled because of ? 1571- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 1572+ # disabled because of ?1573+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await1574 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619081575 # # enables several default components1576 # ps.hass-nabucasa # to be able to login to cloud1577@@ -74,7 +73,7 @@1578 assist_pipeline = { };1579 # bluetooth = {}; # NO1580 # # enables several default components. DO NOT REMOVE (?)1581- default_config = { }; 1582+ default_config = { };1583 # map = {}; # show a local map1584 network = { };1585 homeassistant = {