nixbot

builds

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

1treefmt v2.6.0traversed 1616 files2emitted 867 files for processing3formatted 867 files (30 changed) in 1.445s4 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 7e739f2..fda6a40 100644165--- a/config/nvim/lua/init-manual.lua166+++ b/config/nvim/lua/init-manual.lua167@@ -948,8 +948,8 @@ end, { desc = 'Go to file, create if missing' })168 -- Outside of the fork it kills the plugin so careful169 -- normally overriden by setup call170 vim.g.avante = {171- -- -- print error messages, set to false to avoid issues with inspect_ai172- debug = false, 173+ -- -- print error messages, set to false to avoid issues with inspect_ai174+ debug = false,175 -- log_level =176 log_level = vim.log.levels.DEBUG,177 178@@ -1368,22 +1368,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {179 --180 -- ╰─181 182-183-vim.api.nvim_create_autocmd(184- 'PackChanged',185- {186+vim.api.nvim_create_autocmd('PackChanged', {187 callback = function(ev)188- local name, kind = ev.data.spec.name, ev.data.kind189- print("package name ", name)190- vim.print("spec ", ev.data.spec)191- -- vim.print("version ", ev.data.spec.version)192-193- -- print("package kind ", kind)194- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then195- -- -- Call `:AvanteBuild` to download prebuilt libraries196- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()197- -- end198- end199- }200-)201-202+ local name, kind = ev.data.spec.name, ev.data.kind203+ print('package name ', name)204+ vim.print('spec ', ev.data.spec)205+ -- vim.print("version ", ev.data.spec.version)206+207+ -- print("package kind ", kind)208+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then209+ -- -- Call `:AvanteBuild` to download prebuilt libraries210+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()211+ -- end212+ end,213+})214diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua215index ffcb08a..8b60a67 100644216--- a/config/nvim/lua/plugins/kitty-scrollback.lua217+++ b/config/nvim/lua/plugins/kitty-scrollback.lua218@@ -2,43 +2,43 @@219 -- if you want to create autocommands220 221 --222- -- myconfig = {223- -- kitty_get_text = {224- -- ansi = false,225- -- },226- -- },227- -- myfnconfig = function(kitty_data)228- -- return {229- -- kitty_get_text = {230- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',231- -- },232- -- }233- -- end,234+-- myconfig = {235+-- kitty_get_text = {236+-- ansi = false,237+-- },238+-- },239+-- myfnconfig = function(kitty_data)240+-- return {241+-- kitty_get_text = {242+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',243+-- },244+-- }245+-- end,246 require('kitty-scrollback').setup(247 -- global configuration248 {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+ kitty_get_text = {261+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,262+ ansi = true,263+ extent = 'all',264+ },265+ -- scrollback_columns = 300,266+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external267+ scrollback_tempfile = false,268+ keymaps_enabled = false,269+ close_after_yank = true,270+ status_window = {271 272- style_simple = true, -- user may not have Nerd Fonts installed273- show_timer = true,274+ style_simple = true, -- user may not have Nerd Fonts installed275+ show_timer = true,276 277- autoclose = true,278- },279- paste_window = {280- -- yank_register = '',281- -- boolean? If true, the yank_register copies content to the paste window. If false, d282- -- -- isable yank to paste window283- -- yank_register_enabled = false,284- }285+ autoclose = true,286+ },287+ paste_window = {288+ -- yank_register = '',289+ -- boolean? If true, the yank_register copies content to the paste window. If false, d290+ -- -- isable yank to paste window291+ -- yank_register_enabled = false,292+ },293 }294 )295diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix296index e95570a..ae177f7 100644297--- a/hm/modules/audiocast.nix298+++ b/hm/modules/audiocast.nix299@@ -1,7 +1,13 @@300-{ config, lib, pkgs, ... }:301+{302+ config,303+ lib,304+ pkgs,305+ ...306+}:307 let308- cfg = config.services.audiocast;309-in {310+ cfg = config.services.audiocast;311+in312+{313 options = {314 services.audiocast = {315 enable = lib.mkEnableOption "audiocast-stream";316@@ -16,44 +22,43 @@ in {317 };318 config = lib.mkIf cfg.enable {319 320-321- # Renderer friendlyName to discover over SSDP322- # Hard-coded AVTransport control URL (skips SSDP discovery)323- # else we give url324- # ❯ yamaha discover325- # name host model udn326- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e327- # port 8082 Local HTTP port for the stream328- xdg.configFile."audiocast/config" = {329- enable = false;330- text = ''331- [audiocast]332- name = Espace Musical333- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)334- mode = app335- sink = audiocast336- sink_description = AudioCast (DLNA)337- '';338-};339-340- systemd.user.services.audiocast-stream = {341- Unit = {342- Description = "Stream PipeWire audio to a DLNA renderer";343- After = [344- "pipewire.service"345- "pipewire-pulse.service"346- ];347- Wants = [ "pipewire-pulse.service" ];348+ # Renderer friendlyName to discover over SSDP349+ # Hard-coded AVTransport control URL (skips SSDP discovery)350+ # else we give url351+ # ❯ yamaha discover352+ # name host model udn353+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e354+ # port 8082 Local HTTP port for the stream355+ xdg.configFile."audiocast/config" = {356+ enable = false;357+ text = ''358+ [audiocast]359+ name = Espace Musical360+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)361+ mode = app362+ sink = audiocast363+ sink_description = AudioCast (DLNA)364+ '';365 };366- Service = {367- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";368- Restart = "on-failure";369- # The renderer may be asleep or temporarily off the network. The370- # program exits when discovery fails, so retry without a tight loop.371- RestartSec = 30;372+373+ systemd.user.services.audiocast-stream = {374+ Unit = {375+ Description = "Stream PipeWire audio to a DLNA renderer";376+ After = [377+ "pipewire.service"378+ "pipewire-pulse.service"379+ ];380+ Wants = [ "pipewire-pulse.service" ];381+ };382+ Service = {383+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";384+ Restart = "on-failure";385+ # The renderer may be asleep or temporarily off the network. The386+ # program exits when discovery fails, so retry without a tight loop.387+ RestartSec = 30;388+ };389+ Install.WantedBy = [ "default.target" ];390 };391- Install.WantedBy = [ "default.target" ];392- };393 };394 395 }396diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix397index b6d495f..e7da295 100644398--- a/hm/modules/kitty.nix399+++ b/hm/modules/kitty.nix400@@ -54,7 +54,7 @@ in401 map kitty_mod+h kitty_scrollback_nvim ./tmp402 # Browse output of the last shell command in nvim403 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output404- '';405+ '';406 407 #408 # # Browse output of the last shell command in nvim409diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix410index 4e2f7fd..b9392f0 100644411--- a/hm/modules/package-sets.nix412+++ b/hm/modules/package-sets.nix413@@ -114,7 +114,6 @@ in414 pkgs.blazingjj415 flakeSelf.inputs.jj-gh.packages.${system}.default416 417-418 # pkgs.gg-jj419 # pkgs.lazyjj420 # pkgs.jj-fzf421@@ -415,7 +414,6 @@ in422 lurk # a rust strace423 lsof # to see open files424 425-426 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship427 libossp_uuid # for the 'libuuid' executable428 429@@ -495,7 +493,7 @@ in430 tig431 tmux # when connecting via ssh432 universal-ctags # there are many different ctags, be careful !433- uv # to install python packages434+ uv # to install python packages435 unar # used to view archives by yazi (now using ouch ?)436 vifm437 viu # a console image viewer438@@ -691,7 +689,7 @@ in439 pkgs.tsukumi440 ];441 })442- (mkIf cfg.jellyfin {443+ (mkIf cfg.jellyfin {444 445 home.packages = [446 447@@ -701,12 +699,11 @@ in448 # pkgs.feishin # GUI449 # pkgs.jellycli # could not login :/450 451-452 # VIDEO compatible453 # - Jellyfin MPV Shim454 pkgs.jellyfin-desktop455 pkgs.jellyfin-mpv-shim456- # jellyhaj # not upstreamed yet 457+ # jellyhaj # not upstreamed yet458 # fladder # nice GUI459 # jftui too minimalistic460 # pkgs.jellyflix # nice461diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix462index 17f0251..1da4cc5 100644463--- a/hm/profiles/teto-desktop/default.nix464+++ b/hm/profiles/teto-desktop/default.nix465@@ -112,7 +112,7 @@ in466 467 home.packages =468 with pkgs;469- let 470+ let471 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;472 473 # lux-cli-teto = lux-cli;474@@ -123,7 +123,7 @@ in475 in476 477 [478- kodi-teto 479+ kodi-teto480 codex # openai agent481 codex-acp # originated from zed-industries, used in avante482 483@@ -187,8 +187,7 @@ in484 # kaggle # kaggle interface485 # python3Packages.kaggle486 487-488- sonic-pi # for live music coding489+ sonic-pi # for live music coding490 stow491 systemctl-tui492 timr-tui # rust clock493diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix494index aacec43..9037ef9 100644495--- a/hm/profiles/teto-desktop/programs/jujutsu.nix496+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix497@@ -34,9 +34,12 @@498 name = "teto";499 };500 ui = {501- # jj splits puts the cursor in a f**** position, we need $line to restore 502+ # jj splits puts the cursor in a f**** position, we need $line to restore503 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes504- editor = ["nvim" "+$line"];505+ editor = [506+ "nvim"507+ "+$line"508+ ];509 default-command = "status";510 merge-editor = "nvim";511 # Enable pagination for commands that support it (default)512diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix513index be52e45..f9d09d8 100644514--- a/hm/profiles/teto-desktop/programs/rofi.nix515+++ b/hm/profiles/teto-desktop/programs/rofi.nix516@@ -37,8 +37,8 @@517 518 location = "center";519 modes = [520- # modes: [ combi ];521- # combi-modes: [ window, drun, run ];522+ # modes: [ combi ];523+ # combi-modes: [ window, drun, run ];524 525 ];526 527diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix528index 0dad1af..11dd2ad 100644529--- a/hm/profiles/teto-desktop/xdg/default.nix530+++ b/hm/profiles/teto-desktop/xdg/default.nix531@@ -101,12 +101,12 @@532 "bash/bashrc".text = ''533 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"534 source "$script_dir/manual.sh"535- ''536- # check if flyline defined too ?537- + lib.optionalString osConfig.programs.flyline.enable '' 538- source "$script_dir/flyline.sh"539+ ''540+ # check if flyline defined too ?541+ + lib.optionalString osConfig.programs.flyline.enable ''542+ source "$script_dir/flyline.sh"543 544- '';545+ '';546 547 "nvim/lua/generated-by-nix.lua" =548 let549diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix550index 77dae93..78c87ca 100644551--- a/hosts/jedha/default.nix552+++ b/hosts/jedha/default.nix553@@ -91,12 +91,20 @@ in554 # Upmpdcli's local-library server needs both discovery and HTTP access.555 networking.firewall = lib.mkIf config.services.upmpdcli.enable {556 allowedUDPPorts = [ 1900 ];557- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];558+ allowedTCPPorts = with config.services.upmpdcli.configuration; [559+ upnpport560+ uprclport561+ ];562 };563 564 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {565 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.566- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];567+ path = [568+ pkgs.recoll569+ pkgs.python3570+ pkgs.openssl571+ pkgs.diffutils572+ ];573 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];574 };575 576diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix577index 083732e..09017c2 100644578--- a/hosts/jedha/services/avahi.nix579+++ b/hosts/jedha/services/avahi.nix580@@ -13,7 +13,6 @@581 582 debug = true;583 584-585 # allowInterfaces = [586 # "wlp10s0"587 # ];588@@ -30,13 +29,12 @@589 };590 591 publish = {592- disable-publishing = false;593- disable-user-service-publishing = false;594- publish-addresses = true;595- };596-597+ disable-publishing = false;598+ disable-user-service-publishing = false;599+ publish-addresses = true;600 };601 602+ };603 604 nssmdns4 = true;605 # publish = {606diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix607index 0ea64f9..9b1b770 100644608--- a/hosts/jedha/services/minidlna.nix609+++ b/hosts/jedha/services/minidlna.nix610@@ -7,7 +7,6 @@611 # announceInterval = 60;612 openFirewall = true;613 614-615 # there are udp errors when it binds to wireguard network ?616 617 settings = {618@@ -16,9 +15,9 @@619 friendly_name = "jedha";620 # inotify = "yes";621 log_level = "warn";622- media_dir = [ 623+ media_dir = [624 # can be prefixed with V/A, to filter audio/video625- "/mnt/ext/music" 626+ "/mnt/ext/music"627 ];628 inotify = "yes";629 # db_dir =630diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix631index 28cc3b4..1d1609c 100644632--- a/hosts/jedha/services/opentelemetry-collector.nix633+++ b/hosts/jedha/services/opentelemetry-collector.nix634@@ -1,23 +1,22 @@635 {636 637-638 enable = true;639 640 settings =641-let642- port = 4318;643-in644+ let645+ port = 4318;646+ in647 {648- exporters.debug.verbosity = "detailed";649- receivers.otlp.protocols = {650- http.endpoint = "0.0.0.0:${toString port}";651- };652- service = {653- pipelines.logs = {654- receivers = [ "otlp" ];655- exporters = [ "debug" ];656- };657- };658+ exporters.debug.verbosity = "detailed";659+ receivers.otlp.protocols = {660+ http.endpoint = "0.0.0.0:${toString port}";661+ };662+ service = {663+ pipelines.logs = {664+ receivers = [ "otlp" ];665+ exporters = [ "debug" ];666+ };667+ };668 669- };670+ };671 }672diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix673index ef04f30..390f091 100644674--- a/hosts/jedha/services/upmpdcli.nix675+++ b/hosts/jedha/services/upmpdcli.nix676@@ -1,12 +1,12 @@677 /*678-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 679- should change playback if rmpd and upmpdcli are controlling the same MPD instance680- 681- • 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.682-• 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.683+ 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, it684+ should change playback if rmpd and upmpdcli are controlling the same MPD instance685 686-mpd now has a plugin that can play music from upnp server 687-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction688+ • 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.689+ • 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.690+691+ mpd now has a plugin that can play music from upnp server692+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction693 */694 695 { pkgs, lib, ... }:696@@ -44,7 +44,7 @@ in697 mpdport = 6600;698 # try to see if I can control it myself699 ownqueue = 0;700- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 701+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo702 # control the playlist. The client can disconnect after playlist was created703 openhome = 0;704 upnpav = 1;705diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix706index 59d7129..e0cab47 100644707--- a/hosts/jedha/systemd.nix708+++ b/hosts/jedha/systemd.nix709@@ -34,61 +34,60 @@ in710 })711 # disabled because ha-mcp broken712 (lib.mkIf false {713- ha-mcp = {714- description = "Home Assistant MCP server";715- wantedBy = [ "multi-user.target" ];716- wants = [ "network-online.target" ];717- after = [ "network-online.target" ];718- environment = {719- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";720- HOME = "/var/lib/ha-mcp";721- MCP_HOST = "127.0.0.1";722- MCP_PORT = "8086";723- };724- serviceConfig = {725- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";726- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.727- EnvironmentFile = "/var/lib/ha-mcp/environment";728- DynamicUser = true;729- StateDirectory = "ha-mcp";730- WorkingDirectory = "/var/lib/ha-mcp";731- Restart = "on-failure";732- RestartSec = 5;733- UMask = "0077";734- };735+ ha-mcp = {736+ description = "Home Assistant MCP server";737+ wantedBy = [ "multi-user.target" ];738+ wants = [ "network-online.target" ];739+ after = [ "network-online.target" ];740+ environment = {741+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";742+ HOME = "/var/lib/ha-mcp";743+ MCP_HOST = "127.0.0.1";744+ MCP_PORT = "8086";745 };746+ serviceConfig = {747+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";748+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.749+ EnvironmentFile = "/var/lib/ha-mcp/environment";750+ DynamicUser = true;751+ StateDirectory = "ha-mcp";752+ WorkingDirectory = "/var/lib/ha-mcp";753+ Restart = "on-failure";754+ RestartSec = 5;755+ UMask = "0077";756+ };757+ };758 759- # copied from https://github.com/NixOS/nixpkgs/pull/544252760- # lib.recursiveUpdate slib.systemd.serviceDefaults {761- speech-to-phrase = {762- # after = [ "home-assistant.service" ];763- script = lib.concatStringsSep " " [764- (lib.getExe pkgs.speech-to-phrase)765- "--models-dir"766- "\"$STATE_DIRECTORY/models\""767- "--train-dir"768- "\"$STATE_DIRECTORY/train\""769- # "--custom-sentences-dir" ""770- "--uri 'tcp://127.0.0.1:10400'"771- "--hass-websocket-uri"772- "ws://${hassHost}:${toString hassPort}/api/websocket"773- "--retrain-on-start"774- "--retrain-on-connect"775- "--retrain-seconds"776- "300"777- ];778- serviceConfig = {779- #780- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;781- Group = "speech-to-phrase";782- StateDirectory = "speech-to-phrase";783- User = "speech-to-phrase";784- # TODO: hardening785- };786+ # copied from https://github.com/NixOS/nixpkgs/pull/544252787+ # lib.recursiveUpdate slib.systemd.serviceDefaults {788+ speech-to-phrase = {789+ # after = [ "home-assistant.service" ];790+ script = lib.concatStringsSep " " [791+ (lib.getExe pkgs.speech-to-phrase)792+ "--models-dir"793+ "\"$STATE_DIRECTORY/models\""794+ "--train-dir"795+ "\"$STATE_DIRECTORY/train\""796+ # "--custom-sentences-dir" ""797+ "--uri 'tcp://127.0.0.1:10400'"798+ "--hass-websocket-uri"799+ "ws://${hassHost}:${toString hassPort}/api/websocket"800+ "--retrain-on-start"801+ "--retrain-on-connect"802+ "--retrain-seconds"803+ "300"804+ ];805+ serviceConfig = {806+ #807+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;808+ Group = "speech-to-phrase";809+ StateDirectory = "speech-to-phrase";810+ User = "speech-to-phrase";811+ # TODO: hardening812 };813+ };814 815- }816- )817+ })818 ];819 820 # just to test821diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix822index 8cbae35..3c41972 100644823--- a/hosts/tatooine/default.nix824+++ b/hosts/tatooine/default.nix825@@ -132,7 +132,6 @@ in826 enableRedistributableFirmware = true;827 sane.enable = true;828 829-830 # High quality BT calls831 # https://nixos.wiki/wiki/Bluetooth832 bluetooth = {833diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix834index adc82dd..1724c86 100644835--- a/hosts/tatooine/services/adguardhome.nix836+++ b/hosts/tatooine/services/adguardhome.nix837@@ -10,7 +10,7 @@838 settings = {839 840 # http (since v0.107.36): Web interface configuration.841- # address: Web interface IP address with port to listen on 842+ # address: Web interface IP address with port to listen on843 http.address = "127.0.0.1:8084";844 845 };846diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix847index dd02f3f..f14c221 100644848--- a/hosts/tatooine/services/avahi.nix849+++ b/hosts/tatooine/services/avahi.nix850@@ -21,19 +21,19 @@851 852 settings = {853 publish = {854- publish-domain = true;855- disable-publishing = false;856- disable-user-service-publishing = false;857- publish-addresses = true;858- };859+ publish-domain = true;860+ disable-publishing = false;861+ disable-user-service-publishing = false;862+ publish-addresses = true;863+ };864 865 server = {866 use-ipv6 = false; # bug with multiple hostnames867- # # 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.868- # # secrets.jedha.hostname;869- # # host-name = "jedha";870- # # enable-dbus = true;871- #872+ # # 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.873+ # # secrets.jedha.hostname;874+ # # host-name = "jedha";875+ # # enable-dbus = true;876+ #877 };878 };879 880diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix881index 1025fbd..32ab52f 100644882--- a/hosts/tatooine/services/minidlna.nix883+++ b/hosts/tatooine/services/minidlna.nix884@@ -8,7 +8,6 @@885 # to receive sssdp answers886 openFirewall = true;887 888-889 # there are udp errors when it binds to wireguard network ?890 891 settings = {892@@ -17,7 +16,7 @@893 friendly_name = "tatooine";894 # inotify = "yes";895 log_level = "warn";896- media_dir = [ 897+ media_dir = [898 # can be prefixed with V/A, to filter audio/video899 "/home/teto/videos"900 "/home/teto/Music"901@@ -26,5 +25,3 @@902 # db_dir =903 };904 }905-906-907diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix908index 0c082b6..58d9c85 100644909--- a/hosts/tatooine/services/pulseaudio.nix910+++ b/hosts/tatooine/services/pulseaudio.nix911@@ -1,9 +1,8 @@912 { pkgs, ... }:913- # cant be enabled with pipewire914- {915- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false916- enable = false;917- # for ad2p profle ?918- package = pkgs.pulseaudioFull;919- }920-921+# cant be enabled with pipewire922+{923+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false924+ enable = false;925+ # for ad2p profle ?926+ package = pkgs.pulseaudioFull;927+}928diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix929index e158259..4b6709c 100644930--- a/hosts/tatooine/tetos.nix931+++ b/hosts/tatooine/tetos.nix932@@ -9,7 +9,8 @@933 {934 allowUpnp = true;935 936-} // lib.optionalAttrs withSecrets {937+}938+// lib.optionalAttrs withSecrets {939 wireguard = {940 id = 2;941 publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U=";942@@ -19,4 +20,4 @@943 flakeSelf.nixosConfigurations.neotokyo944 ];945 };946-} 947+}948diff --git a/justfile b/justfile949index 28dd5f9..8fd3082 100644950--- a/justfile951+++ b/justfile952@@ -65,11 +65,11 @@ bootstrap-vps target:953 --debug954 955 bump-meli:956- nix-update -F --version=branch=master meli-teto957+ nix-update -F --version=branch=master meli-teto958 959 discover-upnp-renderers:960- gssdp-discover --timeout=5 \961- --target=urn:schemas-upnp-org:device:MediaRenderer:1962+ gssdp-discover --timeout=5 \963+ --target=urn:schemas-upnp-org:device:MediaRenderer:1964 965 # just to save the command966 967@@ -325,7 +325,6 @@ inspect-current-generation:968 flash-ulanzi-tc001:969 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin970 971-972 # check dlna servers on the network973 scan-upnp:974 nmap --script=broadcast-upnp-info 192.168.0.0/16975diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix976index 3820510..e4bca1c 100644977--- a/nixos/profiles/adguardhome.nix978+++ b/nixos/profiles/adguardhome.nix979@@ -9,7 +9,6 @@980 # mutableSettings = true;981 # openFirewall = false;982 983-984 # mutableSettings = true;985 # extraArgs = [];986 987diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix988index 9ceeefc..3835a79 100644989--- a/nixos/profiles/avahi.nix990+++ b/nixos/profiles/avahi.nix991@@ -1,9 +1,6 @@992 /*993-994-guide:995-avahi-browse-domains 996-997-998+ guide:999+ avahi-browse-domains1000 */1001 {1002 config,1003@@ -23,7 +20,7 @@ avahi-browse-domains1004 1005 server = {1006 1007- # List of non-local DNS domains to be browsed.1008+ # List of non-local DNS domains to be browsed.1009 browse-domains = [1010 # "0pointer.de"1011 # "zeroconf.org"1012diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix1013index 3f9282d..9039e39 1006441014--- a/nixos/profiles/desktop/programs/flyline.nix1015+++ b/nixos/profiles/desktop/programs/flyline.nix1016@@ -1,5 +1,5 @@1017 {1018 enable = true;1019- # 1020+ #1021 # package = ;1022 }