treefmt-check
checks.x86_64-linux.formatting
· build #72
· raw
1treefmt v2.6.0traversed 1637 files2emitted 883 files for processing3formatted 883 files (49 changed) in 1.27s4 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 ee3bafe..93205a3 100644336--- a/flake.nix337+++ b/flake.nix338@@ -331,7 +331,6 @@339 340 secrets = import ./nixpkgs/secrets.nix;341 342-343 # loads packages in by-name/344 byNamePkgsOverlay = import "${nixpkgs}/pkgs/top-level/by-name-overlay.nix" ./by-name;345 346@@ -347,7 +346,6 @@347 # directory = ./pkgs;348 # };349 350-351 # libExtended = nixpkgs.lib.exend (352 # final: prev: {353 # # add tetos lib354@@ -355,190 +353,192 @@355 # );356 357 in358- flake-utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ] (system: let359- tetosPkgs = pkgImport system self.inputs.nixpkgs false;360- # tetosPkgsCuda = pkgImport self.inputs.nixpkgs true;361- unstablePkgs = pkgImport system self.inputs.nixos-unstable false;362+ flake-utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ] (363+ system:364+ let365+ tetosPkgs = pkgImport system self.inputs.nixpkgs false;366+ # tetosPkgsCuda = pkgImport self.inputs.nixpkgs true;367+ unstablePkgs = pkgImport system self.inputs.nixos-unstable false;368+369+ # system370+ pkgImport =371+ system':372 373+ src: cudaSupport:374+ import src {375+ system = system';376+377+ overlays = (src.lib.attrValues self.overlays) ++ [378+ (final: prev: {379+ # expose it for byNamePkgsOverlay380+ inherit treefmt-nix;381+ # for pimsync-dev to see flakeSelf382+ flakeSelf = self;383+ })384+ byNamePkgsOverlay385+ # autoloadedPkgsOverlay386+ ];387 388- # system389- pkgImport =390- system':391+ config = {392+ # on desktop393+ inherit cudaSupport;394+ # nvidia.acceptLicense = true;395+ # cudaCapabilities = [ "8.9" ]; # can speed up some builds ?396+ checkMeta = false;397+ # showDerivationWarnings = ["maintainerless"];398+399+ allowUnfree = true;400+ # this list makes me wanna vomit (except steam maybe because they do good for linux),401+ # and sublime because guy has to eat402+ allowUnfreePredicate =403+ pkg:404+ let405+ ensureList = x: if builtins.isList x then x else [ x ];406+ hasCudaLicense =407+ package:408+ builtins.all (409+ license:410+ license.free411+ || builtins.elem license.shortName [412+ "CUDA EULA"413+ "cuDNN EULA"414+ "cuSPARSELt EULA"415+ "cuTENSOR EULA"416+ "NVidia OptiX EULA"417+ ]418+ ) (ensureList package.meta.license);419+ legacyPkgs = nixpkgs.legacyPackages.${system};420+ pkgName = legacyPkgs.lib.getName pkg;421+ in422+ if hasCudaLicense "cuda" pkgName then423+ true424+ else425+ builtins.elem pkgName [426+ "antigravity-cli"427+ "Oracle_VM_VirtualBox_Extension_Pack"428+ "Oracle_VirtualBox_Extension_Pack"429+ "jocalsend"430+ "codeium"431+ "claude-code"432+ "mistral-vibe"433+434+ "ec2-api-tools"435+ "google-chrome"436+ # "slack"437+ "steam"438+ "steam-original"439+ "steam-runtime"440+ "steam-run"441+ "steam-unwrapped"442+ "sublimetext3"443+ "vault"444+ "vscode"445+ "vscode-extension-ms-vsliveshare-vsliveshare"446+ "xmind"447+ "zoom"448+ ];449+ };450+ };451+ # Eval the treefmt modules from ./treefmt.nix452+ treefmtEval = treefmt-nix.lib.evalModule tetosPkgs ./tetos/treefmt.nix;453+454+ in455+ {456+457+ # todo create a bootstrap devShell458+ # https://github.com/numtide/blueprint/blob/0ed984d51a3031065925ab08812a5434f40b93d4/lib/default.nix#L547459+ devShells =460+ let461+ # Load all devShells from the devShells/ directory462+ devShellFiles = builtins.attrNames (463+ lib.filterAttrs (n: _: lib.hasSuffix ".nix" n) (builtins.readDir ./devShells)464+ );465 466- src: cudaSupport:467- import src {468- system = system';469-470- overlays = (src.lib.attrValues self.overlays) ++ [471- (final: prev: {472- # expose it for byNamePkgsOverlay473- inherit treefmt-nix;474- # for pimsync-dev to see flakeSelf475- flakeSelf = self;476- })477- byNamePkgsOverlay478- # autoloadedPkgsOverlay479- ];480-481- config = {482- # on desktop483- inherit cudaSupport;484- # nvidia.acceptLicense = true;485- # cudaCapabilities = [ "8.9" ]; # can speed up some builds ?486- checkMeta = false;487- # showDerivationWarnings = ["maintainerless"];488-489- allowUnfree = true;490- # this list makes me wanna vomit (except steam maybe because they do good for linux),491- # and sublime because guy has to eat492- allowUnfreePredicate =493- pkg:494+ # Function to load and combine devShells495+ loadDevShells = lib.genAttrs' devShellFiles (496+ file:497 let498- ensureList = x: if builtins.isList x then x else [ x ];499- hasCudaLicense =500- package:501- builtins.all (502- license:503- license.free504- || builtins.elem license.shortName [505- "CUDA EULA"506- "cuDNN EULA"507- "cuSPARSELt EULA"508- "cuTENSOR EULA"509- "NVidia OptiX EULA"510- ]511- ) (ensureList package.meta.license);512- legacyPkgs = nixpkgs.legacyPackages.${system};513- pkgName = legacyPkgs.lib.getName pkg;514+ path = lib.traceValFn (x: file) ./devShells/${file};515+ shell = tetosPkgs.callPackage path (516+ { }517+ // lib.optionalAttrs (file == "devShell.nix") {518+ inherit secrets self;519+ }520+ );521 in522- if hasCudaLicense "cuda" pkgName then523- true524- else525- builtins.elem pkgName [526- "antigravity-cli"527- "Oracle_VM_VirtualBox_Extension_Pack"528- "Oracle_VirtualBox_Extension_Pack"529- "jocalsend"530- "codeium"531- "claude-code"532- "mistral-vibe"533-534- "ec2-api-tools"535- "google-chrome"536- # "slack"537- "steam"538- "steam-original"539- "steam-runtime"540- "steam-run"541- "steam-unwrapped"542- "sublimetext3"543- "vault"544- "vscode"545- "vscode-extension-ms-vsliveshare-vsliveshare"546- "xmind"547- "zoom"548- ];549- };550- };551- # Eval the treefmt modules from ./treefmt.nix552- treefmtEval = treefmt-nix.lib.evalModule tetosPkgs ./tetos/treefmt.nix;553-554- in555- {556-557- # todo create a bootstrap devShell558- # https://github.com/numtide/blueprint/blob/0ed984d51a3031065925ab08812a5434f40b93d4/lib/default.nix#L547559- devShells =560- let561- # Load all devShells from the devShells/ directory562- devShellFiles = builtins.attrNames (563- lib.filterAttrs (n: _: lib.hasSuffix ".nix" n) (builtins.readDir ./devShells)564- );565-566- # Function to load and combine devShells567- loadDevShells = lib.genAttrs' devShellFiles (568- file:569- let570- path = lib.traceValFn (x: file) ./devShells/${file};571- shell = tetosPkgs.callPackage path (572- { }573- // lib.optionalAttrs (file == "devShell.nix") {574- inherit secrets self;575- }576- );577- in578- {579- # lib.traceVal580- name = builtins.replaceStrings [ ".nix" ] [ "" ] file;581- value = shell;582- }583- );584- in585+ {586+ # lib.traceVal587+ name = builtins.replaceStrings [ ".nix" ] [ "" ] file;588+ value = shell;589+ }590+ );591+ in592 593- loadDevShells594- // {595- default = tetosPkgs.callPackage ./devShells/devShell.nix {596- inherit secrets self;597+ loadDevShells598+ // {599+ default = tetosPkgs.callPackage ./devShells/devShell.nix {600+ inherit secrets self;601+ };602+ inherit (unstablePkgs)603+ nhs910604+ nhs912605+ ;606 };607- inherit (unstablePkgs)608- nhs910609- nhs912610- ;611- };612 613- formatter = treefmtEval.config.build.wrapper;614+ formatter = treefmtEval.config.build.wrapper;615+616+ legacyPackages = tetosPkgs;617+ packages =618+ self.inputs.neovim-nightly-overlay.packages.${system}619+ # strip of620+ // (removeAttrs (byNamePkgsOverlay tetosPkgs { }) [ "_internalCallByNamePackageFile" ])621+ # // (autoloadedPkgsOverlay tetosPkgs { })622+ // {623+ /*624+ my own nvim with625+ I need to get the finalPackage generated by home-manager for my desktop626+ */627+628+ # generates a infinite trace right now629+ nvim =630+ self.nixosConfigurations.tatooine.config.home-manager.users.teto.programs.neovim.finalPackage;631+632+ inherit (self.inputs.jujutsu.packages.${system}) jujutsu;633+634+ inherit (tetosPkgs)635+ pass-import-high-password-length636+ jmdict637+ memento-whisper638+ # sway-scratchpad639+ termscp-matt640+ ;641+642+ # tetosPkgs.neovim-unwrapped;643+ neovim-unwrapped =644+ # "neovim-debug" / "neovim-developer"645+ self.inputs.neovim-nightly-overlay.packages."${system}".neovim.override {646+ # we want to take the luajit with our overlay of lua packages647+ luajit = tetosPkgs.luajit;648+ };649+650+ inherit (unstablePkgs)651+ nhs912652+ ;653 654- legacyPackages = tetosPkgs;655- packages =656- self.inputs.neovim-nightly-overlay.packages.${system}657- # strip of658- // (removeAttrs (byNamePkgsOverlay tetosPkgs { }) [ "_internalCallByNamePackageFile" ])659- # // (autoloadedPkgsOverlay tetosPkgs { })660- // {661- /*662- my own nvim with663- I need to get the finalPackage generated by home-manager for my desktop664- */665-666- # generates a infinite trace right now667- nvim =668- self.nixosConfigurations.tatooine.config.home-manager.users.teto.programs.neovim.finalPackage;669-670- inherit (self.inputs.jujutsu.packages.${system}) jujutsu;671-672- inherit (tetosPkgs)673- pass-import-high-password-length674- jmdict675- memento-whisper676- # sway-scratchpad677- termscp-matt678- ;679+ };680 681- # tetosPkgs.neovim-unwrapped;682- neovim-unwrapped =683- # "neovim-debug" / "neovim-developer"684- self.inputs.neovim-nightly-overlay.packages."${system}".neovim.override {685- # we want to take the luajit with our overlay of lua packages686- luajit = tetosPkgs.luajit;687- };688-689- inherit (unstablePkgs)690- nhs912691- ;692+ # TODO run evals and treefmt checks693+ # used by nixbot694+ # https://github.com/nix-community/nixos-images/blob/56b52791312edeade1e6bd853ce56c778f363d50/flake.nix#L53695+ checks = {696+ # formatting = treefmtEval.${tetosPkgs.system}.config.build.check self;697 698+ # not a derivation699+ formatting = treefmtEval.config.build.check self;700 };701 702- # TODO run evals and treefmt checks703- # used by nixbot704- # https://github.com/nix-community/nixos-images/blob/56b52791312edeade1e6bd853ce56c778f363d50/flake.nix#L53705- checks = {706- # formatting = treefmtEval.${tetosPkgs.system}.config.build.check self;707-708- # not a derivation709- formatting = treefmtEval.config.build.check self;710- };711-712- })713+ }714+ )715 // {716 # those help debug in repl717 inherit (self) inputs;718@@ -568,9 +568,10 @@719 nixosConfigs = lib.importDirectories ./hosts (720 # dirname => hostname721 hostname: val:722- lib.nameValuePair hostname (let723- enableCuda = hostname == "jedha";724- in725+ lib.nameValuePair hostname (726+ let727+ enableCuda = hostname == "jedha";728+ in729 lib.mkNixosSystem {730 inherit hostname;731 # ideally we would return both versions732@@ -607,8 +608,9 @@733 # )734 # );735 in736- nixosConfigs // nixosConfigsWithoutSecrets // {737-738+ nixosConfigs739+ // nixosConfigsWithoutSecrets740+ // {741 742 ixeal-spark = nixosConfigs.wsl.extendModules {743 744@@ -623,8 +625,8 @@745 746 modules = [747 {748- networking.hostName = lib.mkForce "ixeal-matthieu";749- }750+ networking.hostName = lib.mkForce "ixeal-matthieu";751+ }752 ];753 };754 755@@ -688,9 +690,9 @@756 # if it doesn't work you can always fall back to the vanilla nixos-rebuild:757 deploy = import ./deploy.nix {758 inherit759- secrets 760+ secrets761 # system762- ;763+ ;764 flakeSelf = self;765 };766 767diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix768index e95570a..ae177f7 100644769--- a/hm/modules/audiocast.nix770+++ b/hm/modules/audiocast.nix771@@ -1,7 +1,13 @@772-{ config, lib, pkgs, ... }:773+{774+ config,775+ lib,776+ pkgs,777+ ...778+}:779 let780- cfg = config.services.audiocast;781-in {782+ cfg = config.services.audiocast;783+in784+{785 options = {786 services.audiocast = {787 enable = lib.mkEnableOption "audiocast-stream";788@@ -16,44 +22,43 @@ in {789 };790 config = lib.mkIf cfg.enable {791 792-793- # Renderer friendlyName to discover over SSDP794- # Hard-coded AVTransport control URL (skips SSDP discovery)795- # else we give url796- # ❯ yamaha discover797- # name host model udn798- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e799- # port 8082 Local HTTP port for the stream800- xdg.configFile."audiocast/config" = {801- enable = false;802- text = ''803- [audiocast]804- name = Espace Musical805- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)806- mode = app807- sink = audiocast808- sink_description = AudioCast (DLNA)809- '';810-};811-812- systemd.user.services.audiocast-stream = {813- Unit = {814- Description = "Stream PipeWire audio to a DLNA renderer";815- After = [816- "pipewire.service"817- "pipewire-pulse.service"818- ];819- Wants = [ "pipewire-pulse.service" ];820+ # Renderer friendlyName to discover over SSDP821+ # Hard-coded AVTransport control URL (skips SSDP discovery)822+ # else we give url823+ # ❯ yamaha discover824+ # name host model udn825+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e826+ # port 8082 Local HTTP port for the stream827+ xdg.configFile."audiocast/config" = {828+ enable = false;829+ text = ''830+ [audiocast]831+ name = Espace Musical832+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)833+ mode = app834+ sink = audiocast835+ sink_description = AudioCast (DLNA)836+ '';837 };838- Service = {839- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";840- Restart = "on-failure";841- # The renderer may be asleep or temporarily off the network. The842- # program exits when discovery fails, so retry without a tight loop.843- RestartSec = 30;844+845+ systemd.user.services.audiocast-stream = {846+ Unit = {847+ Description = "Stream PipeWire audio to a DLNA renderer";848+ After = [849+ "pipewire.service"850+ "pipewire-pulse.service"851+ ];852+ Wants = [ "pipewire-pulse.service" ];853+ };854+ Service = {855+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";856+ Restart = "on-failure";857+ # The renderer may be asleep or temporarily off the network. The858+ # program exits when discovery fails, so retry without a tight loop.859+ RestartSec = 30;860+ };861+ Install.WantedBy = [ "default.target" ];862 };863- Install.WantedBy = [ "default.target" ];864- };865 };866 867 }868diff --git a/hm/modules/flyline.nix b/hm/modules/flyline.nix869index 810c110..ab4c58a 100644870--- a/hm/modules/flyline.nix871+++ b/hm/modules/flyline.nix872@@ -1,8 +1,15 @@873-# 874-{ config, lib, pkgs, osConfig ? null, ... }:875+#876+{877+ config,878+ lib,879+ pkgs,880+ osConfig ? null,881+ ...882+}:883 let884- cfg = config.programs.flyline;885-in {886+ cfg = config.programs.flyline;887+in888+{889 options = {890 programs.flyline = {891 892@@ -37,6 +44,6 @@ in {893 flyline history --backend flyline894 source ${../../config/bash/flyline.sh}895 896- '';897+ '';898 };899 }900diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix901index b6d495f..e7da295 100644902--- a/hm/modules/kitty.nix903+++ b/hm/modules/kitty.nix904@@ -54,7 +54,7 @@ in905 map kitty_mod+h kitty_scrollback_nvim ./tmp906 # Browse output of the last shell command in nvim907 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output908- '';909+ '';910 911 #912 # # Browse output of the last shell command in nvim913diff --git a/hm/modules/microsoft.nix b/hm/modules/microsoft.nix914index 218784e..da475a8 100644915--- a/hm/modules/microsoft.nix916+++ b/hm/modules/microsoft.nix917@@ -1,8 +1,14 @@918 # enable this module to work in a microsoft environment919-{ config, lib, pkgs, ... }:920+{921+ config,922+ lib,923+ pkgs,924+ ...925+}:926 let927- cfg = config.microsoft;928-in {929+ cfg = config.microsoft;930+in931+{932 options = {933 microsoft = {934 enable = lib.mkEnableOption "microsoft";935diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix936index 8d60438..e76a354 100644937--- a/hm/modules/package-sets.nix938+++ b/hm/modules/package-sets.nix939@@ -62,7 +62,6 @@ in940 941 };942 943-944 # this gets merged by default945 config = lib.mkMerge [946 {947@@ -115,7 +114,6 @@ in948 pkgs.blazingjj949 flakeSelf.inputs.jj-gh.packages.${system}.default950 951-952 # pkgs.gg-jj953 # pkgs.lazyjj954 # pkgs.jj-fzf955@@ -419,7 +417,6 @@ in956 lurk # a rust strace957 lsof # to see open files958 959-960 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship961 libossp_uuid # for the 'libuuid' executable962 963@@ -490,7 +487,6 @@ in964 965 # rainfrog # database exploration966 967-968 process-compose # docker-compose - like969 # rpl # to replace strings across files970 repgrep # replace matches found by rg971@@ -502,7 +498,7 @@ in972 tmux # when connecting via ssh973 trurl # used to parse url in the firefox-router executable974 universal-ctags # there are many different ctags, be careful !975- uv # to install python packages976+ uv # to install python packages977 unar # used to view archives by yazi (now using ouch ?)978 vifm979 viu # a console image viewer980@@ -697,7 +693,7 @@ in981 pkgs.tsukumi982 ];983 })984- (mkIf cfg.jellyfin {985+ (mkIf cfg.jellyfin {986 987 home.packages = [988 989@@ -708,13 +704,12 @@ in990 # pkgs.feishin # GUI991 # pkgs.jellycli # could not login :/992 993-994 # VIDEO compatible995 # - Jellyfin MPV Shim996 (ignoreBroken pkgs.tsukimi) # gtk+rust music player GUI997 pkgs.jellyfin-desktop998 pkgs.jellyfin-mpv-shim999- # jellyhaj # not upstreamed yet 1000+ # jellyhaj # not upstreamed yet1001 # fladder # nice GUI1002 # jftui too minimalistic1003 # pkgs.jellyflix # nice1004diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix1005index 417f45f..c378d94 1006441006--- a/hm/profiles/teto-desktop/default.nix1007+++ b/hm/profiles/teto-desktop/default.nix1008@@ -114,7 +114,7 @@ in1009 1010 home.packages =1011 with pkgs;1012- let 1013+ let1014 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;1015 1016 # lux-cli-teto = lux-cli;1017@@ -125,7 +125,7 @@ in1018 in1019 1020 [1021- kodi-teto 1022+ kodi-teto1023 codex # openai agent1024 codex-acp # originated from zed-industries, used in avante1025 1026@@ -189,9 +189,8 @@ in1027 # kaggle # kaggle interface1028 # python3Packages.kaggle1029 1030-1031- sonic-pi # for live music coding1032- stow # tool to create symlinks1033+ sonic-pi # for live music coding1034+ stow # tool to create symlinks1035 systemctl-tui1036 timr-tui # rust clock1037 1038@@ -268,7 +267,7 @@ in1039 TETOS_BUILDER_NEOTOKYO = builder_neotokyo;1040 TETOS_BUILDER_JEDHA = builder_jedha;1041 TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity;1042- inherit (secrets) 1043+ inherit (secrets)1044 TAVILY_API_KEY1045 FIRECRAWL_API_KEY1046 CONFIDENT_AI_API_KEY1047diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix1048index e282359..ea63df4 1006441049--- a/hm/profiles/teto-desktop/programs/codex.nix1050+++ b/hm/profiles/teto-desktop/programs/codex.nix1051@@ -1,6 +1,5 @@1052 {1053 1054-1055 enable = true;1056 enableMcpIntegration = true;1057 # CODEX_HOME/AGENTS.md.1058diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix1059index 9b41b6c..aabc790 1006441060--- a/hm/profiles/teto-desktop/programs/firefox.nix1061+++ b/hm/profiles/teto-desktop/programs/firefox.nix1062@@ -95,19 +95,18 @@ in1063 # extraConfig =1064 id = 0;1065 1066- userChrome =1067- ''1068- /* Hide tab bar in FF Quantum */1069- @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {1070- #TabsToolbar {1071- visibility: collapse !important;1072- margin-bottom: 21px !important;1073- }1074-1075- }1076- '';1077-1078- # userContent = 1079+ userChrome = ''1080+ /* Hide tab bar in FF Quantum */1081+ @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) {1082+ #TabsToolbar {1083+ visibility: collapse !important;1084+ margin-bottom: 21px !important;1085+ }1086+1087+ }1088+ '';1089+1090+ # userContent =1091 # ''1092 # /* Hide scrollbar in FF Quantum */1093 # *{scrollbar-width:none !important}1094diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix1095index aacec43..9037ef9 1006441096--- a/hm/profiles/teto-desktop/programs/jujutsu.nix1097+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix1098@@ -34,9 +34,12 @@1099 name = "teto";1100 };1101 ui = {1102- # jj splits puts the cursor in a f**** position, we need $line to restore 1103+ # jj splits puts the cursor in a f**** position, we need $line to restore1104 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes1105- editor = ["nvim" "+$line"];1106+ editor = [1107+ "nvim"1108+ "+$line"1109+ ];1110 default-command = "status";1111 merge-editor = "nvim";1112 # Enable pagination for commands that support it (default)1113diff --git a/hm/profiles/teto-desktop/programs/neovim.nix b/hm/profiles/teto-desktop/programs/neovim.nix1114index 90413e9..ce5e554 1006441115--- a/hm/profiles/teto-desktop/programs/neovim.nix1116+++ b/hm/profiles/teto-desktop/programs/neovim.nix1117@@ -246,7 +246,7 @@ let1118 fswatch # better file watching starting with 0.101119 # go # for gitlab.nvim, we can probably ditch it afterwards1120 1121- lemminx # 1122+ lemminx1123 luajitPackages.luacheck1124 1125 luau-lsp1126diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix1127index be52e45..f9d09d8 1006441128--- a/hm/profiles/teto-desktop/programs/rofi.nix1129+++ b/hm/profiles/teto-desktop/programs/rofi.nix1130@@ -37,8 +37,8 @@1131 1132 location = "center";1133 modes = [1134- # modes: [ combi ];1135- # combi-modes: [ window, drun, run ];1136+ # modes: [ combi ];1137+ # combi-modes: [ window, drun, run ];1138 1139 ];1140 1141diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix1142index 0dad1af..11dd2ad 1006441143--- a/hm/profiles/teto-desktop/xdg/default.nix1144+++ b/hm/profiles/teto-desktop/xdg/default.nix1145@@ -101,12 +101,12 @@1146 "bash/bashrc".text = ''1147 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"1148 source "$script_dir/manual.sh"1149- ''1150- # check if flyline defined too ?1151- + lib.optionalString osConfig.programs.flyline.enable '' 1152- source "$script_dir/flyline.sh"1153+ ''1154+ # check if flyline defined too ?1155+ + lib.optionalString osConfig.programs.flyline.enable ''1156+ source "$script_dir/flyline.sh"1157 1158- '';1159+ '';1160 1161 "nvim/lua/generated-by-nix.lua" =1162 let1163diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix1164index 4e65ba3..401717a 1006441165--- a/hosts/jedha/default.nix1166+++ b/hosts/jedha/default.nix1167@@ -91,12 +91,20 @@ in1168 # Upmpdcli's local-library server needs both discovery and HTTP access.1169 networking.firewall = lib.mkIf config.services.upmpdcli.enable {1170 allowedUDPPorts = [ 1900 ];1171- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];1172+ allowedTCPPorts = with config.services.upmpdcli.configuration; [1173+ upnpport1174+ uprclport1175+ ];1176 };1177 1178 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {1179 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.1180- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];1181+ path = [1182+ pkgs.recoll1183+ pkgs.python31184+ pkgs.openssl1185+ pkgs.diffutils1186+ ];1187 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];1188 };1189 1190diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix1191index babb3bb..861919d 1006441192--- a/hosts/jedha/home-manager/users/teto/default.nix1193+++ b/hosts/jedha/home-manager/users/teto/default.nix1194@@ -104,7 +104,6 @@ in1195 btop-cuda # for jedha1196 brush # a rust implementation of bash1197 1198-1199 # creates conflicts since it brings python and several executables1200 # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService1201 1202@@ -147,9 +146,9 @@ in1203 # bridge-utils# pour brctl1204 # vscode-css-languageserver # to showcase 'cssls' lsp server1205 1206- rura # to build shell pipelines1207+ rura # to build shell pipelines1208 # termusic # terminal music1209- 1210+1211 ];1212 1213 package-sets = {1214diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix1215index 3378a39..9ce7079 1006441216--- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix1217+++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix1218@@ -1,36 +1,34 @@1219 { pkgs, lib, ... }:1220 {1221 1222-1223 enable = true;1224 1225 # github:utensils/mcp-nixos1226- servers = 1227- {1228-1229- nixos = {1230- command = "${pkgs.mcp-nixos}/bin/mcp-nixos";1231- };1232-1233- # https://github.com/homeassistant-ai/ha-mcp1234- ha-mcp = {1235-1236- command = "${lib.getExe pkgs.ha-mcp}";1237-1238- };1239-1240- # everything = {1241- # command = "npx";1242- # args = [ "-y" "@modelcontextprotocol/server-everything" ];1243- # };1244- # context7 = {1245- # url = "https://mcp.context7.com/mcp";1246- # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";1247- # };1248- # codeberg = {1249- # command = "/path/to/forgejo-mcp";1250- # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];1251- # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";1252- # };1253- };1254+ servers = {1255+1256+ nixos = {1257+ command = "${pkgs.mcp-nixos}/bin/mcp-nixos";1258+ };1259+1260+ # https://github.com/homeassistant-ai/ha-mcp1261+ ha-mcp = {1262+1263+ command = "${lib.getExe pkgs.ha-mcp}";1264+1265+ };1266+1267+ # everything = {1268+ # command = "npx";1269+ # args = [ "-y" "@modelcontextprotocol/server-everything" ];1270+ # };1271+ # context7 = {1272+ # url = "https://mcp.context7.com/mcp";1273+ # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}";1274+ # };1275+ # codeberg = {1276+ # command = "/path/to/forgejo-mcp";1277+ # args = [ "transport" "stdio" "--url" "https://codeberg.org" ];1278+ # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token";1279+ # };1280+ };1281 }1282diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix1283index 083732e..09017c2 1006441284--- a/hosts/jedha/services/avahi.nix1285+++ b/hosts/jedha/services/avahi.nix1286@@ -13,7 +13,6 @@1287 1288 debug = true;1289 1290-1291 # allowInterfaces = [1292 # "wlp10s0"1293 # ];1294@@ -30,13 +29,12 @@1295 };1296 1297 publish = {1298- disable-publishing = false;1299- disable-user-service-publishing = false;1300- publish-addresses = true;1301- };1302-1303+ disable-publishing = false;1304+ disable-user-service-publishing = false;1305+ publish-addresses = true;1306 };1307 1308+ };1309 1310 nssmdns4 = true;1311 # publish = {1312diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix1313index 7f3f4aa..f62f7ed 1006441314--- a/hosts/jedha/services/minidlna.nix1315+++ b/hosts/jedha/services/minidlna.nix1316@@ -7,7 +7,6 @@1317 # announceInterval = 60;1318 openFirewall = true;1319 1320-1321 # there are udp errors when it binds to wireguard network ?1322 1323 settings = {1324@@ -16,9 +15,9 @@1325 friendly_name = "jedha";1326 # inotify = "yes";1327 log_level = "warn";1328- media_dir = [ 1329+ media_dir = [1330 # can be prefixed with V/A, to filter audio/video1331- "/mnt/ext/music" 1332+ "/mnt/ext/music"1333 ];1334 inotify = "yes";1335 # db_dir =1336diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix1337index 28cc3b4..1d1609c 1006441338--- a/hosts/jedha/services/opentelemetry-collector.nix1339+++ b/hosts/jedha/services/opentelemetry-collector.nix1340@@ -1,23 +1,22 @@1341 {1342 1343-1344 enable = true;1345 1346 settings =1347-let1348- port = 4318;1349-in1350+ let1351+ port = 4318;1352+ in1353 {1354- exporters.debug.verbosity = "detailed";1355- receivers.otlp.protocols = {1356- http.endpoint = "0.0.0.0:${toString port}";1357- };1358- service = {1359- pipelines.logs = {1360- receivers = [ "otlp" ];1361- exporters = [ "debug" ];1362- };1363- };1364+ exporters.debug.verbosity = "detailed";1365+ receivers.otlp.protocols = {1366+ http.endpoint = "0.0.0.0:${toString port}";1367+ };1368+ service = {1369+ pipelines.logs = {1370+ receivers = [ "otlp" ];1371+ exporters = [ "debug" ];1372+ };1373+ };1374 1375- };1376+ };1377 }1378diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix1379index ef04f30..390f091 1006441380--- a/hosts/jedha/services/upmpdcli.nix1381+++ b/hosts/jedha/services/upmpdcli.nix1382@@ -1,12 +1,12 @@1383 /*1384-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 1385- should change playback if rmpd and upmpdcli are controlling the same MPD instance1386- 1387- • 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.1388-• 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.1389+ 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, it1390+ should change playback if rmpd and upmpdcli are controlling the same MPD instance1391 1392-mpd now has a plugin that can play music from upnp server 1393-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction1394+ • 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.1395+ • 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.1396+1397+ mpd now has a plugin that can play music from upnp server1398+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction1399 */1400 1401 { pkgs, lib, ... }:1402@@ -44,7 +44,7 @@ in1403 mpdport = 6600;1404 # try to see if I can control it myself1405 ownqueue = 0;1406- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 1407+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo1408 # control the playlist. The client can disconnect after playlist was created1409 openhome = 0;1410 upnpav = 1;1411diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix1412index 59d7129..e0cab47 1006441413--- a/hosts/jedha/systemd.nix1414+++ b/hosts/jedha/systemd.nix1415@@ -34,61 +34,60 @@ in1416 })1417 # disabled because ha-mcp broken1418 (lib.mkIf false {1419- ha-mcp = {1420- description = "Home Assistant MCP server";1421- wantedBy = [ "multi-user.target" ];1422- wants = [ "network-online.target" ];1423- after = [ "network-online.target" ];1424- environment = {1425- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";1426- HOME = "/var/lib/ha-mcp";1427- MCP_HOST = "127.0.0.1";1428- MCP_PORT = "8086";1429- };1430- serviceConfig = {1431- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";1432- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.1433- EnvironmentFile = "/var/lib/ha-mcp/environment";1434- DynamicUser = true;1435- StateDirectory = "ha-mcp";1436- WorkingDirectory = "/var/lib/ha-mcp";1437- Restart = "on-failure";1438- RestartSec = 5;1439- UMask = "0077";1440- };1441+ ha-mcp = {1442+ description = "Home Assistant MCP server";1443+ wantedBy = [ "multi-user.target" ];1444+ wants = [ "network-online.target" ];1445+ after = [ "network-online.target" ];1446+ environment = {1447+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";1448+ HOME = "/var/lib/ha-mcp";1449+ MCP_HOST = "127.0.0.1";1450+ MCP_PORT = "8086";1451 };1452+ serviceConfig = {1453+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";1454+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.1455+ EnvironmentFile = "/var/lib/ha-mcp/environment";1456+ DynamicUser = true;1457+ StateDirectory = "ha-mcp";1458+ WorkingDirectory = "/var/lib/ha-mcp";1459+ Restart = "on-failure";1460+ RestartSec = 5;1461+ UMask = "0077";1462+ };1463+ };1464 1465- # copied from https://github.com/NixOS/nixpkgs/pull/5442521466- # lib.recursiveUpdate slib.systemd.serviceDefaults {1467- speech-to-phrase = {1468- # after = [ "home-assistant.service" ];1469- script = lib.concatStringsSep " " [1470- (lib.getExe pkgs.speech-to-phrase)1471- "--models-dir"1472- "\"$STATE_DIRECTORY/models\""1473- "--train-dir"1474- "\"$STATE_DIRECTORY/train\""1475- # "--custom-sentences-dir" ""1476- "--uri 'tcp://127.0.0.1:10400'"1477- "--hass-websocket-uri"1478- "ws://${hassHost}:${toString hassPort}/api/websocket"1479- "--retrain-on-start"1480- "--retrain-on-connect"1481- "--retrain-seconds"1482- "300"1483- ];1484- serviceConfig = {1485- #1486- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1487- Group = "speech-to-phrase";1488- StateDirectory = "speech-to-phrase";1489- User = "speech-to-phrase";1490- # TODO: hardening1491- };1492+ # copied from https://github.com/NixOS/nixpkgs/pull/5442521493+ # lib.recursiveUpdate slib.systemd.serviceDefaults {1494+ speech-to-phrase = {1495+ # after = [ "home-assistant.service" ];1496+ script = lib.concatStringsSep " " [1497+ (lib.getExe pkgs.speech-to-phrase)1498+ "--models-dir"1499+ "\"$STATE_DIRECTORY/models\""1500+ "--train-dir"1501+ "\"$STATE_DIRECTORY/train\""1502+ # "--custom-sentences-dir" ""1503+ "--uri 'tcp://127.0.0.1:10400'"1504+ "--hass-websocket-uri"1505+ "ws://${hassHost}:${toString hassPort}/api/websocket"1506+ "--retrain-on-start"1507+ "--retrain-on-connect"1508+ "--retrain-seconds"1509+ "300"1510+ ];1511+ serviceConfig = {1512+ #1513+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;1514+ Group = "speech-to-phrase";1515+ StateDirectory = "speech-to-phrase";1516+ User = "speech-to-phrase";1517+ # TODO: hardening1518 };1519+ };1520 1521- }1522- )1523+ })1524 ];1525 1526 # just to test1527diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix1528index 5a92154..337beb9 1006441529--- a/hosts/router/services/home-assistant.nix1530+++ b/hosts/router/services/home-assistant.nix1531@@ -34,7 +34,7 @@ in1532 ];1533 1534 customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [1535-# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1536+ # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix1537 easy-floorplan1538 button-card1539 # home-assistant-custom-lovelace-modules.sankey-chart1540@@ -68,8 +68,6 @@ in1541 material-you-theme1542 ];1543 1544-1545-1546 blueprints = {1547 automation = [1548 # ATTENTION: The name should contain the extension .yaml1549diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix1550index a81a7ef..928f21c 1006441551--- a/hosts/tatooine/default.nix1552+++ b/hosts/tatooine/default.nix1553@@ -132,7 +132,6 @@ in1554 enableRedistributableFirmware = true;1555 sane.enable = true;1556 1557-1558 # High quality BT calls1559 # https://nixos.wiki/wiki/Bluetooth1560 bluetooth = {1561diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1562index 6210293..5c3a889 1006441563--- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1564+++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix1565@@ -1,9 +1,9 @@1566-{ pkgs, ...}:1567+{ pkgs, ... }:1568 {1569 1570- scripts = [1571- # as python1572- # pkgs.mpvDLNA1573- ];1574+ scripts = [1575+ # as python1576+ # pkgs.mpvDLNA1577+ ];1578 1579 }1580diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix1581index adc82dd..1724c86 1006441582--- a/hosts/tatooine/services/adguardhome.nix1583+++ b/hosts/tatooine/services/adguardhome.nix1584@@ -10,7 +10,7 @@1585 settings = {1586 1587 # http (since v0.107.36): Web interface configuration.1588- # address: Web interface IP address with port to listen on 1589+ # address: Web interface IP address with port to listen on1590 http.address = "127.0.0.1:8084";1591 1592 };1593diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix1594index dd02f3f..f14c221 1006441595--- a/hosts/tatooine/services/avahi.nix1596+++ b/hosts/tatooine/services/avahi.nix1597@@ -21,19 +21,19 @@1598 1599 settings = {1600 publish = {1601- publish-domain = true;1602- disable-publishing = false;1603- disable-user-service-publishing = false;1604- publish-addresses = true;1605- };1606+ publish-domain = true;1607+ disable-publishing = false;1608+ disable-user-service-publishing = false;1609+ publish-addresses = true;1610+ };1611 1612 server = {1613 use-ipv6 = false; # bug with multiple hostnames1614- # # 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.1615- # # secrets.jedha.hostname;1616- # # host-name = "jedha";1617- # # enable-dbus = true;1618- #1619+ # # 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.1620+ # # secrets.jedha.hostname;1621+ # # host-name = "jedha";1622+ # # enable-dbus = true;1623+ #1624 };1625 };1626 1627diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix1628index 4cd2e1d..a9725d3 1006441629--- a/hosts/tatooine/services/mediatomb.nix1630+++ b/hosts/tatooine/services/mediatomb.nix1631@@ -1,6 +1,6 @@1632 # it's gerbera in fact1633 { pkgs, ... }:1634-let 1635+let1636 # <mappings>1637 # freeboxRevolution6Mappings = ''1638 # <extension-mimetype ignore-unknown="no">1639@@ -68,78 +68,77 @@ in1640 1641 # to avoid having to rewire the permissions1642 group = "minidlna";1643- interface="wlp2s0";1644+ interface = "wlp2s0";1645 # we should use subsitute for the VLC/ffmpedg commands1646-# postInstall = ''1647-# substitute $src/config.in $out/config \1648-# --replace-fail '@X@' "$X"1649-# '';1650-#1651-# For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1652-transcoding = ''<transcoding enabled="yes" >1653- <profile name="freebox-h264" enabled="yes" type="external">1654- <mimetype>video/mpeg</mimetype>1655- <accept-url>no</accept-url>1656- <first-resource>yes</first-resource>1657- <accept-ogg-theora>no</accept-ogg-theora>1658- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1659- arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1660- <buffer size="14400000" chunk-size="512000" fill-size="120000" />1661- </profile>1662- <profile name="freebox-aac" enabled="yes" type="external">1663- <mimetype>audio/aac</mimetype>1664- <accept-url>no</accept-url>1665- <first-resource>yes</first-resource>1666- <accept-ogg-theora>no</accept-ogg-theora>1667- <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1668- arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1669- <buffer size="1048576" chunk-size="131072" fill-size="262144" />1670- </profile>1671- <mimetype-profile-mappings>1672- <!-- enable freebox ones -->1673- <transcode mimetype="video/x-flv" using="freebox-h264" />1674- <transcode mimetype="application/ogg" using="freebox-h264" />1675- <transcode mimetype="video/x-matroska" using="freebox-h264" />1676- <transcode mimetype="video/x-msvideo" using="freebox-h264" />1677- <transcode mimetype="audio/ogg" using="freebox-aac" />1678- </mimetype-profile-mappings>1679- </transcoding>1680- '';1681-1682+ # postInstall = ''1683+ # substitute $src/config.in $out/config \1684+ # --replace-fail '@X@' "$X"1685+ # '';1686+ #1687+ # For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set.1688+ transcoding = ''1689+ <transcoding enabled="yes" >1690+ <profile name="freebox-h264" enabled="yes" type="external">1691+ <mimetype>video/mpeg</mimetype>1692+ <accept-url>no</accept-url>1693+ <first-resource>yes</first-resource>1694+ <accept-ogg-theora>no</accept-ogg-theora>1695+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1696+ arguments="-i %in -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -f mpegts %out" />1697+ <buffer size="14400000" chunk-size="512000" fill-size="120000" />1698+ </profile>1699+ <profile name="freebox-aac" enabled="yes" type="external">1700+ <mimetype>audio/aac</mimetype>1701+ <accept-url>no</accept-url>1702+ <first-resource>yes</first-resource>1703+ <accept-ogg-theora>no</accept-ogg-theora>1704+ <agent command="${pkgs.ffmpeg}/bin/ffmpeg"1705+ arguments="-i %in -vn -c:a aac -b:a 192k -f adts %out" />1706+ <buffer size="1048576" chunk-size="131072" fill-size="262144" />1707+ </profile>1708+ <mimetype-profile-mappings>1709+ <!-- enable freebox ones -->1710+ <transcode mimetype="video/x-flv" using="freebox-h264" />1711+ <transcode mimetype="application/ogg" using="freebox-h264" />1712+ <transcode mimetype="video/x-matroska" using="freebox-h264" />1713+ <transcode mimetype="video/x-msvideo" using="freebox-h264" />1714+ <transcode mimetype="audio/ogg" using="freebox-aac" />1715+ </mimetype-profile-mappings>1716+ </transcoding>1717+ '';1718 1719-# from-file="${./transcoding.xml}" />'';1720+ # from-file="${./transcoding.xml}" />'';1721 1722 mappings = ''<mappings from-file="${./mappings.xml}" />'';1723 1724-1725-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1726-# # Les codecs vidéos :1727-# # H.264 ;1728-# # MPEG2 ;1729-# # MS-MPEG4 (DivX 3) ;1730-# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1731-# # VC1.1732-# #1733-# # Les codecs audios :1734-# # en decode :1735-# # AAC, ;1736-# # M Dolby Digital (downmix 2.0) ;1737-# # Dolby Digital Plus(downmix 2.0)1738-# # DTS core (downmix 2.0) ;1739-# # FLAC ;1740-# # MP2 ;1741-# # MP3 ;1742-# # Vorbis.1743-# #1744-# # en passthrough (via la sortie HDMI) :1745-# # AAC ;1746-# # Dolby Digital ;1747-# # Dolby Digital Plus ;1748-# # Dolby Digital TrueHD ;1749-# # DTS ;1750-# # DTS-HD (MA et HRA). 1751-# # d'apres1752-# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1753+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1754+ # # Les codecs vidéos :1755+ # # H.264 ;1756+ # # MPEG2 ;1757+ # # MS-MPEG4 (DivX 3) ;1758+ # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ;1759+ # # VC1.1760+ # #1761+ # # Les codecs audios :1762+ # # en decode :1763+ # # AAC, ;1764+ # # M Dolby Digital (downmix 2.0) ;1765+ # # Dolby Digital Plus(downmix 2.0)1766+ # # DTS core (downmix 2.0) ;1767+ # # FLAC ;1768+ # # MP2 ;1769+ # # MP3 ;1770+ # # Vorbis.1771+ # #1772+ # # en passthrough (via la sortie HDMI) :1773+ # # AAC ;1774+ # # Dolby Digital ;1775+ # # Dolby Digital Plus ;1776+ # # Dolby Digital TrueHD ;1777+ # # DTS ;1778+ # # DTS-HD (MA et HRA).1779+ # # d'apres1780+ # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes1781 1782 # 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.1783 #1784@@ -178,19 +177,18 @@ transcoding = ''<transcoding enabled="yes" >1785 1786 # 49152 already used by mdp1787 port = 49153;1788- mediaDirectories= [1789- {1790- hidden-files = false;1791- path = "/home/teto/videos";1792- recursive = true;1793- }1794- {1795- hidden-files = false;1796- path = "/home/teto/Music";1797- recursive = true;1798- }1799-1800- ];1801+ mediaDirectories = [1802+ {1803+ hidden-files = false;1804+ path = "/home/teto/videos";1805+ recursive = true;1806+ }1807+ {1808+ hidden-files = false;1809+ path = "/home/teto/Music";1810+ recursive = true;1811+ }1812 1813+ ];1814 1815 }1816diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix1817index 5a3e20e..e9c8039 1006441818--- a/hosts/tatooine/services/minidlna.nix1819+++ b/hosts/tatooine/services/minidlna.nix1820@@ -13,7 +13,6 @@1821 # to receive sssdp answers1822 openFirewall = true;1823 1824-1825 # there are udp errors when it binds to wireguard network ?1826 1827 settings = {1828@@ -22,7 +21,7 @@1829 friendly_name = "tatooine";1830 # inotify = "yes";1831 log_level = "warn";1832- media_dir = [ 1833+ media_dir = [1834 # can be prefixed with V/A, to filter audio/video1835 "/home/teto/videos"1836 "/home/teto/Music"1837@@ -30,11 +29,9 @@1838 1839 # Network interface to bind (optional; self-discovers if commented out)1840 # to avoid erros on wireguard if1841- network_interface="wlp2s0"; 1842+ network_interface = "wlp2s0";1843 # to remove warnings1844 inotify = "no";1845 # db_dir =1846 };1847 }1848-1849-1850diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix1851index 0c082b6..58d9c85 1006441852--- a/hosts/tatooine/services/pulseaudio.nix1853+++ b/hosts/tatooine/services/pulseaudio.nix1854@@ -1,9 +1,8 @@1855 { pkgs, ... }:1856- # cant be enabled with pipewire1857- {1858- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1859- enable = false;1860- # for ad2p profle ?1861- package = pkgs.pulseaudioFull;1862- }1863-1864+# cant be enabled with pipewire1865+{1866+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false1867+ enable = false;1868+ # for ad2p profle ?1869+ package = pkgs.pulseaudioFull;1870+}1871diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix1872index e158259..4b6709c 1006441873--- a/hosts/tatooine/tetos.nix1874+++ b/hosts/tatooine/tetos.nix1875@@ -9,7 +9,8 @@1876 {1877 allowUpnp = true;1878 1879-} // lib.optionalAttrs withSecrets {1880+}1881+// lib.optionalAttrs withSecrets {1882 wireguard = {1883 id = 2;1884 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";1885@@ -19,4 +20,4 @@1886 flakeSelf.nixosConfigurations.neotokyo1887 ];1888 };1889-} 1890+}1891diff --git a/hosts/wsl/hm-teto.nix b/hosts/wsl/hm-teto.nix1892index ef31ff2..a4ca0d6 1006441893--- a/hosts/wsl/hm-teto.nix1894+++ b/hosts/wsl/hm-teto.nix1895@@ -1,29 +1,34 @@1896-{ config, lib, pkgs, ... }:1897 {1898- programs.git = {1899- enable = true;1900- includes = [1901+ config,1902+ lib,1903+ pkgs,1904+ ...1905+}:1906+{1907+ programs.git = {1908+ enable = true;1909+ includes = [1910+1911+ { path = config.xdg.configHome + "/git/manual.gitconfig"; }1912+ ];1913 1914- { path = config.xdg.configHome + "/git/manual.gitconfig"; }1915- ];1916+ package = pkgs.gitFull; # to get send-email1917 1918- package = pkgs.gitFull; # to get send-email1919+ settings = {1920+ # user = {1921+ # email = lib.mkForce "886074+teto@users.noreply.github.com";1922+ # };1923+ user = {1924+ # mkForce due to nova1925+ name = "Matthieu C.";1926+ email = lib.mkForce "886074+teto@users.noreply.github.com";1927+ };1928 1929- settings = {1930- # user = {1931- # email = lib.mkForce "886074+teto@users.noreply.github.com";1932- # };1933- user = {1934- # mkForce due to nova1935- name = "Matthieu C.";1936- email = lib.mkForce "886074+teto@users.noreply.github.com";1937+ # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1938+ credential.helper = "store";1939 };1940 1941- # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE1942- credential.helper = "store";1943 };1944 1945-};1946-1947-programs.flyline.enable = true;1948+ programs.flyline.enable = true;1949 }1950diff --git a/hosts/wsl/llamacpp.nix b/hosts/wsl/llamacpp.nix1951index d9f179f..d1f1f13 1006441952--- a/hosts/wsl/llamacpp.nix1953+++ b/hosts/wsl/llamacpp.nix1954@@ -1,5 +1,4 @@1955 {1956 enable = true;1957 1958-1959 }1960diff --git a/justfile b/justfile1961index 36b0eaf..c6478cc 1006441962--- a/justfile1963+++ b/justfile1964@@ -65,12 +65,12 @@ bootstrap-vps target:1965 --debug1966 1967 bump-meli:1968- nix-update -F --version=branch=master meli-teto1969+ nix-update -F --version=branch=master meli-teto1970 1971 # urn:schemas-upnp-org:device:MediaRenderer:11972 discover-upnp-renderers:1973- gssdp-discover --timeout=5 \1974- --target=urn:schemas-upnp-org:device:MediaRenderer:11975+ gssdp-discover --timeout=5 \1976+ --target=urn:schemas-upnp-org:device:MediaRenderer:11977 1978 # just to save the command1979 1980@@ -326,7 +326,6 @@ inspect-current-generation:1981 flash-ulanzi-tc001:1982 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin1983 1984-1985 # check dlna servers on the network1986 scan-upnp:1987 nmap --script=broadcast-upnp-info 192.168.0.0/161988diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix1989index c73a06e..5448ba8 1006441990--- a/nixos/modules/minidlna.nix1991+++ b/nixos/modules/minidlna.nix1992@@ -1,7 +1,8 @@1993 { config, lib, ... }:1994 let1995 cfg = config.services.minidlna;1996- mediaDirs = map (dir:1997+ mediaDirs = map (1998+ dir:1999 let2000 prefix = builtins.match "^[A-Za-z]:(.*)$" dir;2001 in2002diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix2003index dd25744..86ddd25 1006442004--- a/nixos/modules/upnp.nix2005+++ b/nixos/modules/upnp.nix2006@@ -1,7 +1,8 @@2007 { config, lib, ... }:2008 let2009- cfg = config.programs.upnp;2010-in {2011+ cfg = config.programs.upnp;2012+in2013+{2014 options = {2015 programs.upnp = {2016 enable = lib.mkEnableOption "upnp";2017@@ -17,13 +18,12 @@ in {2018 config = lib.mkIf cfg.enable {2019 networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ];2020 2021- networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200];2022-# # SSDP multicast discovery port (UDP)2023-# sudo ufw allow 1900/udp comment 'DLNA SSDP'2024-#2025-# # MiniDLNA HTTP streaming & web status port (TCP)2026-# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'2027+ networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ];2028+ # # SSDP multicast discovery port (UDP)2029+ # sudo ufw allow 1900/udp comment 'DLNA SSDP'2030+ #2031+ # # MiniDLNA HTTP streaming & web status port (TCP)2032+ # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP'2033 2034 };2035 }2036-2037diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix2038index 3820510..e4bca1c 1006442039--- a/nixos/profiles/adguardhome.nix2040+++ b/nixos/profiles/adguardhome.nix2041@@ -9,7 +9,6 @@2042 # mutableSettings = true;2043 # openFirewall = false;2044 2045-2046 # mutableSettings = true;2047 # extraArgs = [];2048 2049diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix2050index 9ceeefc..3835a79 1006442051--- a/nixos/profiles/avahi.nix2052+++ b/nixos/profiles/avahi.nix2053@@ -1,9 +1,6 @@2054 /*2055-2056-guide:2057-avahi-browse-domains 2058-2059-2060+ guide:2061+ avahi-browse-domains2062 */2063 {2064 config,2065@@ -23,7 +20,7 @@ avahi-browse-domains2066 2067 server = {2068 2069- # List of non-local DNS domains to be browsed.2070+ # List of non-local DNS domains to be browsed.2071 browse-domains = [2072 # "0pointer.de"2073 # "zeroconf.org"2074diff --git a/nixos/profiles/desktop/default.nix b/nixos/profiles/desktop/default.nix2075index db4eb98..38e8c16 1006442076--- a/nixos/profiles/desktop/default.nix2077+++ b/nixos/profiles/desktop/default.nix2078@@ -2,7 +2,6 @@2079 {2080 fonts.enableDefaultPackages = true;2081 2082-2083 console = {2084 # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/4131282085 earlySetup = true;2086diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix2087index 3f9282d..9039e39 1006442088--- a/nixos/profiles/desktop/programs/flyline.nix2089+++ b/nixos/profiles/desktop/programs/flyline.nix2090@@ -1,5 +1,5 @@2091 {2092 enable = true;2093- # 2094+ #2095 # package = ;2096 }2097diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix2098index daadd3f..d3fc61c 1006442099--- a/nixos/profiles/desktop/users/default.nix2100+++ b/nixos/profiles/desktop/users/default.nix2101@@ -1,3 +1,3 @@2102 {2103- groups.minidlna = {};2104+ groups.minidlna = { };2105 }2106diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix2107index aac0d91..995a67c 1006442108--- a/nixos/profiles/home-assistant.nix2109+++ b/nixos/profiles/home-assistant.nix2110@@ -17,13 +17,12 @@2111 # # "deconz" # interface for zigbee conbee II2112 # ];2113 2114-2115 package = pkgs.home-assistant.override {2116 2117 extraPackages = ps: [2118 ps.psycopg22119- # disabled because of ? 2120- # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await 2121+ # disabled because of ?2122+ # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await2123 # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/8619082124 # # enables several default components2125 # ps.hass-nabucasa # to be able to login to cloud2126@@ -74,7 +73,7 @@2127 assist_pipeline = { };2128 # bluetooth = {}; # NO2129 # # enables several default components. DO NOT REMOVE (?)2130- default_config = { }; 2131+ default_config = { };2132 # map = {}; # show a local map2133 network = { };2134 homeassistant = {2135diff --git a/nixos/profiles/pixiecore.nix b/nixos/profiles/pixiecore.nix2136index c6a5355..141a4f8 1006442137--- a/nixos/profiles/pixiecore.nix2138+++ b/nixos/profiles/pixiecore.nix2139@@ -117,7 +117,7 @@ in2140 # one of “api”, “boot”, “quick”2141 package = pkgs.pixiecore-arm64;2142 mode = "boot";2143-# enp1s0f02144+ # enp1s0f02145 # extraArguments = ;2146 # listen2147 # cmdLine = ;