nixbot

builds

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

1treefmt v2.6.0traversed 1637 files2emitted 883 files for processing3formatted 883 files (49 changed) in 1.227s4 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 flake.nix12 M hm/modules/audiocast.nix13 M hm/modules/flyline.nix14 M hm/modules/kitty.nix15 M hm/modules/microsoft.nix16 M hm/modules/package-sets.nix17 M hm/profiles/teto-desktop/default.nix18 M hm/profiles/teto-desktop/programs/codex.nix19 M hm/profiles/teto-desktop/programs/firefox.nix20 M hm/profiles/teto-desktop/programs/jujutsu.nix21 M hm/profiles/teto-desktop/programs/neovim.nix22 M hm/profiles/teto-desktop/programs/rofi.nix23 M hm/profiles/teto-desktop/xdg/default.nix24 M hosts/jedha/default.nix25 M hosts/jedha/home-manager/users/teto/default.nix26 M hosts/jedha/home-manager/users/teto/programs/mcp.nix27 M hosts/jedha/services/avahi.nix28 M hosts/jedha/services/minidlna.nix29 M hosts/jedha/services/opentelemetry-collector.nix30 M hosts/jedha/services/upmpdcli.nix31 M hosts/jedha/systemd.nix32 M hosts/router/services/home-assistant.nix33 M hosts/tatooine/default.nix34 M hosts/tatooine/home-manager/users/teto/programs/mpv.nix35 M hosts/tatooine/services/adguardhome.nix36 M hosts/tatooine/services/avahi.nix37 M hosts/tatooine/services/mediatomb.nix38 M hosts/tatooine/services/minidlna.nix39 M hosts/tatooine/services/pulseaudio.nix40 M hosts/tatooine/tetos.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/flake.nix b/flake.nix335index f9725d7..f4c8eaa 100644336--- a/flake.nix337+++ b/flake.nix338@@ -595,23 +595,24 @@339 # )340 # );341 in342- nixosConfigs // nixosConfigsWithoutSecrets // {343-344+ nixosConfigs345+ // nixosConfigsWithoutSecrets346+ // {347 348 ixeal-spark = nixosConfigs.wsl.extendModules {349 350 modules = [351 {352- networking.hostName = lib.mkForce "ixeal-spark";353- }354+ networking.hostName = lib.mkForce "ixeal-spark";355+ }356 ];357 };358 ixeal-matthieu = nixosConfigs.wsl.extendModules {359 360 modules = [361 {362- networking.hostName = lib.mkForce "ixeal-matthieu";363- }364+ networking.hostName = lib.mkForce "ixeal-matthieu";365+ }366 ];367 };368 369diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix370index e95570a..ae177f7 100644371--- a/hm/modules/audiocast.nix372+++ b/hm/modules/audiocast.nix373@@ -1,7 +1,13 @@374-{ config, lib, pkgs, ... }:375+{376+ config,377+ lib,378+ pkgs,379+ ...380+}:381 let382- cfg = config.services.audiocast;383-in {384+ cfg = config.services.audiocast;385+in386+{387 options = {388 services.audiocast = {389 enable = lib.mkEnableOption "audiocast-stream";390@@ -16,44 +22,43 @@ in {391 };392 config = lib.mkIf cfg.enable {393 394-395- # Renderer friendlyName to discover over SSDP396- # Hard-coded AVTransport control URL (skips SSDP discovery)397- # else we give url398- # ❯ yamaha discover399- # name host model udn400- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e401- # port 8082 Local HTTP port for the stream402- xdg.configFile."audiocast/config" = {403- enable = false;404- text = ''405- [audiocast]406- name = Espace Musical407- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)408- mode = app409- sink = audiocast410- sink_description = AudioCast (DLNA)411- '';412-};413-414- systemd.user.services.audiocast-stream = {415- Unit = {416- Description = "Stream PipeWire audio to a DLNA renderer";417- After = [418- "pipewire.service"419- "pipewire-pulse.service"420- ];421- Wants = [ "pipewire-pulse.service" ];422+ # Renderer friendlyName to discover over SSDP423+ # Hard-coded AVTransport control URL (skips SSDP discovery)424+ # else we give url425+ # ❯ yamaha discover426+ # name host model udn427+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e428+ # port 8082 Local HTTP port for the stream429+ xdg.configFile."audiocast/config" = {430+ enable = false;431+ text = ''432+ [audiocast]433+ name = Espace Musical434+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)435+ mode = app436+ sink = audiocast437+ sink_description = AudioCast (DLNA)438+ '';439 };440- Service = {441- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";442- Restart = "on-failure";443- # The renderer may be asleep or temporarily off the network. The444- # program exits when discovery fails, so retry without a tight loop.445- RestartSec = 30;446+447+ systemd.user.services.audiocast-stream = {448+ Unit = {449+ Description = "Stream PipeWire audio to a DLNA renderer";450+ After = [451+ "pipewire.service"452+ "pipewire-pulse.service"453+ ];454+ Wants = [ "pipewire-pulse.service" ];455+ };456+ Service = {457+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";458+ Restart = "on-failure";459+ # The renderer may be asleep or temporarily off the network. The460+ # program exits when discovery fails, so retry without a tight loop.461+ RestartSec = 30;462+ };463+ Install.WantedBy = [ "default.target" ];464 };465- Install.WantedBy = [ "default.target" ];466- };467 };468 469 }470diff --git a/hm/modules/flyline.nix b/hm/modules/flyline.nix471index 810c110..ab4c58a 100644472--- a/hm/modules/flyline.nix473+++ b/hm/modules/flyline.nix474@@ -1,8 +1,15 @@475-# 476-{ config, lib, pkgs, osConfig ? null, ... }:477+#478+{479+ config,480+ lib,481+ pkgs,482+ osConfig ? null,483+ ...484+}:485 let486- cfg = config.programs.flyline;487-in {488+ cfg = config.programs.flyline;489+in490+{491 options = {492 programs.flyline = {493 494@@ -37,6 +44,6 @@ in {495 flyline history --backend flyline496 source ${../../config/bash/flyline.sh}497 498- '';499+ '';500 };501 }502diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix503index b6d495f..e7da295 100644504--- a/hm/modules/kitty.nix505+++ b/hm/modules/kitty.nix506@@ -54,7 +54,7 @@ in507 map kitty_mod+h kitty_scrollback_nvim ./tmp508 # Browse output of the last shell command in nvim509 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output510- '';511+ '';512 513 #514 # # Browse output of the last shell command in nvim515diff --git a/hm/modules/microsoft.nix b/hm/modules/microsoft.nix516index 218784e..da475a8 100644517--- a/hm/modules/microsoft.nix518+++ b/hm/modules/microsoft.nix519@@ -1,8 +1,14 @@520 # enable this module to work in a microsoft environment521-{ config, lib, pkgs, ... }:522+{523+ config,524+ lib,525+ pkgs,526+ ...527+}:528 let529- cfg = config.microsoft;530-in {531+ cfg = config.microsoft;532+in533+{534 options = {535 microsoft = {536 enable = lib.mkEnableOption "microsoft";537diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix538index 8d60438..e76a354 100644539--- a/hm/modules/package-sets.nix540+++ b/hm/modules/package-sets.nix541@@ -62,7 +62,6 @@ in542 543 };544 545-546 # this gets merged by default547 config = lib.mkMerge [548 {549@@ -115,7 +114,6 @@ in550 pkgs.blazingjj551 flakeSelf.inputs.jj-gh.packages.${system}.default552 553-554 # pkgs.gg-jj555 # pkgs.lazyjj556 # pkgs.jj-fzf557@@ -419,7 +417,6 @@ in558 lurk # a rust strace559 lsof # to see open files560 561-562 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship563 libossp_uuid # for the 'libuuid' executable564 565@@ -490,7 +487,6 @@ in566 567 # rainfrog # database exploration568 569-570 process-compose # docker-compose - like571 # rpl # to replace strings across files572 repgrep # replace matches found by rg573@@ -502,7 +498,7 @@ in574 tmux # when connecting via ssh575 trurl # used to parse url in the firefox-router executable576 universal-ctags # there are many different ctags, be careful !577- uv # to install python packages578+ uv # to install python packages579 unar # used to view archives by yazi (now using ouch ?)580 vifm581 viu # a console image viewer582@@ -697,7 +693,7 @@ in583 pkgs.tsukumi584 ];585 })586- (mkIf cfg.jellyfin {587+ (mkIf cfg.jellyfin {588 589 home.packages = [590 591@@ -708,13 +704,12 @@ in592 # pkgs.feishin # GUI593 # pkgs.jellycli # could not login :/594 595-596 # VIDEO compatible597 # - Jellyfin MPV Shim598 (ignoreBroken pkgs.tsukimi) # gtk+rust music player GUI599 pkgs.jellyfin-desktop600 pkgs.jellyfin-mpv-shim601- # jellyhaj # not upstreamed yet 602+ # jellyhaj # not upstreamed yet603 # fladder # nice GUI604 # jftui too minimalistic605 # pkgs.jellyflix # nice606diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix607index 417f45f..c378d94 100644608--- a/hm/profiles/teto-desktop/default.nix609+++ b/hm/profiles/teto-desktop/default.nix610@@ -114,7 +114,7 @@ in611 612 home.packages =613 with pkgs;614- let 615+ let616 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;617 618 # lux-cli-teto = lux-cli;619@@ -125,7 +125,7 @@ in620 in621 622 [623- kodi-teto 624+ kodi-teto625 codex # openai agent626 codex-acp # originated from zed-industries, used in avante627 628@@ -189,9 +189,8 @@ in629 # kaggle # kaggle interface630 # python3Packages.kaggle631 632-633- sonic-pi # for live music coding634- stow # tool to create symlinks635+ sonic-pi # for live music coding636+ stow # tool to create symlinks637 systemctl-tui638 timr-tui # rust clock639 640@@ -268,7 +267,7 @@ in641 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;642 TETOS_BUILDER_JEDHA = builder_jedha;643 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;644- inherit (secrets) 645+ inherit (secrets)646 TAVILY_API_KEY647 FIRECRAWL_API_KEY648 CONFIDENT_AI_API_KEY649diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix650index e282359..ea63df4 100644651--- a/hm/profiles/teto-desktop/programs/codex.nix652+++ b/hm/profiles/teto-desktop/programs/codex.nix653@@ -1,6 +1,5 @@654 {655 656-657 enable = true;658 enableMcpIntegration = true;659 # CODEX_HOME/AGENTS.md.660diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix661index 9b41b6c..aabc790 100644662--- a/hm/profiles/teto-desktop/programs/firefox.nix663+++ b/hm/profiles/teto-desktop/programs/firefox.nix664@@ -95,19 +95,18 @@ in665 # extraConfig =666 id = 0;667 668- userChrome =669- ''670- /* Hide tab bar in FF Quantum */671- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {672- #TabsToolbar {673- visibility: collapse !important;674- margin-bottom: 21px !important;675- }676-677- }678- '';679-680- # userContent = 681+ userChrome = ''682+ /* Hide tab bar in FF Quantum */683+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {684+ #TabsToolbar {685+ visibility: collapse !important;686+ margin-bottom: 21px !important;687+ }688+689+ }690+ '';691+692+ # userContent =693 # ''694 # /* Hide scrollbar in FF Quantum */695 # *{scrollbar-width:none !important}696diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix697index aacec43..9037ef9 100644698--- a/hm/profiles/teto-desktop/programs/jujutsu.nix699+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix700@@ -34,9 +34,12 @@701 name = "teto";702 };703 ui = {704- # jj splits puts the cursor in a f**** position, we need $line to restore 705+ # jj splits puts the cursor in a f**** position, we need $line to restore706 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes707- editor = ["nvim" "+$line"];708+ editor = [709+ "nvim"710+ "+$line"711+ ];712 default-command = "status";713 merge-editor = "nvim";714 # Enable pagination for commands that support it (default)715diff --git a/hm/profiles/teto-desktop/programs/neovim.nix b/hm/profiles/teto-desktop/programs/neovim.nix716index 90413e9..ce5e554 100644717--- a/hm/profiles/teto-desktop/programs/neovim.nix718+++ b/hm/profiles/teto-desktop/programs/neovim.nix719@@ -246,7 +246,7 @@ let720 fswatch # better file watching starting with 0.10721 # go # for gitlab.nvim, we can probably ditch it afterwards722 723- lemminx # 724+ lemminx725 luajitPackages.luacheck726 727 luau-lsp728diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix729index be52e45..f9d09d8 100644730--- a/hm/profiles/teto-desktop/programs/rofi.nix731+++ b/hm/profiles/teto-desktop/programs/rofi.nix732@@ -37,8 +37,8 @@733 734 location = "center";735 modes = [736- # modes: [ combi ];737- # combi-modes: [ window, drun, run ];738+ # modes: [ combi ];739+ # combi-modes: [ window, drun, run ];740 741 ];742 743diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix744index 0dad1af..11dd2ad 100644745--- a/hm/profiles/teto-desktop/xdg/default.nix746+++ b/hm/profiles/teto-desktop/xdg/default.nix747@@ -101,12 +101,12 @@748 "bash/bashrc".text = ''749 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"750 source "$script_dir/manual.sh"751- ''752- # check if flyline defined too ?753- + lib.optionalString osConfig.programs.flyline.enable '' 754- source "$script_dir/flyline.sh"755+ ''756+ # check if flyline defined too ?757+ + lib.optionalString osConfig.programs.flyline.enable ''758+ source "$script_dir/flyline.sh"759 760- '';761+ '';762 763 "nvim/lua/generated-by-nix.lua" =764 let765diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix766index 4e65ba3..401717a 100644767--- a/hosts/jedha/default.nix768+++ b/hosts/jedha/default.nix769@@ -91,12 +91,20 @@ in770 # Upmpdcli's local-library server needs both discovery and HTTP access.771 networking.firewall = lib.mkIf config.services.upmpdcli.enable {772 allowedUDPPorts = [ 1900 ];773- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];774+ allowedTCPPorts = with config.services.upmpdcli.configuration; [775+ upnpport776+ uprclport777+ ];778 };779 780 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {781 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.782- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];783+ path = [784+ pkgs.recoll785+ pkgs.python3786+ pkgs.openssl787+ pkgs.diffutils788+ ];789 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];790 };791 792diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix793index babb3bb..861919d 100644794--- a/hosts/jedha/home-manager/users/teto/default.nix795+++ b/hosts/jedha/home-manager/users/teto/default.nix796@@ -104,7 +104,6 @@ in797 btop-cuda # for jedha798 brush # a rust implementation of bash799 800-801 # creates conflicts since it brings python and several executables802 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService803 804@@ -147,9 +146,9 @@ in805 # bridge-utils# pour brctl806 # vscode-css-languageserver # to showcase 'cssls' lsp server807 808- rura # to build shell pipelines809+ rura # to build shell pipelines810 # termusic # terminal music811- 812+813 ];814 815 package-sets = {816diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix817index 3378a39..9ce7079 100644818--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix819+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix820@@ -1,36 +1,34 @@821 { pkgs, lib, ... }:822 {823 824-825 enable = true;826 827 # github:utensils/mcp-nixos828- servers = 829- {830-831- nixos = {832- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";833- };834-835- # https://github.com/homeassistant-ai/ha-mcp836- ha-mcp = {837-838- command = "${lib.getExe pkgs.ha-mcp}";839-840- };841-842- # everything = {843- # command = "npx";844- # args = [ "-y" "@modelcontextprotocol/server-everything" ];845- # };846- # context7 = {847- # url = "https://mcp.context7.com/mcp";848- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";849- # };850- # codeberg = {851- # command = "/path/to/forgejo-mcp";852- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];853- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";854- # };855- };856+ servers = {857+858+ nixos = {859+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";860+ };861+862+ # https://github.com/homeassistant-ai/ha-mcp863+ ha-mcp = {864+865+ command = "${lib.getExe pkgs.ha-mcp}";866+867+ };868+869+ # everything = {870+ # command = "npx";871+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];872+ # };873+ # context7 = {874+ # url = "https://mcp.context7.com/mcp";875+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";876+ # };877+ # codeberg = {878+ # command = "/path/to/forgejo-mcp";879+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];880+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";881+ # };882+ };883 }884diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix885index 083732e..09017c2 100644886--- a/hosts/jedha/services/avahi.nix887+++ b/hosts/jedha/services/avahi.nix888@@ -13,7 +13,6 @@889 890 debug = true;891 892-893 # allowInterfaces = [894 # "wlp10s0"895 # ];896@@ -30,13 +29,12 @@897 };898 899 publish = {900- disable-publishing = false;901- disable-user-service-publishing = false;902- publish-addresses = true;903- };904-905+ disable-publishing = false;906+ disable-user-service-publishing = false;907+ publish-addresses = true;908 };909 910+ };911 912 nssmdns4 = true;913 # publish = {914diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix915index 7f3f4aa..f62f7ed 100644916--- a/hosts/jedha/services/minidlna.nix917+++ b/hosts/jedha/services/minidlna.nix918@@ -7,7 +7,6 @@919 # announceInterval = 60;920 openFirewall = true;921 922-923 # there are udp errors when it binds to wireguard network ?924 925 settings = {926@@ -16,9 +15,9 @@927 friendly_name = "jedha";928 # inotify = "yes";929 log_level = "warn";930- media_dir = [ 931+ media_dir = [932 # can be prefixed with V/A, to filter audio/video933- "/mnt/ext/music" 934+ "/mnt/ext/music"935 ];936 inotify = "yes";937 # db_dir =938diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix939index 28cc3b4..1d1609c 100644940--- a/hosts/jedha/services/opentelemetry-collector.nix941+++ b/hosts/jedha/services/opentelemetry-collector.nix942@@ -1,23 +1,22 @@943 {944 945-946 enable = true;947 948 settings =949-let950- port = 4318;951-in952+ let953+ port = 4318;954+ in955 {956- exporters.debug.verbosity = "detailed";957- receivers.otlp.protocols = {958- http.endpoint = "0.0.0.0:${toString port}";959- };960- service = {961- pipelines.logs = {962- receivers = [ "otlp" ];963- exporters = [ "debug" ];964- };965- };966+ exporters.debug.verbosity = "detailed";967+ receivers.otlp.protocols = {968+ http.endpoint = "0.0.0.0:${toString port}";969+ };970+ service = {971+ pipelines.logs = {972+ receivers = [ "otlp" ];973+ exporters = [ "debug" ];974+ };975+ };976 977- };978+ };979 }980diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix981index ef04f30..390f091 100644982--- a/hosts/jedha/services/upmpdcli.nix983+++ b/hosts/jedha/services/upmpdcli.nix984@@ -1,12 +1,12 @@985 /*986-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 987- should change playback if rmpd and upmpdcli are controlling the same MPD instance988- 989- • 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.990-• 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.991+ 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, it992+ should change playback if rmpd and upmpdcli are controlling the same MPD instance993 994-mpd now has a plugin that can play music from upnp server 995-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction996+ • 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.997+ • 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.998+999+ mpd now has a plugin that can play music from upnp server1000+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction1001 */1002 1003 { pkgs, lib, ... }:1004@@ -44,7 +44,7 @@ in1005 mpdport = 6600;1006 # try to see if I can control it myself1007 ownqueue = 0;1008- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 1009+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo1010 # control the playlist. The client can disconnect after playlist was created1011 openhome = 0;1012 upnpav = 1;1013diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix1014index 59d7129..e0cab47 1006441015--- a/hosts/jedha/systemd.nix1016+++ b/hosts/jedha/systemd.nix1017@@ -34,61 +34,60 @@ in1018 })1019 # disabled because ha-mcp broken1020 (lib.mkIf false {1021- ha-mcp = {1022- description = "Home Assistant MCP server";1023- wantedBy = [ "multi-user.target" ];1024- wants = [ "network-online.target" ];1025- after = [ "network-online.target" ];1026- environment = {1027- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";1028- HOME = "/var/lib/ha-mcp";1029- MCP_HOST = "127.0.0.1";1030- MCP_PORT = "8086";1031- };1032- serviceConfig = {1033- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";1034- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.1035- EnvironmentFile = "/var/lib/ha-mcp/environment";1036- DynamicUser = true;1037- StateDirectory = "ha-mcp";1038- WorkingDirectory = "/var/lib/ha-mcp";1039- Restart = "on-failure";1040- RestartSec = 5;1041- UMask = "0077";1042- };1043+ ha-mcp = {1044+ description = "Home Assistant MCP server";1045+ wantedBy = [ "multi-user.target" ];1046+ wants = [ "network-online.target" ];1047+ after = [ "network-online.target" ];1048+ environment = {1049+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";1050+ HOME = "/var/lib/ha-mcp";1051+ MCP_HOST = "127.0.0.1";1052+ MCP_PORT = "8086";1053 };1054+ serviceConfig = {1055+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";1056+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.1057+ EnvironmentFile = "/var/lib/ha-mcp/environment";1058+ DynamicUser = true;1059+ StateDirectory = "ha-mcp";1060+ WorkingDirectory = "/var/lib/ha-mcp";1061+ Restart = "on-failure";1062+ RestartSec = 5;1063+ UMask = "0077";1064+ };1065+ };1066 1067- # copied from https://github.com/NixOS/nixpkgs/pull/5442521068- # lib.recursiveUpdate slib.systemd.serviceDefaults {1069- speech-to-phrase = {1070- # after = [ "home-assistant.service" ];1071- script = lib.concatStringsSep " " [1072- (lib.getExe pkgs.speech-to-phrase)1073- "--models-dir"1074- "\"$STATE_DIRECTORY/models\""1075- "--train-dir"1076- "\"$STATE_DIRECTORY/train\""1077- # "--custom-sentences-dir" ""1078- "--uri 'tcp://127.0.0.1:10400'"1079- "--hass-websocket-uri"1080- "ws://${hassHost}:${toString hassPort}/api/websocket"1081- "--retrain-on-start"1082- "--retrain-on-connect"1083- "--retrain-seconds"1084- "300"1085- ];1086- serviceConfig = {1087- #1088- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1089- Group = "speech-to-phrase";1090- StateDirectory = "speech-to-phrase";1091- User = "speech-to-phrase";1092- # TODO: hardening1093- };1094+ # copied from https://github.com/NixOS/nixpkgs/pull/5442521095+ # lib.recursiveUpdate slib.systemd.serviceDefaults {1096+ speech-to-phrase = {1097+ # after = [ "home-assistant.service" ];1098+ script = lib.concatStringsSep " " [1099+ (lib.getExe pkgs.speech-to-phrase)1100+ "--models-dir"1101+ "\"$STATE_DIRECTORY/models\""1102+ "--train-dir"1103+ "\"$STATE_DIRECTORY/train\""1104+ # "--custom-sentences-dir" ""1105+ "--uri 'tcp://127.0.0.1:10400'"1106+ "--hass-websocket-uri"1107+ "ws://${hassHost}:${toString hassPort}/api/websocket"1108+ "--retrain-on-start"1109+ "--retrain-on-connect"1110+ "--retrain-seconds"1111+ "300"1112+ ];1113+ serviceConfig = {1114+ #1115+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1116+ Group = "speech-to-phrase";1117+ StateDirectory = "speech-to-phrase";1118+ User = "speech-to-phrase";1119+ # TODO: hardening1120 };1121+ };1122 1123- }1124- )1125+ })1126 ];1127 1128 # just to test1129diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1130index 5a92154..337beb9 1006441131--- a/hosts/router/services/home-assistant.nix1132+++ b/hosts/router/services/home-assistant.nix1133@@ -34,7 +34,7 @@ in1134 ];1135 1136 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1137-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1138+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1139 easy-floorplan1140 button-card1141 # home-assistant-custom-lovelace-modules.sankey-chart1142@@ -68,8 +68,6 @@ in1143 material-you-theme1144 ];1145 1146-1147-1148 blueprints = {1149 automation = [1150 # ATTENTION: The name should contain the extension .yaml1151diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1152index a81a7ef..928f21c 1006441153--- a/hosts/tatooine/default.nix1154+++ b/hosts/tatooine/default.nix1155@@ -132,7 +132,6 @@ in1156 enableRedistributableFirmware = true;1157 sane.enable = true;1158 1159-1160 # High quality BT calls1161 # https://nixos.wiki/wiki/Bluetooth1162 bluetooth = {1163diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1164index 6210293..5c3a889 1006441165--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1166+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1167@@ -1,9 +1,9 @@1168-{ pkgs, ...}:1169+{ pkgs, ... }:1170 {1171 1172- scripts = [1173- # as python1174- # pkgs.mpvDLNA1175- ];1176+ scripts = [1177+ # as python1178+ # pkgs.mpvDLNA1179+ ];1180 1181 }1182diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1183index adc82dd..1724c86 1006441184--- a/hosts/tatooine/services/adguardhome.nix1185+++ b/hosts/tatooine/services/adguardhome.nix1186@@ -10,7 +10,7 @@1187 settings = {1188 1189 # http (since v0.107.36): Web interface configuration.1190- # address: Web interface IP address with port to listen on 1191+ # address: Web interface IP address with port to listen on1192 http.address = "127.0.0.1:8084";1193 1194 };1195diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1196index dd02f3f..f14c221 1006441197--- a/hosts/tatooine/services/avahi.nix1198+++ b/hosts/tatooine/services/avahi.nix1199@@ -21,19 +21,19 @@1200 1201 settings = {1202 publish = {1203- publish-domain = true;1204- disable-publishing = false;1205- disable-user-service-publishing = false;1206- publish-addresses = true;1207- };1208+ publish-domain = true;1209+ disable-publishing = false;1210+ disable-user-service-publishing = false;1211+ publish-addresses = true;1212+ };1213 1214 server = {1215 use-ipv6 = false; # bug with multiple hostnames1216- # # 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.1217- # # secrets.jedha.hostname;1218- # # host-name = "jedha";1219- # # enable-dbus = true;1220- #1221+ # # 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.1222+ # # secrets.jedha.hostname;1223+ # # host-name = "jedha";1224+ # # enable-dbus = true;1225+ #1226 };1227 };1228 1229diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1230index 4cd2e1d..a9725d3 1006441231--- a/hosts/tatooine/services/mediatomb.nix1232+++ b/hosts/tatooine/services/mediatomb.nix1233@@ -1,6 +1,6 @@1234 # it's gerbera in fact1235 { pkgs, ... }:1236-let 1237+let1238 # <mappings>1239 # freeboxRevolution6Mappings = ''1240 # <extension-mimetype ignore-unknown="no">1241@@ -68,78 +68,77 @@ in1242 1243 # to avoid having to rewire the permissions1244 group = "minidlna";1245- interface="wlp2s0";1246+ interface = "wlp2s0";1247 # we should use subsitute for the VLC/ffmpedg commands1248-# postInstall = ''1249-# substitute $src/config.in $out/config \1250-# --replace-fail '@X@' "$X"1251-# '';1252-#1253-# For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1254-transcoding = ''<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+ # postInstall = ''1285+ # substitute $src/config.in $out/config \1286+ # --replace-fail '@X@' "$X"1287+ # '';1288+ #1289+ # For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1290+ transcoding = ''1291+ <transcoding enabled="yes" >1292+ <profile name="freebox-h264" enabled="yes" type="external">1293+ <mimetype>video/mpeg</mimetype>1294+ <accept-url>no</accept-url>1295+ <first-resource>yes</first-resource>1296+ <accept-ogg-theora>no</accept-ogg-theora>1297+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1298+ arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1299+ <buffer size="14400000" chunk-size="512000" fill-size="120000" />1300+ </profile>1301+ <profile name="freebox-aac" enabled="yes" type="external">1302+ <mimetype>audio/aac</mimetype>1303+ <accept-url>no</accept-url>1304+ <first-resource>yes</first-resource>1305+ <accept-ogg-theora>no</accept-ogg-theora>1306+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1307+ arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1308+ <buffer size="1048576" chunk-size="131072" fill-size="262144" />1309+ </profile>1310+ <mimetype-profile-mappings>1311+ <!-- enable freebox ones -->1312+ <transcode mimetype="video/x-flv" using="freebox-h264" />1313+ <transcode mimetype="application/ogg" using="freebox-h264" />1314+ <transcode mimetype="video/x-matroska" using="freebox-h264" />1315+ <transcode mimetype="video/x-msvideo" using="freebox-h264" />1316+ <transcode mimetype="audio/ogg" using="freebox-aac" />1317+ </mimetype-profile-mappings>1318+ </transcoding>1319+ '';1320 1321-# from-file="${./transcoding.xml}" />'';1322+ # from-file="${./transcoding.xml}" />'';1323 1324 mappings = ''<mappings from-file="${./mappings.xml}" />'';1325 1326-1327-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1328-# # Les codecs vidéos :1329-# # H.264 ;1330-# # MPEG2 ;1331-# # MS-MPEG4 (DivX 3) ;1332-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1333-# # VC1.1334-# #1335-# # Les codecs audios :1336-# # en decode :1337-# # AAC, ;1338-# # M Dolby Digital (downmix 2.0) ;1339-# # Dolby Digital Plus(downmix 2.0)1340-# # DTS core (downmix 2.0) ;1341-# # FLAC ;1342-# # MP2 ;1343-# # MP3 ;1344-# # Vorbis.1345-# #1346-# # en passthrough (via la sortie HDMI) :1347-# # AAC ;1348-# # Dolby Digital ;1349-# # Dolby Digital Plus ;1350-# # Dolby Digital TrueHD ;1351-# # DTS ;1352-# # DTS-HD (MA et HRA). 1353-# # d'apres1354-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1355+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1356+ # # Les codecs vidéos :1357+ # # H.264 ;1358+ # # MPEG2 ;1359+ # # MS-MPEG4 (DivX 3) ;1360+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1361+ # # VC1.1362+ # #1363+ # # Les codecs audios :1364+ # # en decode :1365+ # # AAC, ;1366+ # # M Dolby Digital (downmix 2.0) ;1367+ # # Dolby Digital Plus(downmix 2.0)1368+ # # DTS core (downmix 2.0) ;1369+ # # FLAC ;1370+ # # MP2 ;1371+ # # MP3 ;1372+ # # Vorbis.1373+ # #1374+ # # en passthrough (via la sortie HDMI) :1375+ # # AAC ;1376+ # # Dolby Digital ;1377+ # # Dolby Digital Plus ;1378+ # # Dolby Digital TrueHD ;1379+ # # DTS ;1380+ # # DTS-HD (MA et HRA).1381+ # # d'apres1382+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1383 1384 # 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.1385 #1386@@ -178,19 +177,18 @@ transcoding = ''<transcoding enabled="yes" >1387 1388 # 49152 already used by mdp1389 port = 49153;1390- mediaDirectories= [1391- {1392- hidden-files = false;1393- path = "/home/teto/videos";1394- recursive = true;1395- }1396- {1397- hidden-files = false;1398- path = "/home/teto/Music";1399- recursive = true;1400- }1401-1402- ];1403+ mediaDirectories = [1404+ {1405+ hidden-files = false;1406+ path = "/home/teto/videos";1407+ recursive = true;1408+ }1409+ {1410+ hidden-files = false;1411+ path = "/home/teto/Music";1412+ recursive = true;1413+ }1414 1415+ ];1416 1417 }1418diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1419index 5a3e20e..e9c8039 1006441420--- a/hosts/tatooine/services/minidlna.nix1421+++ b/hosts/tatooine/services/minidlna.nix1422@@ -13,7 +13,6 @@1423 # to receive sssdp answers1424 openFirewall = true;1425 1426-1427 # there are udp errors when it binds to wireguard network ?1428 1429 settings = {1430@@ -22,7 +21,7 @@1431 friendly_name = "tatooine";1432 # inotify = "yes";1433 log_level = "warn";1434- media_dir = [ 1435+ media_dir = [1436 # can be prefixed with V/A, to filter audio/video1437 "/home/teto/videos"1438 "/home/teto/Music"1439@@ -30,11 +29,9 @@1440 1441 # Network interface to bind (optional; self-discovers if commented out)1442 # to avoid erros on wireguard if1443- network_interface="wlp2s0"; 1444+ network_interface = "wlp2s0";1445 # to remove warnings1446 inotify = "no";1447 # db_dir =1448 };1449 }1450-1451-1452diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1453index 0c082b6..58d9c85 1006441454--- a/hosts/tatooine/services/pulseaudio.nix1455+++ b/hosts/tatooine/services/pulseaudio.nix1456@@ -1,9 +1,8 @@1457 { pkgs, ... }:1458- # cant be enabled with pipewire1459- {1460- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1461- enable = false;1462- # for ad2p profle ?1463- package = pkgs.pulseaudioFull;1464- }1465-1466+# cant be enabled with pipewire1467+{1468+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1469+ enable = false;1470+ # for ad2p profle ?1471+ package = pkgs.pulseaudioFull;1472+}1473diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1474index e158259..4b6709c 1006441475--- a/hosts/tatooine/tetos.nix1476+++ b/hosts/tatooine/tetos.nix1477@@ -9,7 +9,8 @@1478 {1479 allowUpnp = true;1480 1481-} // lib.optionalAttrs withSecrets {1482+}1483+// lib.optionalAttrs withSecrets {1484 wireguard = {1485 id = 2;1486 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1487@@ -19,4 +20,4 @@1488 flakeSelf.nixosConfigurations.neotokyo1489 ];1490 };1491-} 1492+}1493diff --git a/hosts/wsl/hm-teto.nix b/hosts/wsl/hm-teto.nix1494index ef31ff2..a4ca0d6 1006441495--- a/hosts/wsl/hm-teto.nix1496+++ b/hosts/wsl/hm-teto.nix1497@@ -1,29 +1,34 @@1498-{ config, lib, pkgs, ... }:1499 {1500- programs.git = {1501- enable = true;1502- includes = [1503+ config,1504+ lib,1505+ pkgs,1506+ ...1507+}:1508+{1509+ programs.git = {1510+ enable = true;1511+ includes = [1512+1513+ { path = config.xdg.configHome + "/git/manual.gitconfig"; }1514+ ];1515 1516- { path = config.xdg.configHome + "/git/manual.gitconfig"; }1517- ];1518+ package = pkgs.gitFull; # to get send-email1519 1520- package = pkgs.gitFull; # to get send-email1521+ settings = {1522+ # user = {1523+ # email = lib.mkForce "886074+teto@users.noreply.github.com";1524+ # };1525+ user = {1526+ # mkForce due to nova1527+ name = "Matthieu C.";1528+ email = lib.mkForce "886074+teto@users.noreply.github.com";1529+ };1530 1531- settings = {1532- # user = {1533- # email = lib.mkForce "886074+teto@users.noreply.github.com";1534- # };1535- user = {1536- # mkForce due to nova1537- name = "Matthieu C.";1538- email = lib.mkForce "886074+teto@users.noreply.github.com";1539+ # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1540+ credential.helper = "store";1541 };1542 1543- # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1544- credential.helper = "store";1545 };1546 1547-};1548-1549-programs.flyline.enable = true;1550+ programs.flyline.enable = true;1551 }1552diff --git a/hosts/wsl/llamacpp.nix b/hosts/wsl/llamacpp.nix1553index d9f179f..d1f1f13 1006441554--- a/hosts/wsl/llamacpp.nix1555+++ b/hosts/wsl/llamacpp.nix1556@@ -1,5 +1,4 @@1557 {1558 enable = true;1559 1560-1561 }1562diff --git a/justfile b/justfile1563index 36b0eaf..c6478cc 1006441564--- a/justfile1565+++ b/justfile1566@@ -65,12 +65,12 @@ bootstrap-vps target:1567 --debug1568 1569 bump-meli:1570- nix-update -F --version=branch=master meli-teto1571+ nix-update -F --version=branch=master meli-teto1572 1573 # urn:schemas-upnp-org:device:MediaRenderer:11574 discover-upnp-renderers:1575- gssdp-discover --timeout=5 \1576- --target=urn:schemas-upnp-org:device:MediaRenderer:11577+ gssdp-discover --timeout=5 \1578+ --target=urn:schemas-upnp-org:device:MediaRenderer:11579 1580 # just to save the command1581 1582@@ -326,7 +326,6 @@ inspect-current-generation:1583 flash-ulanzi-tc001:1584 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1585 1586-1587 # check dlna servers on the network1588 scan-upnp:1589 nmap --script=broadcast-upnp-info 192.168.0.0/161590diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1591index c73a06e..5448ba8 1006441592--- a/nixos/modules/minidlna.nix1593+++ b/nixos/modules/minidlna.nix1594@@ -1,7 +1,8 @@1595 { config, lib, ... }:1596 let1597 cfg = config.services.minidlna;1598- mediaDirs = map (dir:1599+ mediaDirs = map (1600+ dir:1601 let1602 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;1603 in1604diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix1605index dd25744..86ddd25 1006441606--- a/nixos/modules/upnp.nix1607+++ b/nixos/modules/upnp.nix1608@@ -1,7 +1,8 @@1609 { config, lib, ... }:1610 let1611- cfg = config.programs.upnp;1612-in {1613+ cfg = config.programs.upnp;1614+in1615+{1616 options = {1617 programs.upnp = {1618 enable = lib.mkEnableOption "upnp";1619@@ -17,13 +18,12 @@ in {1620 config = lib.mkIf cfg.enable {1621 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];1622 1623- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];1624-# # SSDP multicast discovery port (UDP)1625-# sudo ufw allow 1900/udp comment 'DLNA SSDP'1626-#1627-# # MiniDLNA HTTP streaming & web status port (TCP)1628-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1629+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];1630+ # # SSDP multicast discovery port (UDP)1631+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'1632+ #1633+ # # MiniDLNA HTTP streaming & web status port (TCP)1634+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'1635 1636 };1637 }1638-1639diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix1640index 3820510..e4bca1c 1006441641--- a/nixos/profiles/adguardhome.nix1642+++ b/nixos/profiles/adguardhome.nix1643@@ -9,7 +9,6 @@1644 # mutableSettings = true;1645 # openFirewall = false;1646 1647-1648 # mutableSettings = true;1649 # extraArgs = [];1650 1651diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix1652index 9ceeefc..3835a79 1006441653--- a/nixos/profiles/avahi.nix1654+++ b/nixos/profiles/avahi.nix1655@@ -1,9 +1,6 @@1656 /*1657-1658-guide:1659-avahi-browse-domains 1660-1661-1662+ guide:1663+ avahi-browse-domains1664 */1665 {1666 config,1667@@ -23,7 +20,7 @@ avahi-browse-domains1668 1669 server = {1670 1671- # List of non-local DNS domains to be browsed.1672+ # List of non-local DNS domains to be browsed.1673 browse-domains = [1674 # "0pointer.de"1675 # "zeroconf.org"1676diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix1677index db4eb98..38e8c16 1006441678--- a/nixos/profiles/desktop/default.nix1679+++ b/nixos/profiles/desktop/default.nix1680@@ -2,7 +2,6 @@1681 {1682 fonts.enableDefaultPackages = true;1683 1684-1685 console = {1686 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131281687 earlySetup = true;1688diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1689index 3f9282d..9039e39 1006441690--- a/nixos/profiles/desktop/programs/flyline.nix1691+++ b/nixos/profiles/desktop/programs/flyline.nix1692@@ -1,5 +1,5 @@1693 {1694 enable = true;1695- # 1696+ #1697 # package = ;1698 }1699diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix1700index daadd3f..d3fc61c 1006441701--- a/nixos/profiles/desktop/users/default.nix1702+++ b/nixos/profiles/desktop/users/default.nix1703@@ -1,3 +1,3 @@1704 {1705- groups.minidlna = {};1706+ groups.minidlna = { };1707 }1708diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix1709index aac0d91..995a67c 1006441710--- a/nixos/profiles/home-assistant.nix1711+++ b/nixos/profiles/home-assistant.nix1712@@ -17,13 +17,12 @@1713 # # "deconz" # interface for zigbee conbee II1714 # ];1715 1716-1717 package = pkgs.home-assistant.override {1718 1719 extraPackages = ps: [1720 ps.psycopg21721- # disabled because of ? 1722- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 1723+ # disabled because of ?1724+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await1725 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619081726 # # enables several default components1727 # ps.hass-nabucasa # to be able to login to cloud1728@@ -74,7 +73,7 @@1729 assist_pipeline = { };1730 # bluetooth = {}; # NO1731 # # enables several default components. DO NOT REMOVE (?)1732- default_config = { }; 1733+ default_config = { };1734 # map = {}; # show a local map1735 network = { };1736 homeassistant = {1737diff --git a/nixos/profiles/pixiecore.nix b/nixos/profiles/pixiecore.nix1738index c6a5355..141a4f8 1006441739--- a/nixos/profiles/pixiecore.nix1740+++ b/nixos/profiles/pixiecore.nix1741@@ -117,7 +117,7 @@ in1742 # one of “api”, “boot”, “quick”1743 package = pkgs.pixiecore-arm64;1744 mode = "boot";1745-# enp1s0f01746+ # enp1s0f01747 # extraArguments = ;1748 # listen1749 # cmdLine = ;