nixbot

builds

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

1treefmt v2.6.0traversed 1636 files2emitted 882 files for processing3formatted 882 files (49 changed) in 1.326s4 M by-name/ko/kodi-tetos/package.nix5 M by-name/ze/zeal-teto/package.nix6 M config/bash/flyline.sh7 M config/nvim/after/ftplugin/Avante.lua8 M config/nvim/after/ftplugin/RikaiPopup.lua9 M config/nvim/lua/init-manual.lua10 M config/nvim/lua/plugins/kitty-scrollback.lua11 M hm/modules/audiocast.nix12 M hm/modules/flyline.nix13 M hm/modules/kitty.nix14 M hm/modules/microsoft.nix15 M hm/modules/package-sets.nix16 M hm/profiles/teto-desktop/default.nix17 M hm/profiles/teto-desktop/programs/codex.nix18 M hm/profiles/teto-desktop/programs/firefox.nix19 M hm/profiles/teto-desktop/programs/jujutsu.nix20 M hm/profiles/teto-desktop/programs/neovim.nix21 M hm/profiles/teto-desktop/programs/rofi.nix22 M hm/profiles/teto-desktop/xdg/default.nix23 M hosts/jedha/default.nix24 M hosts/jedha/home-manager/users/teto/default.nix25 M hosts/jedha/home-manager/users/teto/programs/mcp.nix26 M hosts/jedha/services/avahi.nix27 M hosts/jedha/services/minidlna.nix28 M hosts/jedha/services/opentelemetry-collector.nix29 M hosts/jedha/services/upmpdcli.nix30 M hosts/jedha/systemd.nix31 M hosts/router/services/home-assistant.nix32 M hosts/tatooine/default.nix33 M hosts/tatooine/home-manager/users/teto/programs/mpv.nix34 M hosts/tatooine/services/adguardhome.nix35 M hosts/tatooine/services/avahi.nix36 M hosts/tatooine/services/mediatomb.nix37 M hosts/tatooine/services/minidlna.nix38 M hosts/tatooine/services/pulseaudio.nix39 M hosts/tatooine/tetos.nix40 M hosts/wsl/default.nix41 M hosts/wsl/hm-teto.nix42 M hosts/wsl/llamacpp.nix43 M justfile44 M nixos/modules/minidlna.nix45 M nixos/modules/upnp.nix46 M nixos/profiles/adguardhome.nix47 M nixos/profiles/avahi.nix48 M nixos/profiles/desktop/default.nix49 M nixos/profiles/desktop/programs/flyline.nix50 M nixos/profiles/desktop/users/default.nix51 M nixos/profiles/home-assistant.nix52 M nixos/profiles/pixiecore.nix53diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix54index a4a9a74..4adedee 10064455--- a/by-name/ko/kodi-tetos/package.nix56+++ b/by-name/ko/kodi-tetos/package.nix57@@ -1,11 +1,13 @@58 { kodi, makeWrapper }:59 60 let61- kodiWithPackages = kodi.withPackages (p: with p; [62- jellyfin63- # pvr-iptvsimple64- vfs-sftp65- ]);66+ kodiWithPackages = kodi.withPackages (67+ p: with p; [68+ jellyfin69+ # pvr-iptvsimple70+ vfs-sftp71+ ]72+ );73 in74 kodiWithPackages.overrideAttrs (oldAttrs: {75 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];76diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix77index 9442d75..a9d8692 10064478--- a/by-name/ze/zeal-teto/package.nix79+++ b/by-name/ze/zeal-teto/package.nix80@@ -1,10 +1,9 @@81 { zeal }:82 zeal.overrideAttrs (oa: {83 84- # export QMLSCENE_DEVICE=software85- postInstall = ''86- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software87- '';88-89- })90+ # export QMLSCENE_DEVICE=software91+ postInstall = ''92+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software93+ '';94 95+})96diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh97index c2b1a84..6b647be 10064498--- a/config/bash/flyline.sh99+++ b/config/bash/flyline.sh100@@ -10,12 +10,11 @@ flyline history --backend flyline101 # it flickers102 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 2103 104-# Codex: change 105+# Codex: change106 flyline set-agent-mode \107- --system-prompt "Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command. " \108- --trigger-prefix ': ' \109- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'110-111+ --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. " \112+ --trigger-prefix ': ' \113+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'114 115 # Antigravity:116 # flyline set-agent-mode \117@@ -26,7 +25,6 @@ flyline set-agent-mode \118 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"119 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR120 121-122 # precmd_functions+=(set_ps1)123 # Now you can use this animation in your prompt. For example:124 PS1='\u@\h:\w MOUSE_MODE \n$ '125@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''126 127 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽128 129-130 # Experiment with higher frame rates for smooth transitions:131 # flyline create-prompt-widget animation --name "john" --fps 24 \132 # '\e[38;2;255;0;0m\u' \133@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''134 # '\e[38;2;255;0;63m\u' \135 # '\e[38;2;255;0;47m\u' \136 # '\e[38;2;255;0;31m\u' \137-# '\e[38;2;255;0;15m\u' 138+# '\e[38;2;255;0;15m\u'139diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua140index 85acdb0..9d9296e 100644141--- a/config/nvim/after/ftplugin/Avante.lua142+++ b/config/nvim/after/ftplugin/Avante.lua143@@ -14,7 +14,6 @@ vim.opt.showbreak = ''144 -- - update_content145 -- - on_state_change146 147-148 -- local sidebar = require('avante').get()149 150 -- vim.api.nvim_create_autocmd('WinEnter', {151@@ -29,8 +28,8 @@ vim.opt.showbreak = ''152 -- vim.wo.cursorline = false153 vim.wo.foldcolumn = '3' -- auto154 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.155--- could work well, react onto 156-vim.wo.foldmethod = "expr"157+-- could work well, react onto158+vim.wo.foldmethod = 'expr'159 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'160 161 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer162diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua163index b321120..bc9e2c6 100644164--- a/config/nvim/after/ftplugin/RikaiPopup.lua165+++ b/config/nvim/after/ftplugin/RikaiPopup.lua166@@ -3,10 +3,9 @@167 vim.keymap.set('n', '<localleader>s', function()168 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha169 170- vim.fn.jobstart({ 171- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })172-173+ vim.fn.jobstart({174+ 'mpv',175+ '--no-video',176+ vim.fn.expand('~/home/data/audio/notif1.wav'),177+ }, { detach = true })178 end, { buffer = true, desc = 'Play sound' })179-180-181-182diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua183index 1aed1c2..aecf410 100644184--- a/config/nvim/lua/init-manual.lua185+++ b/config/nvim/lua/init-manual.lua186@@ -949,8 +949,8 @@ end, { desc = 'Go to file, create if missing' })187 -- Outside of the fork it kills the plugin so careful188 -- normally overriden by setup call189 vim.g.avante = {190- -- -- print error messages, set to false to avoid issues with inspect_ai191- debug = false, 192+ -- -- print error messages, set to false to avoid issues with inspect_ai193+ debug = false,194 -- log_level =195 log_level = vim.log.levels.DEBUG,196 197@@ -1090,7 +1090,7 @@ vim.g.avante = {198 windows = {199 position = 'right',200 fillchars = 'eob: ',201- -- wrap = false,202+ -- wrap = false,203 -- TODO remove204 sidebar_header = {205 enabled = true, -- true, false to enable/disable the header206@@ -1355,8 +1355,8 @@ vim.api.nvim_create_autocmd({ 'User' }, {207 vim.notify('avante: LLM answered')208 -- Leave the event callback before closing all windows, including modified buffers.209 -- vim.schedule(function()210- -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua211- --212+ -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua213+ --214 -- vim.cmd('qall!')215 -- end)216 end,217@@ -1373,22 +1373,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {218 --219 -- ╰─220 221-222-vim.api.nvim_create_autocmd(223- 'PackChanged',224- {225+vim.api.nvim_create_autocmd('PackChanged', {226 callback = function(ev)227- local name, kind = ev.data.spec.name, ev.data.kind228- print("package name ", name)229- vim.print("spec ", ev.data.spec)230- -- vim.print("version ", ev.data.spec.version)231-232- -- print("package kind ", kind)233- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then234- -- -- Call `:AvanteBuild` to download prebuilt libraries235- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()236- -- end237- end238- }239-)240-241+ local name, kind = ev.data.spec.name, ev.data.kind242+ print('package name ', name)243+ vim.print('spec ', ev.data.spec)244+ -- vim.print("version ", ev.data.spec.version)245+246+ -- print("package kind ", kind)247+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then248+ -- -- Call `:AvanteBuild` to download prebuilt libraries249+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()250+ -- end251+ end,252+})253diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua254index ffcb08a..8b60a67 100644255--- a/config/nvim/lua/plugins/kitty-scrollback.lua256+++ b/config/nvim/lua/plugins/kitty-scrollback.lua257@@ -2,43 +2,43 @@258 -- if you want to create autocommands259 260 --261- -- myconfig = {262- -- kitty_get_text = {263- -- ansi = false,264- -- },265- -- },266- -- myfnconfig = function(kitty_data)267- -- return {268- -- kitty_get_text = {269- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',270- -- },271- -- }272- -- end,273+-- myconfig = {274+-- kitty_get_text = {275+-- ansi = false,276+-- },277+-- },278+-- myfnconfig = function(kitty_data)279+-- return {280+-- kitty_get_text = {281+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',282+-- },283+-- }284+-- end,285 require('kitty-scrollback').setup(286 -- global configuration287 {288- kitty_get_text = {289- -- boolean If true, the text will include the ANSI formatting escape codes for colors,290- ansi = true,291- extent = 'all',292- },293- -- scrollback_columns = 300,294- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external295- scrollback_tempfile = false,296- keymaps_enabled = false,297- close_after_yank = true,298- status_window = {299+ kitty_get_text = {300+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,301+ ansi = true,302+ extent = 'all',303+ },304+ -- scrollback_columns = 300,305+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external306+ scrollback_tempfile = false,307+ keymaps_enabled = false,308+ close_after_yank = true,309+ status_window = {310 311- style_simple = true, -- user may not have Nerd Fonts installed312- show_timer = true,313+ style_simple = true, -- user may not have Nerd Fonts installed314+ show_timer = true,315 316- autoclose = true,317- },318- paste_window = {319- -- yank_register = '',320- -- boolean? If true, the yank_register copies content to the paste window. If false, d321- -- -- isable yank to paste window322- -- yank_register_enabled = false,323- }324+ autoclose = true,325+ },326+ paste_window = {327+ -- yank_register = '',328+ -- boolean? If true, the yank_register copies content to the paste window. If false, d329+ -- -- isable yank to paste window330+ -- yank_register_enabled = false,331+ },332 }333 )334diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix335index e95570a..ae177f7 100644336--- a/hm/modules/audiocast.nix337+++ b/hm/modules/audiocast.nix338@@ -1,7 +1,13 @@339-{ config, lib, pkgs, ... }:340+{341+ config,342+ lib,343+ pkgs,344+ ...345+}:346 let347- cfg = config.services.audiocast;348-in {349+ cfg = config.services.audiocast;350+in351+{352 options = {353 services.audiocast = {354 enable = lib.mkEnableOption "audiocast-stream";355@@ -16,44 +22,43 @@ in {356 };357 config = lib.mkIf cfg.enable {358 359-360- # Renderer friendlyName to discover over SSDP361- # Hard-coded AVTransport control URL (skips SSDP discovery)362- # else we give url363- # ❯ yamaha discover364- # name host model udn365- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e366- # port 8082 Local HTTP port for the stream367- xdg.configFile."audiocast/config" = {368- enable = false;369- text = ''370- [audiocast]371- name = Espace Musical372- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)373- mode = app374- sink = audiocast375- sink_description = AudioCast (DLNA)376- '';377-};378-379- systemd.user.services.audiocast-stream = {380- Unit = {381- Description = "Stream PipeWire audio to a DLNA renderer";382- After = [383- "pipewire.service"384- "pipewire-pulse.service"385- ];386- Wants = [ "pipewire-pulse.service" ];387+ # Renderer friendlyName to discover over SSDP388+ # Hard-coded AVTransport control URL (skips SSDP discovery)389+ # else we give url390+ # ❯ yamaha discover391+ # name host model udn392+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e393+ # port 8082 Local HTTP port for the stream394+ xdg.configFile."audiocast/config" = {395+ enable = false;396+ text = ''397+ [audiocast]398+ name = Espace Musical399+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)400+ mode = app401+ sink = audiocast402+ sink_description = AudioCast (DLNA)403+ '';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+ systemd.user.services.audiocast-stream = {413+ Unit = {414+ Description = "Stream PipeWire audio to a DLNA renderer";415+ After = [416+ "pipewire.service"417+ "pipewire-pulse.service"418+ ];419+ Wants = [ "pipewire-pulse.service" ];420+ };421+ Service = {422+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";423+ Restart = "on-failure";424+ # The renderer may be asleep or temporarily off the network. The425+ # program exits when discovery fails, so retry without a tight loop.426+ RestartSec = 30;427+ };428+ Install.WantedBy = [ "default.target" ];429 };430- Install.WantedBy = [ "default.target" ];431- };432 };433 434 }435diff --git a/hm/modules/flyline.nix b/hm/modules/flyline.nix436index 7381439..4065a82 100644437--- a/hm/modules/flyline.nix438+++ b/hm/modules/flyline.nix439@@ -1,8 +1,15 @@440-# 441-{ config, lib, pkgs, osConfig ? null, ... }:442+#443+{444+ config,445+ lib,446+ pkgs,447+ osConfig ? null,448+ ...449+}:450 let451- cfg = config.programs.flyline;452-in {453+ cfg = config.programs.flyline;454+in455+{456 options = {457 programs.flyline = {458 459@@ -37,6 +44,6 @@ in {460 flyline history --backend flyline461 source ${./config/bash/flyline.sh}462 463- '';464+ '';465 };466 }467diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix468index b6d495f..e7da295 100644469--- a/hm/modules/kitty.nix470+++ b/hm/modules/kitty.nix471@@ -54,7 +54,7 @@ in472 map kitty_mod+h kitty_scrollback_nvim ./tmp473 # Browse output of the last shell command in nvim474 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output475- '';476+ '';477 478 #479 # # Browse output of the last shell command in nvim480diff --git a/hm/modules/microsoft.nix b/hm/modules/microsoft.nix481index 218784e..da475a8 100644482--- a/hm/modules/microsoft.nix483+++ b/hm/modules/microsoft.nix484@@ -1,8 +1,14 @@485 # enable this module to work in a microsoft environment486-{ config, lib, pkgs, ... }:487+{488+ config,489+ lib,490+ pkgs,491+ ...492+}:493 let494- cfg = config.microsoft;495-in {496+ cfg = config.microsoft;497+in498+{499 options = {500 microsoft = {501 enable = lib.mkEnableOption "microsoft";502diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix503index 8d60438..e76a354 100644504--- a/hm/modules/package-sets.nix505+++ b/hm/modules/package-sets.nix506@@ -62,7 +62,6 @@ in507 508 };509 510-511 # this gets merged by default512 config = lib.mkMerge [513 {514@@ -115,7 +114,6 @@ in515 pkgs.blazingjj516 flakeSelf.inputs.jj-gh.packages.${system}.default517 518-519 # pkgs.gg-jj520 # pkgs.lazyjj521 # pkgs.jj-fzf522@@ -419,7 +417,6 @@ in523 lurk # a rust strace524 lsof # to see open files525 526-527 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship528 libossp_uuid # for the 'libuuid' executable529 530@@ -490,7 +487,6 @@ in531 532 # rainfrog # database exploration533 534-535 process-compose # docker-compose - like536 # rpl # to replace strings across files537 repgrep # replace matches found by rg538@@ -502,7 +498,7 @@ in539 tmux # when connecting via ssh540 trurl # used to parse url in the firefox-router executable541 universal-ctags # there are many different ctags, be careful !542- uv # to install python packages543+ uv # to install python packages544 unar # used to view archives by yazi (now using ouch ?)545 vifm546 viu # a console image viewer547@@ -697,7 +693,7 @@ in548 pkgs.tsukumi549 ];550 })551- (mkIf cfg.jellyfin {552+ (mkIf cfg.jellyfin {553 554 home.packages = [555 556@@ -708,13 +704,12 @@ in557 # pkgs.feishin # GUI558 # pkgs.jellycli # could not login :/559 560-561 # VIDEO compatible562 # - Jellyfin MPV Shim563 (ignoreBroken pkgs.tsukimi) # gtk+rust music player GUI564 pkgs.jellyfin-desktop565 pkgs.jellyfin-mpv-shim566- # jellyhaj # not upstreamed yet 567+ # jellyhaj # not upstreamed yet568 # fladder # nice GUI569 # jftui too minimalistic570 # pkgs.jellyflix # nice571diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix572index 5816c79..723f74e 100644573--- a/hm/profiles/teto-desktop/default.nix574+++ b/hm/profiles/teto-desktop/default.nix575@@ -113,7 +113,7 @@ in576 577 home.packages =578 with pkgs;579- let 580+ let581 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;582 583 # lux-cli-teto = lux-cli;584@@ -124,7 +124,7 @@ in585 in586 587 [588- kodi-teto 589+ kodi-teto590 codex # openai agent591 codex-acp # originated from zed-industries, used in avante592 593@@ -188,8 +188,7 @@ in594 # kaggle # kaggle interface595 # python3Packages.kaggle596 597-598- sonic-pi # for live music coding599+ sonic-pi # for live music coding600 stow601 systemctl-tui602 timr-tui # rust clock603@@ -267,7 +266,7 @@ in604 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;605 TETOS_BUILDER_JEDHA = builder_jedha;606 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;607- inherit (secrets) 608+ inherit (secrets)609 TAVILY_API_KEY610 FIRECRAWL_API_KEY611 CONFIDENT_AI_API_KEY612diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix613index e282359..ea63df4 100644614--- a/hm/profiles/teto-desktop/programs/codex.nix615+++ b/hm/profiles/teto-desktop/programs/codex.nix616@@ -1,6 +1,5 @@617 {618 619-620 enable = true;621 enableMcpIntegration = true;622 # CODEX_HOME/AGENTS.md.623diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix624index 9b41b6c..aabc790 100644625--- a/hm/profiles/teto-desktop/programs/firefox.nix626+++ b/hm/profiles/teto-desktop/programs/firefox.nix627@@ -95,19 +95,18 @@ in628 # extraConfig =629 id = 0;630 631- userChrome =632- ''633- /* Hide tab bar in FF Quantum */634- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {635- #TabsToolbar {636- visibility: collapse !important;637- margin-bottom: 21px !important;638- }639-640- }641- '';642-643- # userContent = 644+ userChrome = ''645+ /* Hide tab bar in FF Quantum */646+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {647+ #TabsToolbar {648+ visibility: collapse !important;649+ margin-bottom: 21px !important;650+ }651+652+ }653+ '';654+655+ # userContent =656 # ''657 # /* Hide scrollbar in FF Quantum */658 # *{scrollbar-width:none !important}659diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix660index aacec43..9037ef9 100644661--- a/hm/profiles/teto-desktop/programs/jujutsu.nix662+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix663@@ -34,9 +34,12 @@664 name = "teto";665 };666 ui = {667- # jj splits puts the cursor in a f**** position, we need $line to restore 668+ # jj splits puts the cursor in a f**** position, we need $line to restore669 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes670- editor = ["nvim" "+$line"];671+ editor = [672+ "nvim"673+ "+$line"674+ ];675 default-command = "status";676 merge-editor = "nvim";677 # Enable pagination for commands that support it (default)678diff --git a/hm/profiles/teto-desktop/programs/neovim.nix b/hm/profiles/teto-desktop/programs/neovim.nix679index 90413e9..ce5e554 100644680--- a/hm/profiles/teto-desktop/programs/neovim.nix681+++ b/hm/profiles/teto-desktop/programs/neovim.nix682@@ -246,7 +246,7 @@ let683 fswatch # better file watching starting with 0.10684 # go # for gitlab.nvim, we can probably ditch it afterwards685 686- lemminx # 687+ lemminx688 luajitPackages.luacheck689 690 luau-lsp691diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix692index be52e45..f9d09d8 100644693--- a/hm/profiles/teto-desktop/programs/rofi.nix694+++ b/hm/profiles/teto-desktop/programs/rofi.nix695@@ -37,8 +37,8 @@696 697 location = "center";698 modes = [699- # modes: [ combi ];700- # combi-modes: [ window, drun, run ];701+ # modes: [ combi ];702+ # combi-modes: [ window, drun, run ];703 704 ];705 706diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix707index 0dad1af..11dd2ad 100644708--- a/hm/profiles/teto-desktop/xdg/default.nix709+++ b/hm/profiles/teto-desktop/xdg/default.nix710@@ -101,12 +101,12 @@711 "bash/bashrc".text = ''712 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"713 source "$script_dir/manual.sh"714- ''715- # check if flyline defined too ?716- + lib.optionalString osConfig.programs.flyline.enable '' 717- source "$script_dir/flyline.sh"718+ ''719+ # check if flyline defined too ?720+ + lib.optionalString osConfig.programs.flyline.enable ''721+ source "$script_dir/flyline.sh"722 723- '';724+ '';725 726 "nvim/lua/generated-by-nix.lua" =727 let728diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix729index 4e65ba3..401717a 100644730--- a/hosts/jedha/default.nix731+++ b/hosts/jedha/default.nix732@@ -91,12 +91,20 @@ in733 # Upmpdcli's local-library server needs both discovery and HTTP access.734 networking.firewall = lib.mkIf config.services.upmpdcli.enable {735 allowedUDPPorts = [ 1900 ];736- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];737+ allowedTCPPorts = with config.services.upmpdcli.configuration; [738+ upnpport739+ uprclport740+ ];741 };742 743 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {744 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.745- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];746+ path = [747+ pkgs.recoll748+ pkgs.python3749+ pkgs.openssl750+ pkgs.diffutils751+ ];752 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];753 };754 755diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix756index babb3bb..861919d 100644757--- a/hosts/jedha/home-manager/users/teto/default.nix758+++ b/hosts/jedha/home-manager/users/teto/default.nix759@@ -104,7 +104,6 @@ in760 btop-cuda # for jedha761 brush # a rust implementation of bash762 763-764 # creates conflicts since it brings python and several executables765 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService766 767@@ -147,9 +146,9 @@ in768 # bridge-utils# pour brctl769 # vscode-css-languageserver # to showcase 'cssls' lsp server770 771- rura # to build shell pipelines772+ rura # to build shell pipelines773 # termusic # terminal music774- 775+776 ];777 778 package-sets = {779diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix780index 3378a39..9ce7079 100644781--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix782+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix783@@ -1,36 +1,34 @@784 { pkgs, lib, ... }:785 {786 787-788 enable = true;789 790 # github:utensils/mcp-nixos791- servers = 792- {793-794- nixos = {795- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";796- };797-798- # https://github.com/homeassistant-ai/ha-mcp799- ha-mcp = {800-801- command = "${lib.getExe pkgs.ha-mcp}";802-803- };804-805- # everything = {806- # command = "npx";807- # args = [ "-y" "@modelcontextprotocol/server-everything" ];808- # };809- # context7 = {810- # url = "https://mcp.context7.com/mcp";811- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";812- # };813- # codeberg = {814- # command = "/path/to/forgejo-mcp";815- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];816- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";817- # };818- };819+ servers = {820+821+ nixos = {822+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";823+ };824+825+ # https://github.com/homeassistant-ai/ha-mcp826+ ha-mcp = {827+828+ command = "${lib.getExe pkgs.ha-mcp}";829+830+ };831+832+ # everything = {833+ # command = "npx";834+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];835+ # };836+ # context7 = {837+ # url = "https://mcp.context7.com/mcp";838+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";839+ # };840+ # codeberg = {841+ # command = "/path/to/forgejo-mcp";842+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];843+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";844+ # };845+ };846 }847diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix848index 083732e..09017c2 100644849--- a/hosts/jedha/services/avahi.nix850+++ b/hosts/jedha/services/avahi.nix851@@ -13,7 +13,6 @@852 853 debug = true;854 855-856 # allowInterfaces = [857 # "wlp10s0"858 # ];859@@ -30,13 +29,12 @@860 };861 862 publish = {863- disable-publishing = false;864- disable-user-service-publishing = false;865- publish-addresses = true;866- };867-868+ disable-publishing = false;869+ disable-user-service-publishing = false;870+ publish-addresses = true;871 };872 873+ };874 875 nssmdns4 = true;876 # publish = {877diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix878index 7f3f4aa..f62f7ed 100644879--- a/hosts/jedha/services/minidlna.nix880+++ b/hosts/jedha/services/minidlna.nix881@@ -7,7 +7,6 @@882 # announceInterval = 60;883 openFirewall = true;884 885-886 # there are udp errors when it binds to wireguard network ?887 888 settings = {889@@ -16,9 +15,9 @@890 friendly_name = "jedha";891 # inotify = "yes";892 log_level = "warn";893- media_dir = [ 894+ media_dir = [895 # can be prefixed with V/A, to filter audio/video896- "/mnt/ext/music" 897+ "/mnt/ext/music"898 ];899 inotify = "yes";900 # db_dir =901diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix902index 28cc3b4..1d1609c 100644903--- a/hosts/jedha/services/opentelemetry-collector.nix904+++ b/hosts/jedha/services/opentelemetry-collector.nix905@@ -1,23 +1,22 @@906 {907 908-909 enable = true;910 911 settings =912-let913- port = 4318;914-in915+ let916+ port = 4318;917+ in918 {919- exporters.debug.verbosity = "detailed";920- receivers.otlp.protocols = {921- http.endpoint = "0.0.0.0:${toString port}";922- };923- service = {924- pipelines.logs = {925- receivers = [ "otlp" ];926- exporters = [ "debug" ];927- };928- };929+ exporters.debug.verbosity = "detailed";930+ receivers.otlp.protocols = {931+ http.endpoint = "0.0.0.0:${toString port}";932+ };933+ service = {934+ pipelines.logs = {935+ receivers = [ "otlp" ];936+ exporters = [ "debug" ];937+ };938+ };939 940- };941+ };942 }943diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix944index ef04f30..390f091 100644945--- a/hosts/jedha/services/upmpdcli.nix946+++ b/hosts/jedha/services/upmpdcli.nix947@@ -1,12 +1,12 @@948 /*949-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 950- should change playback if rmpd and upmpdcli are controlling the same MPD instance951- 952- • 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.953-• 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.954+ 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, it955+ should change playback if rmpd and upmpdcli are controlling the same MPD instance956 957-mpd now has a plugin that can play music from upnp server 958-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction959+ • 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.960+ • 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.961+962+ mpd now has a plugin that can play music from upnp server963+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction964 */965 966 { pkgs, lib, ... }:967@@ -44,7 +44,7 @@ in968 mpdport = 6600;969 # try to see if I can control it myself970 ownqueue = 0;971- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 972+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo973 # control the playlist. The client can disconnect after playlist was created974 openhome = 0;975 upnpav = 1;976diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix977index 59d7129..e0cab47 100644978--- a/hosts/jedha/systemd.nix979+++ b/hosts/jedha/systemd.nix980@@ -34,61 +34,60 @@ in981 })982 # disabled because ha-mcp broken983 (lib.mkIf false {984- ha-mcp = {985- description = "Home Assistant MCP server";986- wantedBy = [ "multi-user.target" ];987- wants = [ "network-online.target" ];988- after = [ "network-online.target" ];989- environment = {990- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";991- HOME = "/var/lib/ha-mcp";992- MCP_HOST = "127.0.0.1";993- MCP_PORT = "8086";994- };995- serviceConfig = {996- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";997- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.998- EnvironmentFile = "/var/lib/ha-mcp/environment";999- DynamicUser = true;1000- StateDirectory = "ha-mcp";1001- WorkingDirectory = "/var/lib/ha-mcp";1002- Restart = "on-failure";1003- RestartSec = 5;1004- UMask = "0077";1005- };1006+ ha-mcp = {1007+ description = "Home Assistant MCP server";1008+ wantedBy = [ "multi-user.target" ];1009+ wants = [ "network-online.target" ];1010+ after = [ "network-online.target" ];1011+ environment = {1012+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";1013+ HOME = "/var/lib/ha-mcp";1014+ MCP_HOST = "127.0.0.1";1015+ MCP_PORT = "8086";1016 };1017+ serviceConfig = {1018+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";1019+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.1020+ EnvironmentFile = "/var/lib/ha-mcp/environment";1021+ DynamicUser = true;1022+ StateDirectory = "ha-mcp";1023+ WorkingDirectory = "/var/lib/ha-mcp";1024+ Restart = "on-failure";1025+ RestartSec = 5;1026+ UMask = "0077";1027+ };1028+ };1029 1030- # copied from https://github.com/NixOS/nixpkgs/pull/5442521031- # lib.recursiveUpdate slib.systemd.serviceDefaults {1032- speech-to-phrase = {1033- # after = [ "home-assistant.service" ];1034- script = lib.concatStringsSep " " [1035- (lib.getExe pkgs.speech-to-phrase)1036- "--models-dir"1037- "\"$STATE_DIRECTORY/models\""1038- "--train-dir"1039- "\"$STATE_DIRECTORY/train\""1040- # "--custom-sentences-dir" ""1041- "--uri 'tcp://127.0.0.1:10400'"1042- "--hass-websocket-uri"1043- "ws://${hassHost}:${toString hassPort}/api/websocket"1044- "--retrain-on-start"1045- "--retrain-on-connect"1046- "--retrain-seconds"1047- "300"1048- ];1049- serviceConfig = {1050- #1051- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1052- Group = "speech-to-phrase";1053- StateDirectory = "speech-to-phrase";1054- User = "speech-to-phrase";1055- # TODO: hardening1056- };1057+ # copied from https://github.com/NixOS/nixpkgs/pull/5442521058+ # lib.recursiveUpdate slib.systemd.serviceDefaults {1059+ speech-to-phrase = {1060+ # after = [ "home-assistant.service" ];1061+ script = lib.concatStringsSep " " [1062+ (lib.getExe pkgs.speech-to-phrase)1063+ "--models-dir"1064+ "\"$STATE_DIRECTORY/models\""1065+ "--train-dir"1066+ "\"$STATE_DIRECTORY/train\""1067+ # "--custom-sentences-dir" ""1068+ "--uri 'tcp://127.0.0.1:10400'"1069+ "--hass-websocket-uri"1070+ "ws://${hassHost}:${toString hassPort}/api/websocket"1071+ "--retrain-on-start"1072+ "--retrain-on-connect"1073+ "--retrain-seconds"1074+ "300"1075+ ];1076+ serviceConfig = {1077+ #1078+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1079+ Group = "speech-to-phrase";1080+ StateDirectory = "speech-to-phrase";1081+ User = "speech-to-phrase";1082+ # TODO: hardening1083 };1084+ };1085 1086- }1087- )1088+ })1089 ];1090 1091 # just to test1092diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1093index 5a92154..337beb9 1006441094--- a/hosts/router/services/home-assistant.nix1095+++ b/hosts/router/services/home-assistant.nix1096@@ -34,7 +34,7 @@ in1097 ];1098 1099 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1100-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1101+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1102 easy-floorplan1103 button-card1104 # home-assistant-custom-lovelace-modules.sankey-chart1105@@ -68,8 +68,6 @@ in1106 material-you-theme1107 ];1108 1109-1110-1111 blueprints = {1112 automation = [1113 # ATTENTION: The name should contain the extension .yaml1114diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1115index a81a7ef..928f21c 1006441116--- a/hosts/tatooine/default.nix1117+++ b/hosts/tatooine/default.nix1118@@ -132,7 +132,6 @@ in1119 enableRedistributableFirmware = true;1120 sane.enable = true;1121 1122-1123 # High quality BT calls1124 # https://nixos.wiki/wiki/Bluetooth1125 bluetooth = {1126diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1127index 6210293..5c3a889 1006441128--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1129+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1130@@ -1,9 +1,9 @@1131-{ pkgs, ...}:1132+{ pkgs, ... }:1133 {1134 1135- scripts = [1136- # as python1137- # pkgs.mpvDLNA1138- ];1139+ scripts = [1140+ # as python1141+ # pkgs.mpvDLNA1142+ ];1143 1144 }1145diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1146index adc82dd..1724c86 1006441147--- a/hosts/tatooine/services/adguardhome.nix1148+++ b/hosts/tatooine/services/adguardhome.nix1149@@ -10,7 +10,7 @@1150 settings = {1151 1152 # http (since v0.107.36): Web interface configuration.1153- # address: Web interface IP address with port to listen on 1154+ # address: Web interface IP address with port to listen on1155 http.address = "127.0.0.1:8084";1156 1157 };1158diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1159index dd02f3f..f14c221 1006441160--- a/hosts/tatooine/services/avahi.nix1161+++ b/hosts/tatooine/services/avahi.nix1162@@ -21,19 +21,19 @@1163 1164 settings = {1165 publish = {1166- publish-domain = true;1167- disable-publishing = false;1168- disable-user-service-publishing = false;1169- publish-addresses = true;1170- };1171+ publish-domain = true;1172+ disable-publishing = false;1173+ disable-user-service-publishing = false;1174+ publish-addresses = true;1175+ };1176 1177 server = {1178 use-ipv6 = false; # bug with multiple hostnames1179- # # 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.1180- # # secrets.jedha.hostname;1181- # # host-name = "jedha";1182- # # enable-dbus = true;1183- #1184+ # # 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.1185+ # # secrets.jedha.hostname;1186+ # # host-name = "jedha";1187+ # # enable-dbus = true;1188+ #1189 };1190 };1191 1192diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1193index 4cd2e1d..a9725d3 1006441194--- a/hosts/tatooine/services/mediatomb.nix1195+++ b/hosts/tatooine/services/mediatomb.nix1196@@ -1,6 +1,6 @@1197 # it's gerbera in fact1198 { pkgs, ... }:1199-let 1200+let1201 # <mappings>1202 # freeboxRevolution6Mappings = ''1203 # <extension-mimetype ignore-unknown="no">1204@@ -68,78 +68,77 @@ in1205 1206 # to avoid having to rewire the permissions1207 group = "minidlna";1208- interface="wlp2s0";1209+ interface = "wlp2s0";1210 # we should use subsitute for the VLC/ffmpedg commands1211-# postInstall = ''1212-# substitute $src/config.in $out/config \1213-# --replace-fail '@X@' "$X"1214-# '';1215-#1216-# For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1217-transcoding = ''<transcoding enabled="yes" >1218- <profile name="freebox-h264" enabled="yes" type="external">1219- <mimetype>video/mpeg</mimetype>1220- <accept-url>no</accept-url>1221- <first-resource>yes</first-resource>1222- <accept-ogg-theora>no</accept-ogg-theora>1223- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1224- arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1225- <buffer size="14400000" chunk-size="512000" fill-size="120000" />1226- </profile>1227- <profile name="freebox-aac" enabled="yes" type="external">1228- <mimetype>audio/aac</mimetype>1229- <accept-url>no</accept-url>1230- <first-resource>yes</first-resource>1231- <accept-ogg-theora>no</accept-ogg-theora>1232- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1233- arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1234- <buffer size="1048576" chunk-size="131072" fill-size="262144" />1235- </profile>1236- <mimetype-profile-mappings>1237- <!-- enable freebox ones -->1238- <transcode mimetype="video/x-flv" using="freebox-h264" />1239- <transcode mimetype="application/ogg" using="freebox-h264" />1240- <transcode mimetype="video/x-matroska" using="freebox-h264" />1241- <transcode mimetype="video/x-msvideo" using="freebox-h264" />1242- <transcode mimetype="audio/ogg" using="freebox-aac" />1243- </mimetype-profile-mappings>1244- </transcoding>1245- '';1246-1247+ # postInstall = ''1248+ # substitute $src/config.in $out/config \1249+ # --replace-fail '@X@' "$X"1250+ # '';1251+ #1252+ # For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1253+ transcoding = ''1254+ <transcoding enabled="yes" >1255+ <profile name="freebox-h264" enabled="yes" type="external">1256+ <mimetype>video/mpeg</mimetype>1257+ <accept-url>no</accept-url>1258+ <first-resource>yes</first-resource>1259+ <accept-ogg-theora>no</accept-ogg-theora>1260+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1261+ arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1262+ <buffer size="14400000" chunk-size="512000" fill-size="120000" />1263+ </profile>1264+ <profile name="freebox-aac" enabled="yes" type="external">1265+ <mimetype>audio/aac</mimetype>1266+ <accept-url>no</accept-url>1267+ <first-resource>yes</first-resource>1268+ <accept-ogg-theora>no</accept-ogg-theora>1269+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1270+ arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1271+ <buffer size="1048576" chunk-size="131072" fill-size="262144" />1272+ </profile>1273+ <mimetype-profile-mappings>1274+ <!-- enable freebox ones -->1275+ <transcode mimetype="video/x-flv" using="freebox-h264" />1276+ <transcode mimetype="application/ogg" using="freebox-h264" />1277+ <transcode mimetype="video/x-matroska" using="freebox-h264" />1278+ <transcode mimetype="video/x-msvideo" using="freebox-h264" />1279+ <transcode mimetype="audio/ogg" using="freebox-aac" />1280+ </mimetype-profile-mappings>1281+ </transcoding>1282+ '';1283 1284-# from-file="${./transcoding.xml}" />'';1285+ # from-file="${./transcoding.xml}" />'';1286 1287 mappings = ''<mappings from-file="${./mappings.xml}" />'';1288 1289-1290-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1291-# # Les codecs vidéos :1292-# # H.264 ;1293-# # MPEG2 ;1294-# # MS-MPEG4 (DivX 3) ;1295-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1296-# # VC1.1297-# #1298-# # Les codecs audios :1299-# # en decode :1300-# # AAC, ;1301-# # M Dolby Digital (downmix 2.0) ;1302-# # Dolby Digital Plus(downmix 2.0)1303-# # DTS core (downmix 2.0) ;1304-# # FLAC ;1305-# # MP2 ;1306-# # MP3 ;1307-# # Vorbis.1308-# #1309-# # en passthrough (via la sortie HDMI) :1310-# # AAC ;1311-# # Dolby Digital ;1312-# # Dolby Digital Plus ;1313-# # Dolby Digital TrueHD ;1314-# # DTS ;1315-# # DTS-HD (MA et HRA). 1316-# # d'apres1317-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1318+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1319+ # # Les codecs vidéos :1320+ # # H.264 ;1321+ # # MPEG2 ;1322+ # # MS-MPEG4 (DivX 3) ;1323+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1324+ # # VC1.1325+ # #1326+ # # Les codecs audios :1327+ # # en decode :1328+ # # AAC, ;1329+ # # M Dolby Digital (downmix 2.0) ;1330+ # # Dolby Digital Plus(downmix 2.0)1331+ # # DTS core (downmix 2.0) ;1332+ # # FLAC ;1333+ # # MP2 ;1334+ # # MP3 ;1335+ # # Vorbis.1336+ # #1337+ # # en passthrough (via la sortie HDMI) :1338+ # # AAC ;1339+ # # Dolby Digital ;1340+ # # Dolby Digital Plus ;1341+ # # Dolby Digital TrueHD ;1342+ # # DTS ;1343+ # # DTS-HD (MA et HRA).1344+ # # d'apres1345+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1346 1347 # 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.1348 #1349@@ -178,19 +177,18 @@ transcoding = ''<transcoding enabled="yes" >1350 1351 # 49152 already used by mdp1352 port = 49153;1353- mediaDirectories= [1354- {1355- hidden-files = false;1356- path = "/home/teto/videos";1357- recursive = true;1358- }1359- {1360- hidden-files = false;1361- path = "/home/teto/Music";1362- recursive = true;1363- }1364-1365- ];1366+ mediaDirectories = [1367+ {1368+ hidden-files = false;1369+ path = "/home/teto/videos";1370+ recursive = true;1371+ }1372+ {1373+ hidden-files = false;1374+ path = "/home/teto/Music";1375+ recursive = true;1376+ }1377 1378+ ];1379 1380 }1381diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1382index 5a3e20e..e9c8039 1006441383--- a/hosts/tatooine/services/minidlna.nix1384+++ b/hosts/tatooine/services/minidlna.nix1385@@ -13,7 +13,6 @@1386 # to receive sssdp answers1387 openFirewall = true;1388 1389-1390 # there are udp errors when it binds to wireguard network ?1391 1392 settings = {1393@@ -22,7 +21,7 @@1394 friendly_name = "tatooine";1395 # inotify = "yes";1396 log_level = "warn";1397- media_dir = [ 1398+ media_dir = [1399 # can be prefixed with V/A, to filter audio/video1400 "/home/teto/videos"1401 "/home/teto/Music"1402@@ -30,11 +29,9 @@1403 1404 # Network interface to bind (optional; self-discovers if commented out)1405 # to avoid erros on wireguard if1406- network_interface="wlp2s0"; 1407+ network_interface = "wlp2s0";1408 # to remove warnings1409 inotify = "no";1410 # db_dir =1411 };1412 }1413-1414-1415diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1416index 0c082b6..58d9c85 1006441417--- a/hosts/tatooine/services/pulseaudio.nix1418+++ b/hosts/tatooine/services/pulseaudio.nix1419@@ -1,9 +1,8 @@1420 { pkgs, ... }:1421- # cant be enabled with pipewire1422- {1423- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1424- enable = false;1425- # for ad2p profle ?1426- package = pkgs.pulseaudioFull;1427- }1428-1429+# cant be enabled with pipewire1430+{1431+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1432+ enable = false;1433+ # for ad2p profle ?1434+ package = pkgs.pulseaudioFull;1435+}1436diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1437index e158259..4b6709c 1006441438--- a/hosts/tatooine/tetos.nix1439+++ b/hosts/tatooine/tetos.nix1440@@ -9,7 +9,8 @@1441 {1442 allowUpnp = true;1443 1444-} // lib.optionalAttrs withSecrets {1445+}1446+// lib.optionalAttrs withSecrets {1447 wireguard = {1448 id = 2;1449 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1450@@ -19,4 +20,4 @@1451 flakeSelf.nixosConfigurations.neotokyo1452 ];1453 };1454-} 1455+}1456diff --git a/hosts/wsl/default.nix b/hosts/wsl/default.nix1457index 3e696fe..02ba731 1006441458--- a/hosts/wsl/default.nix1459+++ b/hosts/wsl/default.nix1460@@ -67,7 +67,6 @@1461 home.stateVersion = "26.05";1462 };1463 1464-1465 programs.neovim = {1466 1467 enableRocks = true;1468diff --git a/hosts/wsl/hm-teto.nix b/hosts/wsl/hm-teto.nix1469index ef31ff2..a4ca0d6 1006441470--- a/hosts/wsl/hm-teto.nix1471+++ b/hosts/wsl/hm-teto.nix1472@@ -1,29 +1,34 @@1473-{ config, lib, pkgs, ... }:1474 {1475- programs.git = {1476- enable = true;1477- includes = [1478+ config,1479+ lib,1480+ pkgs,1481+ ...1482+}:1483+{1484+ programs.git = {1485+ enable = true;1486+ includes = [1487+1488+ { path = config.xdg.configHome + "/git/manual.gitconfig"; }1489+ ];1490 1491- { path = config.xdg.configHome + "/git/manual.gitconfig"; }1492- ];1493+ package = pkgs.gitFull; # to get send-email1494 1495- package = pkgs.gitFull; # to get send-email1496+ settings = {1497+ # user = {1498+ # email = lib.mkForce "886074+teto@users.noreply.github.com";1499+ # };1500+ user = {1501+ # mkForce due to nova1502+ name = "Matthieu C.";1503+ email = lib.mkForce "886074+teto@users.noreply.github.com";1504+ };1505 1506- settings = {1507- # user = {1508- # email = lib.mkForce "886074+teto@users.noreply.github.com";1509- # };1510- user = {1511- # mkForce due to nova1512- name = "Matthieu C.";1513- email = lib.mkForce "886074+teto@users.noreply.github.com";1514+ # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1515+ credential.helper = "store";1516 };1517 1518- # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1519- credential.helper = "store";1520 };1521 1522-};1523-1524-programs.flyline.enable = true;1525+ programs.flyline.enable = true;1526 }1527diff --git a/hosts/wsl/llamacpp.nix b/hosts/wsl/llamacpp.nix1528index d9f179f..d1f1f13 1006441529--- a/hosts/wsl/llamacpp.nix1530+++ b/hosts/wsl/llamacpp.nix1531@@ -1,5 +1,4 @@1532 {1533 enable = true;1534 1535-1536 }1537diff --git a/justfile b/justfile1538index 36b0eaf..c6478cc 1006441539--- a/justfile1540+++ b/justfile1541@@ -65,12 +65,12 @@ bootstrap-vps target:1542 --debug1543 1544 bump-meli:1545- nix-update -F --version=branch=master meli-teto1546+ nix-update -F --version=branch=master meli-teto1547 1548 # urn:schemas-upnp-org:device:MediaRenderer:11549 discover-upnp-renderers:1550- gssdp-discover --timeout=5 \1551- --target=urn:schemas-upnp-org:device:MediaRenderer:11552+ gssdp-discover --timeout=5 \1553+ --target=urn:schemas-upnp-org:device:MediaRenderer:11554 1555 # just to save the command1556 1557@@ -326,7 +326,6 @@ inspect-current-generation:1558 flash-ulanzi-tc001:1559 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1560 1561-1562 # check dlna servers on the network1563 scan-upnp:1564 nmap --script=broadcast-upnp-info 192.168.0.0/161565diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1566index c73a06e..5448ba8 1006441567--- a/nixos/modules/minidlna.nix1568+++ b/nixos/modules/minidlna.nix1569@@ -1,7 +1,8 @@1570 { config, lib, ... }:1571 let1572 cfg = config.services.minidlna;1573- mediaDirs = map (dir:1574+ mediaDirs = map (1575+ dir:1576 let1577 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1578 in1579diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1580index dd25744..86ddd25 1006441581--- a/nixos/modules/upnp.nix1582+++ b/nixos/modules/upnp.nix1583@@ -1,7 +1,8 @@1584 { config, lib, ... }:1585 let1586- cfg = config.programs.upnp;1587-in {1588+ cfg = config.programs.upnp;1589+in1590+{1591 options = {1592 programs.upnp = {1593 enable = lib.mkEnableOption "upnp";1594@@ -17,13 +18,12 @@ in {1595 config = lib.mkIf cfg.enable {1596 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1597 1598- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];1599-# # SSDP multicast discovery port (UDP)1600-# sudo ufw allow 1900/udp comment 'DLNA SSDP'1601-#1602-# # MiniDLNA HTTP streaming & web status port (TCP)1603-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1604+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];1605+ # # SSDP multicast discovery port (UDP)1606+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'1607+ #1608+ # # MiniDLNA HTTP streaming & web status port (TCP)1609+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1610 1611 };1612 }1613-1614diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1615index 3820510..e4bca1c 1006441616--- a/nixos/profiles/adguardhome.nix1617+++ b/nixos/profiles/adguardhome.nix1618@@ -9,7 +9,6 @@1619 # mutableSettings = true;1620 # openFirewall = false;1621 1622-1623 # mutableSettings = true;1624 # extraArgs = [];1625 1626diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1627index 9ceeefc..3835a79 1006441628--- a/nixos/profiles/avahi.nix1629+++ b/nixos/profiles/avahi.nix1630@@ -1,9 +1,6 @@1631 /*1632-1633-guide:1634-avahi-browse-domains 1635-1636-1637+ guide:1638+ avahi-browse-domains1639 */1640 {1641 config,1642@@ -23,7 +20,7 @@ avahi-browse-domains1643 1644 server = {1645 1646- # List of non-local DNS domains to be browsed.1647+ # List of non-local DNS domains to be browsed.1648 browse-domains = [1649 # "0pointer.de"1650 # "zeroconf.org"1651diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix1652index db4eb98..38e8c16 1006441653--- a/nixos/profiles/desktop/default.nix1654+++ b/nixos/profiles/desktop/default.nix1655@@ -2,7 +2,6 @@1656 {1657 fonts.enableDefaultPackages = true;1658 1659-1660 console = {1661 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131281662 earlySetup = true;1663diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1664index 3f9282d..9039e39 1006441665--- a/nixos/profiles/desktop/programs/flyline.nix1666+++ b/nixos/profiles/desktop/programs/flyline.nix1667@@ -1,5 +1,5 @@1668 {1669 enable = true;1670- # 1671+ #1672 # package = ;1673 }1674diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix1675index daadd3f..d3fc61c 1006441676--- a/nixos/profiles/desktop/users/default.nix1677+++ b/nixos/profiles/desktop/users/default.nix1678@@ -1,3 +1,3 @@1679 {1680- groups.minidlna = {};1681+ groups.minidlna = { };1682 }1683diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix1684index aac0d91..995a67c 1006441685--- a/nixos/profiles/home-assistant.nix1686+++ b/nixos/profiles/home-assistant.nix1687@@ -17,13 +17,12 @@1688 # # "deconz" # interface for zigbee conbee II1689 # ];1690 1691-1692 package = pkgs.home-assistant.override {1693 1694 extraPackages = ps: [1695 ps.psycopg21696- # disabled because of ? 1697- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 1698+ # disabled because of ?1699+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await1700 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619081701 # # enables several default components1702 # ps.hass-nabucasa # to be able to login to cloud1703@@ -74,7 +73,7 @@1704 assist_pipeline = { };1705 # bluetooth = {}; # NO1706 # # enables several default components. DO NOT REMOVE (?)1707- default_config = { }; 1708+ default_config = { };1709 # map = {}; # show a local map1710 network = { };1711 homeassistant = {1712diff --git a/nixos/profiles/pixiecore.nix b/nixos/profiles/pixiecore.nix1713index c6a5355..141a4f8 1006441714--- a/nixos/profiles/pixiecore.nix1715+++ b/nixos/profiles/pixiecore.nix1716@@ -117,7 +117,7 @@ in1717 # one of “api”, “boot”, “quick”1718 package = pkgs.pixiecore-arm64;1719 mode = "boot";1720-# enp1s0f01721+ # enp1s0f01722 # extraArguments = ;1723 # listen1724 # cmdLine = ;