nixbot

builds

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

1treefmt v2.6.0traversed 1616 files2emitted 867 files for processing3formatted 867 files (30 changed) in 1.344s4 M by-name/ko/kodi-tetos/package.nix5 M by-name/ze/zeal-teto/package.nix6 M config/bash/flyline.sh7 M config/nvim/after/ftplugin/Avante.lua8 M config/nvim/after/ftplugin/RikaiPopup.lua9 M config/nvim/lua/init-manual.lua10 M config/nvim/lua/plugins/kitty-scrollback.lua11 M hm/modules/audiocast.nix12 M hm/modules/kitty.nix13 M hm/modules/package-sets.nix14 M hm/profiles/teto-desktop/default.nix15 M hm/profiles/teto-desktop/programs/jujutsu.nix16 M hm/profiles/teto-desktop/programs/rofi.nix17 M hm/profiles/teto-desktop/xdg/default.nix18 M hosts/jedha/default.nix19 M hosts/jedha/services/avahi.nix20 M hosts/jedha/services/minidlna.nix21 M hosts/jedha/services/opentelemetry-collector.nix22 M hosts/jedha/services/upmpdcli.nix23 M hosts/jedha/systemd.nix24 M hosts/tatooine/default.nix25 M hosts/tatooine/services/adguardhome.nix26 M hosts/tatooine/services/avahi.nix27 M hosts/tatooine/services/minidlna.nix28 M hosts/tatooine/services/pulseaudio.nix29 M hosts/tatooine/tetos.nix30 M justfile31 M nixos/profiles/adguardhome.nix32 M nixos/profiles/avahi.nix33 M nixos/profiles/desktop/programs/flyline.nix34diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix35index e6b3625..b0fe160 10064436--- a/by-name/ko/kodi-tetos/package.nix37+++ b/by-name/ko/kodi-tetos/package.nix38@@ -1,11 +1,13 @@39 { kodi, makeWrapper }:40 41 let42- kodiWithPackages = kodi.withPackages (p: with p; [43- jellyfin44- # pvr-iptvsimple45- vfs-sftp46- ]);47+ kodiWithPackages = kodi.withPackages (48+ p: with p; [49+ jellyfin50+ # pvr-iptvsimple51+ vfs-sftp52+ ]53+ );54 in55 kodiWithPackages.overrideAttrs (oldAttrs: {56 nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];57diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix58index 9442d75..a9d8692 10064459--- a/by-name/ze/zeal-teto/package.nix60+++ b/by-name/ze/zeal-teto/package.nix61@@ -1,10 +1,9 @@62 { zeal }:63 zeal.overrideAttrs (oa: {64 65- # export QMLSCENE_DEVICE=software66- postInstall = ''67- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software68- '';69-70- })71+ # export QMLSCENE_DEVICE=software72+ postInstall = ''73+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software74+ '';75 76+})77diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh78index c2b1a84..6b647be 10064479--- a/config/bash/flyline.sh80+++ b/config/bash/flyline.sh81@@ -10,12 +10,11 @@ flyline history --backend flyline82 # it flickers83 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 284 85-# Codex: change 86+# Codex: change87 flyline set-agent-mode \88- --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. " \89- --trigger-prefix ': ' \90- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'91-92+ --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. " \93+ --trigger-prefix ': ' \94+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'95 96 # Antigravity:97 # flyline set-agent-mode \98@@ -26,7 +25,6 @@ flyline set-agent-mode \99 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"100 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR101 102-103 # precmd_functions+=(set_ps1)104 # Now you can use this animation in your prompt. For example:105 PS1='\u@\h:\w MOUSE_MODE \n$ '106@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''107 108 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽109 110-111 # Experiment with higher frame rates for smooth transitions:112 # flyline create-prompt-widget animation --name "john" --fps 24 \113 # '\e[38;2;255;0;0m\u' \114@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''115 # '\e[38;2;255;0;63m\u' \116 # '\e[38;2;255;0;47m\u' \117 # '\e[38;2;255;0;31m\u' \118-# '\e[38;2;255;0;15m\u' 119+# '\e[38;2;255;0;15m\u'120diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua121index 85acdb0..9d9296e 100644122--- a/config/nvim/after/ftplugin/Avante.lua123+++ b/config/nvim/after/ftplugin/Avante.lua124@@ -14,7 +14,6 @@ vim.opt.showbreak = ''125 -- - update_content126 -- - on_state_change127 128-129 -- local sidebar = require('avante').get()130 131 -- vim.api.nvim_create_autocmd('WinEnter', {132@@ -29,8 +28,8 @@ vim.opt.showbreak = ''133 -- vim.wo.cursorline = false134 vim.wo.foldcolumn = '3' -- auto135 -- |fold-expr| expr 'foldexpr' gives the fold level of a line.136--- could work well, react onto 137-vim.wo.foldmethod = "expr"138+-- could work well, react onto139+vim.wo.foldmethod = 'expr'140 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'141 142 -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer143diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua144index b321120..bc9e2c6 100644145--- a/config/nvim/after/ftplugin/RikaiPopup.lua146+++ b/config/nvim/after/ftplugin/RikaiPopup.lua147@@ -3,10 +3,9 @@148 vim.keymap.set('n', '<localleader>s', function()149 -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha150 151- vim.fn.jobstart({ 152- 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true })153-154+ vim.fn.jobstart({155+ 'mpv',156+ '--no-video',157+ vim.fn.expand('~/home/data/audio/notif1.wav'),158+ }, { detach = true })159 end, { buffer = true, desc = 'Play sound' })160-161-162-163diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua164index 32871d5..e347ee0 100644165--- a/config/nvim/lua/init-manual.lua166+++ b/config/nvim/lua/init-manual.lua167@@ -1367,22 +1367,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {168 --169 -- ╰─170 171-172-vim.api.nvim_create_autocmd(173- 'PackChanged',174- {175+vim.api.nvim_create_autocmd('PackChanged', {176 callback = function(ev)177- local name, kind = ev.data.spec.name, ev.data.kind178- print("package name ", name)179- vim.print("spec ", ev.data.spec)180- -- vim.print("version ", ev.data.spec.version)181-182- -- print("package kind ", kind)183- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then184- -- -- Call `:AvanteBuild` to download prebuilt libraries185- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()186- -- end187- end188- }189-)190-191+ local name, kind = ev.data.spec.name, ev.data.kind192+ print('package name ', name)193+ vim.print('spec ', ev.data.spec)194+ -- vim.print("version ", ev.data.spec.version)195+196+ -- print("package kind ", kind)197+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then198+ -- -- Call `:AvanteBuild` to download prebuilt libraries199+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()200+ -- end201+ end,202+})203diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua204index ffcb08a..8b60a67 100644205--- a/config/nvim/lua/plugins/kitty-scrollback.lua206+++ b/config/nvim/lua/plugins/kitty-scrollback.lua207@@ -2,43 +2,43 @@208 -- if you want to create autocommands209 210 --211- -- myconfig = {212- -- kitty_get_text = {213- -- ansi = false,214- -- },215- -- },216- -- myfnconfig = function(kitty_data)217- -- return {218- -- kitty_get_text = {219- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',220- -- },221- -- }222- -- end,223+-- myconfig = {224+-- kitty_get_text = {225+-- ansi = false,226+-- },227+-- },228+-- myfnconfig = function(kitty_data)229+-- return {230+-- kitty_get_text = {231+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',232+-- },233+-- }234+-- end,235 require('kitty-scrollback').setup(236 -- global configuration237 {238- kitty_get_text = {239- -- boolean If true, the text will include the ANSI formatting escape codes for colors,240- ansi = true,241- extent = 'all',242- },243- -- scrollback_columns = 300,244- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external245- scrollback_tempfile = false,246- keymaps_enabled = false,247- close_after_yank = true,248- status_window = {249+ kitty_get_text = {250+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,251+ ansi = true,252+ extent = 'all',253+ },254+ -- scrollback_columns = 300,255+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external256+ scrollback_tempfile = false,257+ keymaps_enabled = false,258+ close_after_yank = true,259+ status_window = {260 261- style_simple = true, -- user may not have Nerd Fonts installed262- show_timer = true,263+ style_simple = true, -- user may not have Nerd Fonts installed264+ show_timer = true,265 266- autoclose = true,267- },268- paste_window = {269- -- yank_register = '',270- -- boolean? If true, the yank_register copies content to the paste window. If false, d271- -- -- isable yank to paste window272- -- yank_register_enabled = false,273- }274+ autoclose = true,275+ },276+ paste_window = {277+ -- yank_register = '',278+ -- boolean? If true, the yank_register copies content to the paste window. If false, d279+ -- -- isable yank to paste window280+ -- yank_register_enabled = false,281+ },282 }283 )284diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix285index e95570a..ae177f7 100644286--- a/hm/modules/audiocast.nix287+++ b/hm/modules/audiocast.nix288@@ -1,7 +1,13 @@289-{ config, lib, pkgs, ... }:290+{291+ config,292+ lib,293+ pkgs,294+ ...295+}:296 let297- cfg = config.services.audiocast;298-in {299+ cfg = config.services.audiocast;300+in301+{302 options = {303 services.audiocast = {304 enable = lib.mkEnableOption "audiocast-stream";305@@ -16,44 +22,43 @@ in {306 };307 config = lib.mkIf cfg.enable {308 309-310- # Renderer friendlyName to discover over SSDP311- # Hard-coded AVTransport control URL (skips SSDP discovery)312- # else we give url313- # ❯ yamaha discover314- # name host model udn315- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e316- # port 8082 Local HTTP port for the stream317- xdg.configFile."audiocast/config" = {318- enable = false;319- text = ''320- [audiocast]321- name = Espace Musical322- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)323- mode = app324- sink = audiocast325- sink_description = AudioCast (DLNA)326- '';327-};328-329- systemd.user.services.audiocast-stream = {330- Unit = {331- Description = "Stream PipeWire audio to a DLNA renderer";332- After = [333- "pipewire.service"334- "pipewire-pulse.service"335- ];336- Wants = [ "pipewire-pulse.service" ];337+ # Renderer friendlyName to discover over SSDP338+ # Hard-coded AVTransport control URL (skips SSDP discovery)339+ # else we give url340+ # ❯ yamaha discover341+ # name host model udn342+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e343+ # port 8082 Local HTTP port for the stream344+ xdg.configFile."audiocast/config" = {345+ enable = false;346+ text = ''347+ [audiocast]348+ name = Espace Musical349+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)350+ mode = app351+ sink = audiocast352+ sink_description = AudioCast (DLNA)353+ '';354 };355- Service = {356- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";357- Restart = "on-failure";358- # The renderer may be asleep or temporarily off the network. The359- # program exits when discovery fails, so retry without a tight loop.360- RestartSec = 30;361+362+ systemd.user.services.audiocast-stream = {363+ Unit = {364+ Description = "Stream PipeWire audio to a DLNA renderer";365+ After = [366+ "pipewire.service"367+ "pipewire-pulse.service"368+ ];369+ Wants = [ "pipewire-pulse.service" ];370+ };371+ Service = {372+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";373+ Restart = "on-failure";374+ # The renderer may be asleep or temporarily off the network. The375+ # program exits when discovery fails, so retry without a tight loop.376+ RestartSec = 30;377+ };378+ Install.WantedBy = [ "default.target" ];379 };380- Install.WantedBy = [ "default.target" ];381- };382 };383 384 }385diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix386index b6d495f..e7da295 100644387--- a/hm/modules/kitty.nix388+++ b/hm/modules/kitty.nix389@@ -54,7 +54,7 @@ in390 map kitty_mod+h kitty_scrollback_nvim ./tmp391 # Browse output of the last shell command in nvim392 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output393- '';394+ '';395 396 #397 # # Browse output of the last shell command in nvim398diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix399index 79e7748..578c8ac 100644400--- a/hm/modules/package-sets.nix401+++ b/hm/modules/package-sets.nix402@@ -114,7 +114,6 @@ in403 pkgs.blazingjj404 flakeSelf.inputs.jj-gh.packages.${system}.default405 406-407 # pkgs.gg-jj408 # pkgs.lazyjj409 # pkgs.jj-fzf410@@ -415,7 +414,6 @@ in411 lurk # a rust strace412 lsof # to see open files413 414-415 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship416 libossp_uuid # for the 'libuuid' executable417 418@@ -495,7 +493,7 @@ in419 tig420 tmux # when connecting via ssh421 universal-ctags # there are many different ctags, be careful !422- uv # to install python packages423+ uv # to install python packages424 unar # used to view archives by yazi (now using ouch ?)425 vifm426 viu # a console image viewer427@@ -691,7 +689,7 @@ in428 pkgs.tsukumi429 ];430 })431- (mkIf cfg.jellyfin {432+ (mkIf cfg.jellyfin {433 434 home.packages = [435 436@@ -701,12 +699,11 @@ in437 # pkgs.feishin # GUI438 # pkgs.jellycli # could not login :/439 440-441 # VIDEO compatible442 # - Jellyfin MPV Shim443 pkgs.jellyfin-desktop444 pkgs.jellyfin-mpv-shim445- # jellyhaj # not upstreamed yet 446+ # jellyhaj # not upstreamed yet447 # fladder # nice GUI448 # jftui too minimalistic449 # pkgs.jellyflix # nice450diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix451index 17f0251..1da4cc5 100644452--- a/hm/profiles/teto-desktop/default.nix453+++ b/hm/profiles/teto-desktop/default.nix454@@ -112,7 +112,7 @@ in455 456 home.packages =457 with pkgs;458- let 459+ let460 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;461 462 # lux-cli-teto = lux-cli;463@@ -123,7 +123,7 @@ in464 in465 466 [467- kodi-teto 468+ kodi-teto469 codex # openai agent470 codex-acp # originated from zed-industries, used in avante471 472@@ -187,8 +187,7 @@ in473 # kaggle # kaggle interface474 # python3Packages.kaggle475 476-477- sonic-pi # for live music coding478+ sonic-pi # for live music coding479 stow480 systemctl-tui481 timr-tui # rust clock482diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix483index aacec43..9037ef9 100644484--- a/hm/profiles/teto-desktop/programs/jujutsu.nix485+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix486@@ -34,9 +34,12 @@487 name = "teto";488 };489 ui = {490- # jj splits puts the cursor in a f**** position, we need $line to restore 491+ # jj splits puts the cursor in a f**** position, we need $line to restore492 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes493- editor = ["nvim" "+$line"];494+ editor = [495+ "nvim"496+ "+$line"497+ ];498 default-command = "status";499 merge-editor = "nvim";500 # Enable pagination for commands that support it (default)501diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix502index be52e45..f9d09d8 100644503--- a/hm/profiles/teto-desktop/programs/rofi.nix504+++ b/hm/profiles/teto-desktop/programs/rofi.nix505@@ -37,8 +37,8 @@506 507 location = "center";508 modes = [509- # modes: [ combi ];510- # combi-modes: [ window, drun, run ];511+ # modes: [ combi ];512+ # combi-modes: [ window, drun, run ];513 514 ];515 516diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix517index 0dad1af..11dd2ad 100644518--- a/hm/profiles/teto-desktop/xdg/default.nix519+++ b/hm/profiles/teto-desktop/xdg/default.nix520@@ -101,12 +101,12 @@521 "bash/bashrc".text = ''522 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"523 source "$script_dir/manual.sh"524- ''525- # check if flyline defined too ?526- + lib.optionalString osConfig.programs.flyline.enable '' 527- source "$script_dir/flyline.sh"528+ ''529+ # check if flyline defined too ?530+ + lib.optionalString osConfig.programs.flyline.enable ''531+ source "$script_dir/flyline.sh"532 533- '';534+ '';535 536 "nvim/lua/generated-by-nix.lua" =537 let538diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix539index 77dae93..78c87ca 100644540--- a/hosts/jedha/default.nix541+++ b/hosts/jedha/default.nix542@@ -91,12 +91,20 @@ in543 # Upmpdcli's local-library server needs both discovery and HTTP access.544 networking.firewall = lib.mkIf config.services.upmpdcli.enable {545 allowedUDPPorts = [ 1900 ];546- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];547+ allowedTCPPorts = with config.services.upmpdcli.configuration; [548+ upnpport549+ uprclport550+ ];551 };552 553 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {554 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.555- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];556+ path = [557+ pkgs.recoll558+ pkgs.python3559+ pkgs.openssl560+ pkgs.diffutils561+ ];562 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];563 };564 565diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix566index 083732e..09017c2 100644567--- a/hosts/jedha/services/avahi.nix568+++ b/hosts/jedha/services/avahi.nix569@@ -13,7 +13,6 @@570 571 debug = true;572 573-574 # allowInterfaces = [575 # "wlp10s0"576 # ];577@@ -30,13 +29,12 @@578 };579 580 publish = {581- disable-publishing = false;582- disable-user-service-publishing = false;583- publish-addresses = true;584- };585-586+ disable-publishing = false;587+ disable-user-service-publishing = false;588+ publish-addresses = true;589 };590 591+ };592 593 nssmdns4 = true;594 # publish = {595diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix596index 0ea64f9..9b1b770 100644597--- a/hosts/jedha/services/minidlna.nix598+++ b/hosts/jedha/services/minidlna.nix599@@ -7,7 +7,6 @@600 # announceInterval = 60;601 openFirewall = true;602 603-604 # there are udp errors when it binds to wireguard network ?605 606 settings = {607@@ -16,9 +15,9 @@608 friendly_name = "jedha";609 # inotify = "yes";610 log_level = "warn";611- media_dir = [ 612+ media_dir = [613 # can be prefixed with V/A, to filter audio/video614- "/mnt/ext/music" 615+ "/mnt/ext/music"616 ];617 inotify = "yes";618 # db_dir =619diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix620index 28cc3b4..1d1609c 100644621--- a/hosts/jedha/services/opentelemetry-collector.nix622+++ b/hosts/jedha/services/opentelemetry-collector.nix623@@ -1,23 +1,22 @@624 {625 626-627 enable = true;628 629 settings =630-let631- port = 4318;632-in633+ let634+ port = 4318;635+ in636 {637- exporters.debug.verbosity = "detailed";638- receivers.otlp.protocols = {639- http.endpoint = "0.0.0.0:${toString port}";640- };641- service = {642- pipelines.logs = {643- receivers = [ "otlp" ];644- exporters = [ "debug" ];645- };646- };647+ exporters.debug.verbosity = "detailed";648+ receivers.otlp.protocols = {649+ http.endpoint = "0.0.0.0:${toString port}";650+ };651+ service = {652+ pipelines.logs = {653+ receivers = [ "otlp" ];654+ exporters = [ "debug" ];655+ };656+ };657 658- };659+ };660 }661diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix662index ef04f30..390f091 100644663--- a/hosts/jedha/services/upmpdcli.nix664+++ b/hosts/jedha/services/upmpdcli.nix665@@ -1,12 +1,12 @@666 /*667-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 668- should change playback if rmpd and upmpdcli are controlling the same MPD instance669- 670- • 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.671-• 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.672+ 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, it673+ should change playback if rmpd and upmpdcli are controlling the same MPD instance674 675-mpd now has a plugin that can play music from upnp server 676-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction677+ • 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.678+ • 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.679+680+ mpd now has a plugin that can play music from upnp server681+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction682 */683 684 { pkgs, lib, ... }:685@@ -44,7 +44,7 @@ in686 mpdport = 6600;687 # try to see if I can control it myself688 ownqueue = 0;689- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 690+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo691 # control the playlist. The client can disconnect after playlist was created692 openhome = 0;693 upnpav = 1;694diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix695index 59d7129..e0cab47 100644696--- a/hosts/jedha/systemd.nix697+++ b/hosts/jedha/systemd.nix698@@ -34,61 +34,60 @@ in699 })700 # disabled because ha-mcp broken701 (lib.mkIf false {702- ha-mcp = {703- description = "Home Assistant MCP server";704- wantedBy = [ "multi-user.target" ];705- wants = [ "network-online.target" ];706- after = [ "network-online.target" ];707- environment = {708- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";709- HOME = "/var/lib/ha-mcp";710- MCP_HOST = "127.0.0.1";711- MCP_PORT = "8086";712- };713- serviceConfig = {714- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";715- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.716- EnvironmentFile = "/var/lib/ha-mcp/environment";717- DynamicUser = true;718- StateDirectory = "ha-mcp";719- WorkingDirectory = "/var/lib/ha-mcp";720- Restart = "on-failure";721- RestartSec = 5;722- UMask = "0077";723- };724+ ha-mcp = {725+ description = "Home Assistant MCP server";726+ wantedBy = [ "multi-user.target" ];727+ wants = [ "network-online.target" ];728+ after = [ "network-online.target" ];729+ environment = {730+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";731+ HOME = "/var/lib/ha-mcp";732+ MCP_HOST = "127.0.0.1";733+ MCP_PORT = "8086";734 };735+ serviceConfig = {736+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";737+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.738+ EnvironmentFile = "/var/lib/ha-mcp/environment";739+ DynamicUser = true;740+ StateDirectory = "ha-mcp";741+ WorkingDirectory = "/var/lib/ha-mcp";742+ Restart = "on-failure";743+ RestartSec = 5;744+ UMask = "0077";745+ };746+ };747 748- # copied from https://github.com/NixOS/nixpkgs/pull/544252749- # lib.recursiveUpdate slib.systemd.serviceDefaults {750- speech-to-phrase = {751- # after = [ "home-assistant.service" ];752- script = lib.concatStringsSep " " [753- (lib.getExe pkgs.speech-to-phrase)754- "--models-dir"755- "\"$STATE_DIRECTORY/models\""756- "--train-dir"757- "\"$STATE_DIRECTORY/train\""758- # "--custom-sentences-dir" ""759- "--uri 'tcp://127.0.0.1:10400'"760- "--hass-websocket-uri"761- "ws://${hassHost}:${toString hassPort}/api/websocket"762- "--retrain-on-start"763- "--retrain-on-connect"764- "--retrain-seconds"765- "300"766- ];767- serviceConfig = {768- #769- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;770- Group = "speech-to-phrase";771- StateDirectory = "speech-to-phrase";772- User = "speech-to-phrase";773- # TODO: hardening774- };775+ # copied from https://github.com/NixOS/nixpkgs/pull/544252776+ # lib.recursiveUpdate slib.systemd.serviceDefaults {777+ speech-to-phrase = {778+ # after = [ "home-assistant.service" ];779+ script = lib.concatStringsSep " " [780+ (lib.getExe pkgs.speech-to-phrase)781+ "--models-dir"782+ "\"$STATE_DIRECTORY/models\""783+ "--train-dir"784+ "\"$STATE_DIRECTORY/train\""785+ # "--custom-sentences-dir" ""786+ "--uri 'tcp://127.0.0.1:10400'"787+ "--hass-websocket-uri"788+ "ws://${hassHost}:${toString hassPort}/api/websocket"789+ "--retrain-on-start"790+ "--retrain-on-connect"791+ "--retrain-seconds"792+ "300"793+ ];794+ serviceConfig = {795+ #796+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;797+ Group = "speech-to-phrase";798+ StateDirectory = "speech-to-phrase";799+ User = "speech-to-phrase";800+ # TODO: hardening801 };802+ };803 804- }805- )806+ })807 ];808 809 # just to test810diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix811index 8cbae35..3c41972 100644812--- a/hosts/tatooine/default.nix813+++ b/hosts/tatooine/default.nix814@@ -132,7 +132,6 @@ in815 enableRedistributableFirmware = true;816 sane.enable = true;817 818-819 # High quality BT calls820 # https://nixos.wiki/wiki/Bluetooth821 bluetooth = {822diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix823index adc82dd..1724c86 100644824--- a/hosts/tatooine/services/adguardhome.nix825+++ b/hosts/tatooine/services/adguardhome.nix826@@ -10,7 +10,7 @@827 settings = {828 829 # http (since v0.107.36): Web interface configuration.830- # address: Web interface IP address with port to listen on 831+ # address: Web interface IP address with port to listen on832 http.address = "127.0.0.1:8084";833 834 };835diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix836index dd02f3f..f14c221 100644837--- a/hosts/tatooine/services/avahi.nix838+++ b/hosts/tatooine/services/avahi.nix839@@ -21,19 +21,19 @@840 841 settings = {842 publish = {843- publish-domain = true;844- disable-publishing = false;845- disable-user-service-publishing = false;846- publish-addresses = true;847- };848+ publish-domain = true;849+ disable-publishing = false;850+ disable-user-service-publishing = false;851+ publish-addresses = true;852+ };853 854 server = {855 use-ipv6 = false; # bug with multiple hostnames856- # # 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.857- # # secrets.jedha.hostname;858- # # host-name = "jedha";859- # # enable-dbus = true;860- #861+ # # 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.862+ # # secrets.jedha.hostname;863+ # # host-name = "jedha";864+ # # enable-dbus = true;865+ #866 };867 };868 869diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix870index 1025fbd..32ab52f 100644871--- a/hosts/tatooine/services/minidlna.nix872+++ b/hosts/tatooine/services/minidlna.nix873@@ -8,7 +8,6 @@874 # to receive sssdp answers875 openFirewall = true;876 877-878 # there are udp errors when it binds to wireguard network ?879 880 settings = {881@@ -17,7 +16,7 @@882 friendly_name = "tatooine";883 # inotify = "yes";884 log_level = "warn";885- media_dir = [ 886+ media_dir = [887 # can be prefixed with V/A, to filter audio/video888 "/home/teto/videos"889 "/home/teto/Music"890@@ -26,5 +25,3 @@891 # db_dir =892 };893 }894-895-896diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix897index 0c082b6..58d9c85 100644898--- a/hosts/tatooine/services/pulseaudio.nix899+++ b/hosts/tatooine/services/pulseaudio.nix900@@ -1,9 +1,8 @@901 { pkgs, ... }:902- # cant be enabled with pipewire903- {904- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false905- enable = false;906- # for ad2p profle ?907- package = pkgs.pulseaudioFull;908- }909-910+# cant be enabled with pipewire911+{912+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false913+ enable = false;914+ # for ad2p profle ?915+ package = pkgs.pulseaudioFull;916+}917diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix918index e158259..4b6709c 100644919--- a/hosts/tatooine/tetos.nix920+++ b/hosts/tatooine/tetos.nix921@@ -9,7 +9,8 @@922 {923 allowUpnp = true;924 925-} // lib.optionalAttrs withSecrets {926+}927+// lib.optionalAttrs withSecrets {928 wireguard = {929 id = 2;930 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";931@@ -19,4 +20,4 @@932 flakeSelf.nixosConfigurations.neotokyo933 ];934 };935-} 936+}937diff --git a/justfile b/justfile938index 28dd5f9..8fd3082 100644939--- a/justfile940+++ b/justfile941@@ -65,11 +65,11 @@ bootstrap-vps target:942 --debug943 944 bump-meli:945- nix-update -F --version=branch=master meli-teto946+ nix-update -F --version=branch=master meli-teto947 948 discover-upnp-renderers:949- gssdp-discover --timeout=5 \950- --target=urn:schemas-upnp-org:device:MediaRenderer:1951+ gssdp-discover --timeout=5 \952+ --target=urn:schemas-upnp-org:device:MediaRenderer:1953 954 # just to save the command955 956@@ -325,7 +325,6 @@ inspect-current-generation:957 flash-ulanzi-tc001:958 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin959 960-961 # check dlna servers on the network962 scan-upnp:963 nmap --script=broadcast-upnp-info 192.168.0.0/16964diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix965index 3820510..e4bca1c 100644966--- a/nixos/profiles/adguardhome.nix967+++ b/nixos/profiles/adguardhome.nix968@@ -9,7 +9,6 @@969 # mutableSettings = true;970 # openFirewall = false;971 972-973 # mutableSettings = true;974 # extraArgs = [];975 976diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix977index 9ceeefc..3835a79 100644978--- a/nixos/profiles/avahi.nix979+++ b/nixos/profiles/avahi.nix980@@ -1,9 +1,6 @@981 /*982-983-guide:984-avahi-browse-domains 985-986-987+ guide:988+ avahi-browse-domains989 */990 {991 config,992@@ -23,7 +20,7 @@ avahi-browse-domains993 994 server = {995 996- # List of non-local DNS domains to be browsed.997+ # List of non-local DNS domains to be browsed.998 browse-domains = [999 # "0pointer.de"1000 # "zeroconf.org"1001diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1002index 3f9282d..9039e39 1006441003--- a/nixos/profiles/desktop/programs/flyline.nix1004+++ b/nixos/profiles/desktop/programs/flyline.nix1005@@ -1,5 +1,5 @@1006 {1007 enable = true;1008- # 1009+ #1010 # package = ;1011 }