treefmt-check
checks.x86_64-linux.formatting
· build #42
· raw
1treefmt v2.6.0traversed 1601 files2emitted 857 files for processing3formatted 857 files (21 changed) in 1.302s4 M by-name/ze/zeal-teto/package.nix5 M config/bash/flyline.sh6 M config/nvim/lua/init-manual.lua7 M hm/modules/package-sets.nix8 M hm/profiles/teto-desktop/default.nix9 M hm/profiles/teto-desktop/programs/rofi.nix10 M hm/profiles/teto-desktop/xdg/default.nix11 M hosts/jedha/default.nix12 M hosts/jedha/services/avahi.nix13 M hosts/jedha/services/minidlna.nix14 M hosts/jedha/services/opentelemetry-collector.nix15 M hosts/jedha/services/upmpdcli.nix16 M hosts/jedha/systemd.nix17 M hosts/tatooine/default.nix18 M hosts/tatooine/services/adguardhome.nix19 M hosts/tatooine/services/avahi.nix20 M hosts/tatooine/services/pulseaudio.nix21 M justfile22 M nixos/profiles/adguardhome.nix23 M nixos/profiles/avahi.nix24 M nixos/profiles/desktop/programs/flyline.nix25diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix26index 9442d75..a9d8692 10064427--- a/by-name/ze/zeal-teto/package.nix28+++ b/by-name/ze/zeal-teto/package.nix29@@ -1,10 +1,9 @@30 { zeal }:31 zeal.overrideAttrs (oa: {32 33- # export QMLSCENE_DEVICE=software34- postInstall = ''35- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software36- '';37-38- })39+ # export QMLSCENE_DEVICE=software40+ postInstall = ''41+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software42+ '';43 44+})45diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh46index 7290cbb..8278c3b 10064447--- a/config/bash/flyline.sh48+++ b/config/bash/flyline.sh49@@ -10,12 +10,11 @@ flyline history --backend flyline50 # it flickers51 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 252 53-# Codex: change 54+# Codex: change55 flyline set-agent-mode \56- --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. " \57- --trigger-prefix ': ' \58- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'59-60+ --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. " \61+ --trigger-prefix ': ' \62+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'63 64 # Antigravity:65 # flyline set-agent-mode \66@@ -26,7 +25,6 @@ flyline set-agent-mode \67 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"68 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR69 70-71 # precmd_functions+=(set_ps1)72 # Now you can use this animation in your prompt. For example:73 PS1='\u@\h:\w MOUSE_MODE \n$ '74@@ -49,8 +47,7 @@ PROMPT_RULER_FINAL=''75 # flyline settings vim_mode true76 # flyline vim_mode77 78-flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽79-80+flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽81 82 # This replaces any instance of "john" with the animation, so it will animate every time "john" appears in the prompt.83 # flyline create-prompt-widget animation --name "john" --ping-pong --fps 8 \84@@ -64,7 +61,6 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 85 # john \86 # john87 88-89 # Experiment with higher frame rates for smooth transitions:90 # flyline create-prompt-widget animation --name "john" --fps 24 \91 # '\e[38;2;255;0;0m\u' \92@@ -130,4 +126,4 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 93 # '\e[38;2;255;0;63m\u' \94 # '\e[38;2;255;0;47m\u' \95 # '\e[38;2;255;0;31m\u' \96-# '\e[38;2;255;0;15m\u' 97+# '\e[38;2;255;0;15m\u'98diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua99index 69b09f5..4d9576f 100644100--- a/config/nvim/lua/init-manual.lua101+++ b/config/nvim/lua/init-manual.lua102@@ -1356,4 +1356,3 @@ vim.api.nvim_create_autocmd({ 'User' }, {103 -- end)104 end,105 })106-107diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix108index a575687..48abec7 100644109--- a/hm/modules/package-sets.nix110+++ b/hm/modules/package-sets.nix111@@ -114,7 +114,6 @@ in112 pkgs.blazingjj113 flakeSelf.inputs.jj-gh.packages.${system}.default114 115-116 # pkgs.gg-jj117 # pkgs.lazyjj118 # pkgs.jj-fzf119@@ -415,7 +414,6 @@ in120 lurk # a rust strace121 lsof # to see open files122 123-124 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship125 libossp_uuid # for the 'libuuid' executable126 127@@ -495,7 +493,7 @@ in128 tig129 tmux # when connecting via ssh130 universal-ctags # there are many different ctags, be careful !131- uv # to install python packages132+ uv # to install python packages133 unar # used to view archives by yazi (now using ouch ?)134 vifm135 viu # a console image viewer136diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix137index b00830c..a03128c 100644138--- a/hm/profiles/teto-desktop/default.nix139+++ b/hm/profiles/teto-desktop/default.nix140@@ -112,7 +112,7 @@ in141 142 home.packages =143 with pkgs;144- let 145+ let146 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;147 148 # lux-cli-teto = lux-cli;149@@ -179,7 +179,6 @@ in150 # kaggle # kaggle interface151 # python3Packages.kaggle152 153-154 sonic-pi155 stow156 systemctl-tui157diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix158index be52e45..f9d09d8 100644159--- a/hm/profiles/teto-desktop/programs/rofi.nix160+++ b/hm/profiles/teto-desktop/programs/rofi.nix161@@ -37,8 +37,8 @@162 163 location = "center";164 modes = [165- # modes: [ combi ];166- # combi-modes: [ window, drun, run ];167+ # modes: [ combi ];168+ # combi-modes: [ window, drun, run ];169 170 ];171 172diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix173index 0dad1af..11dd2ad 100644174--- a/hm/profiles/teto-desktop/xdg/default.nix175+++ b/hm/profiles/teto-desktop/xdg/default.nix176@@ -101,12 +101,12 @@177 "bash/bashrc".text = ''178 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"179 source "$script_dir/manual.sh"180- ''181- # check if flyline defined too ?182- + lib.optionalString osConfig.programs.flyline.enable '' 183- source "$script_dir/flyline.sh"184+ ''185+ # check if flyline defined too ?186+ + lib.optionalString osConfig.programs.flyline.enable ''187+ source "$script_dir/flyline.sh"188 189- '';190+ '';191 192 "nvim/lua/generated-by-nix.lua" =193 let194diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix195index 77dae93..78c87ca 100644196--- a/hosts/jedha/default.nix197+++ b/hosts/jedha/default.nix198@@ -91,12 +91,20 @@ in199 # Upmpdcli's local-library server needs both discovery and HTTP access.200 networking.firewall = lib.mkIf config.services.upmpdcli.enable {201 allowedUDPPorts = [ 1900 ];202- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];203+ allowedTCPPorts = with config.services.upmpdcli.configuration; [204+ upnpport205+ uprclport206+ ];207 };208 209 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {210 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.211- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];212+ path = [213+ pkgs.recoll214+ pkgs.python3215+ pkgs.openssl216+ pkgs.diffutils217+ ];218 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];219 };220 221diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix222index d71a01b..3dd64ae 100644223--- a/hosts/jedha/services/avahi.nix224+++ b/hosts/jedha/services/avahi.nix225@@ -30,13 +30,12 @@226 };227 228 publish = {229- disable-publishing = false;230- disable-user-service-publishing = false;231- publish-addresses = true;232- };233-234+ disable-publishing = false;235+ disable-user-service-publishing = false;236+ publish-addresses = true;237 };238 239+ };240 241 nssmdns4 = true;242 # publish = {243diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix244index 0ea64f9..9b1b770 100644245--- a/hosts/jedha/services/minidlna.nix246+++ b/hosts/jedha/services/minidlna.nix247@@ -7,7 +7,6 @@248 # announceInterval = 60;249 openFirewall = true;250 251-252 # there are udp errors when it binds to wireguard network ?253 254 settings = {255@@ -16,9 +15,9 @@256 friendly_name = "jedha";257 # inotify = "yes";258 log_level = "warn";259- media_dir = [ 260+ media_dir = [261 # can be prefixed with V/A, to filter audio/video262- "/mnt/ext/music" 263+ "/mnt/ext/music"264 ];265 inotify = "yes";266 # db_dir =267diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix268index 28cc3b4..1d1609c 100644269--- a/hosts/jedha/services/opentelemetry-collector.nix270+++ b/hosts/jedha/services/opentelemetry-collector.nix271@@ -1,23 +1,22 @@272 {273 274-275 enable = true;276 277 settings =278-let279- port = 4318;280-in281+ let282+ port = 4318;283+ in284 {285- exporters.debug.verbosity = "detailed";286- receivers.otlp.protocols = {287- http.endpoint = "0.0.0.0:${toString port}";288- };289- service = {290- pipelines.logs = {291- receivers = [ "otlp" ];292- exporters = [ "debug" ];293- };294- };295+ exporters.debug.verbosity = "detailed";296+ receivers.otlp.protocols = {297+ http.endpoint = "0.0.0.0:${toString port}";298+ };299+ service = {300+ pipelines.logs = {301+ receivers = [ "otlp" ];302+ exporters = [ "debug" ];303+ };304+ };305 306- };307+ };308 }309diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix310index 934c537..6198f53 100644311--- a/hosts/jedha/services/upmpdcli.nix312+++ b/hosts/jedha/services/upmpdcli.nix313@@ -1,12 +1,12 @@314 /*315-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 316- should change playback if rmpd and upmpdcli are controlling the same MPD instance317- 318- • 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.319-• 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.320+ 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, it321+ should change playback if rmpd and upmpdcli are controlling the same MPD instance322 323-mpd now has a plugin that can play music from upnp server 324-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction325+ • 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.326+ • 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.327+328+ mpd now has a plugin that can play music from upnp server329+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction330 */331 332 { pkgs, lib, ... }:333@@ -43,7 +43,7 @@ in334 mpdport = 6600;335 # try to see if I can control it myself336 ownqueue = 0;337- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 338+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo339 # control the playlist. The client can disconnect after playlist was created340 openhome = 0;341 upnpav = 1;342diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix343index 59d7129..e0cab47 100644344--- a/hosts/jedha/systemd.nix345+++ b/hosts/jedha/systemd.nix346@@ -34,61 +34,60 @@ in347 })348 # disabled because ha-mcp broken349 (lib.mkIf false {350- ha-mcp = {351- description = "Home Assistant MCP server";352- wantedBy = [ "multi-user.target" ];353- wants = [ "network-online.target" ];354- after = [ "network-online.target" ];355- environment = {356- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";357- HOME = "/var/lib/ha-mcp";358- MCP_HOST = "127.0.0.1";359- MCP_PORT = "8086";360- };361- serviceConfig = {362- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";363- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.364- EnvironmentFile = "/var/lib/ha-mcp/environment";365- DynamicUser = true;366- StateDirectory = "ha-mcp";367- WorkingDirectory = "/var/lib/ha-mcp";368- Restart = "on-failure";369- RestartSec = 5;370- UMask = "0077";371- };372+ ha-mcp = {373+ description = "Home Assistant MCP server";374+ wantedBy = [ "multi-user.target" ];375+ wants = [ "network-online.target" ];376+ after = [ "network-online.target" ];377+ environment = {378+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";379+ HOME = "/var/lib/ha-mcp";380+ MCP_HOST = "127.0.0.1";381+ MCP_PORT = "8086";382 };383+ serviceConfig = {384+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";385+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.386+ EnvironmentFile = "/var/lib/ha-mcp/environment";387+ DynamicUser = true;388+ StateDirectory = "ha-mcp";389+ WorkingDirectory = "/var/lib/ha-mcp";390+ Restart = "on-failure";391+ RestartSec = 5;392+ UMask = "0077";393+ };394+ };395 396- # copied from https://github.com/NixOS/nixpkgs/pull/544252397- # lib.recursiveUpdate slib.systemd.serviceDefaults {398- speech-to-phrase = {399- # after = [ "home-assistant.service" ];400- script = lib.concatStringsSep " " [401- (lib.getExe pkgs.speech-to-phrase)402- "--models-dir"403- "\"$STATE_DIRECTORY/models\""404- "--train-dir"405- "\"$STATE_DIRECTORY/train\""406- # "--custom-sentences-dir" ""407- "--uri 'tcp://127.0.0.1:10400'"408- "--hass-websocket-uri"409- "ws://${hassHost}:${toString hassPort}/api/websocket"410- "--retrain-on-start"411- "--retrain-on-connect"412- "--retrain-seconds"413- "300"414- ];415- serviceConfig = {416- #417- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;418- Group = "speech-to-phrase";419- StateDirectory = "speech-to-phrase";420- User = "speech-to-phrase";421- # TODO: hardening422- };423+ # copied from https://github.com/NixOS/nixpkgs/pull/544252424+ # lib.recursiveUpdate slib.systemd.serviceDefaults {425+ speech-to-phrase = {426+ # after = [ "home-assistant.service" ];427+ script = lib.concatStringsSep " " [428+ (lib.getExe pkgs.speech-to-phrase)429+ "--models-dir"430+ "\"$STATE_DIRECTORY/models\""431+ "--train-dir"432+ "\"$STATE_DIRECTORY/train\""433+ # "--custom-sentences-dir" ""434+ "--uri 'tcp://127.0.0.1:10400'"435+ "--hass-websocket-uri"436+ "ws://${hassHost}:${toString hassPort}/api/websocket"437+ "--retrain-on-start"438+ "--retrain-on-connect"439+ "--retrain-seconds"440+ "300"441+ ];442+ serviceConfig = {443+ #444+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;445+ Group = "speech-to-phrase";446+ StateDirectory = "speech-to-phrase";447+ User = "speech-to-phrase";448+ # TODO: hardening449 };450+ };451 452- }453- )454+ })455 ];456 457 # just to test458diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix459index 8cbae35..3c41972 100644460--- a/hosts/tatooine/default.nix461+++ b/hosts/tatooine/default.nix462@@ -132,7 +132,6 @@ in463 enableRedistributableFirmware = true;464 sane.enable = true;465 466-467 # High quality BT calls468 # https://nixos.wiki/wiki/Bluetooth469 bluetooth = {470diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix471index adc82dd..1724c86 100644472--- a/hosts/tatooine/services/adguardhome.nix473+++ b/hosts/tatooine/services/adguardhome.nix474@@ -10,7 +10,7 @@475 settings = {476 477 # http (since v0.107.36): Web interface configuration.478- # address: Web interface IP address with port to listen on 479+ # address: Web interface IP address with port to listen on480 http.address = "127.0.0.1:8084";481 482 };483diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix484index dd02f3f..f14c221 100644485--- a/hosts/tatooine/services/avahi.nix486+++ b/hosts/tatooine/services/avahi.nix487@@ -21,19 +21,19 @@488 489 settings = {490 publish = {491- publish-domain = true;492- disable-publishing = false;493- disable-user-service-publishing = false;494- publish-addresses = true;495- };496+ publish-domain = true;497+ disable-publishing = false;498+ disable-user-service-publishing = false;499+ publish-addresses = true;500+ };501 502 server = {503 use-ipv6 = false; # bug with multiple hostnames504- # # 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.505- # # secrets.jedha.hostname;506- # # host-name = "jedha";507- # # enable-dbus = true;508- #509+ # # 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.510+ # # secrets.jedha.hostname;511+ # # host-name = "jedha";512+ # # enable-dbus = true;513+ #514 };515 };516 517diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix518index 0c082b6..58d9c85 100644519--- a/hosts/tatooine/services/pulseaudio.nix520+++ b/hosts/tatooine/services/pulseaudio.nix521@@ -1,9 +1,8 @@522 { pkgs, ... }:523- # cant be enabled with pipewire524- {525- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false526- enable = false;527- # for ad2p profle ?528- package = pkgs.pulseaudioFull;529- }530-531+# cant be enabled with pipewire532+{533+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false534+ enable = false;535+ # for ad2p profle ?536+ package = pkgs.pulseaudioFull;537+}538diff --git a/justfile b/justfile539index a87655b..456c53b 100644540--- a/justfile541+++ b/justfile542@@ -65,7 +65,7 @@ bootstrap-vps target:543 --debug544 545 bump-meli:546- nix-update -F --version=branch=master meli-teto547+ nix-update -F --version=branch=master meli-teto548 549 # just to save the command550 551@@ -321,7 +321,6 @@ inspect-current-generation:552 flash-ulanzi-tc001:553 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin554 555-556 # check dlna servers on the network557 scan-upnp:558 nmap --script=broadcast-upnp-info 192.168.0.0/16559diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix560index 3820510..e4bca1c 100644561--- a/nixos/profiles/adguardhome.nix562+++ b/nixos/profiles/adguardhome.nix563@@ -9,7 +9,6 @@564 # mutableSettings = true;565 # openFirewall = false;566 567-568 # mutableSettings = true;569 # extraArgs = [];570 571diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix572index 3c1971b..ea3fa0f 100644573--- a/nixos/profiles/avahi.nix574+++ b/nixos/profiles/avahi.nix575@@ -25,7 +25,7 @@576 577 server = {578 579- # List of non-local DNS domains to be browsed.580+ # List of non-local DNS domains to be browsed.581 browse-domains = [582 # "0pointer.de"583 # "zeroconf.org"584diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix585index 3f9282d..9039e39 100644586--- a/nixos/profiles/desktop/programs/flyline.nix587+++ b/nixos/profiles/desktop/programs/flyline.nix588@@ -1,5 +1,5 @@589 {590 enable = true;591- # 592+ #593 # package = ;594 }