treefmt-check
checks.x86_64-linux.formatting
· build #41
· raw
1treefmt v2.6.0traversed 1600 files2emitted 856 files for processing3formatted 856 files (21 changed) in 1.525s4 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/services/mpd.nix11 M hm/profiles/teto-desktop/xdg/default.nix12 M hosts/jedha/default.nix13 M hosts/jedha/services/avahi.nix14 M hosts/jedha/services/minidlna.nix15 M hosts/jedha/services/opentelemetry-collector.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 0564b66..bf3521a 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/services/mpd.nix b/hm/profiles/teto-desktop/services/mpd.nix173index fe2532e..140a36d 100644174--- a/hm/profiles/teto-desktop/services/mpd.nix175+++ b/hm/profiles/teto-desktop/services/mpd.nix176@@ -12,11 +12,11 @@177 listenAddress = "any";178 };179 180- # where 181- # audio_output {182- # type "pipewire"183- # name "PipeWire Sound Server"184- # }185+ # where186+ # audio_output {187+ # type "pipewire"188+ # name "PipeWire Sound Server"189+ # }190 extraConfig = ''191 include "${config.xdg.configHome}/mpd/manual.conf"192 '';193diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix194index 0dad1af..11dd2ad 100644195--- a/hm/profiles/teto-desktop/xdg/default.nix196+++ b/hm/profiles/teto-desktop/xdg/default.nix197@@ -101,12 +101,12 @@198 "bash/bashrc".text = ''199 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"200 source "$script_dir/manual.sh"201- ''202- # check if flyline defined too ?203- + lib.optionalString osConfig.programs.flyline.enable '' 204- source "$script_dir/flyline.sh"205+ ''206+ # check if flyline defined too ?207+ + lib.optionalString osConfig.programs.flyline.enable ''208+ source "$script_dir/flyline.sh"209 210- '';211+ '';212 213 "nvim/lua/generated-by-nix.lua" =214 let215diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix216index 77dae93..78c87ca 100644217--- a/hosts/jedha/default.nix218+++ b/hosts/jedha/default.nix219@@ -91,12 +91,20 @@ in220 # Upmpdcli's local-library server needs both discovery and HTTP access.221 networking.firewall = lib.mkIf config.services.upmpdcli.enable {222 allowedUDPPorts = [ 1900 ];223- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];224+ allowedTCPPorts = with config.services.upmpdcli.configuration; [225+ upnpport226+ uprclport227+ ];228 };229 230 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {231 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.232- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];233+ path = [234+ pkgs.recoll235+ pkgs.python3236+ pkgs.openssl237+ pkgs.diffutils238+ ];239 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];240 };241 242diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix243index d71a01b..3dd64ae 100644244--- a/hosts/jedha/services/avahi.nix245+++ b/hosts/jedha/services/avahi.nix246@@ -30,13 +30,12 @@247 };248 249 publish = {250- disable-publishing = false;251- disable-user-service-publishing = false;252- publish-addresses = true;253- };254-255+ disable-publishing = false;256+ disable-user-service-publishing = false;257+ publish-addresses = true;258 };259 260+ };261 262 nssmdns4 = true;263 # publish = {264diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix265index 0ea64f9..9b1b770 100644266--- a/hosts/jedha/services/minidlna.nix267+++ b/hosts/jedha/services/minidlna.nix268@@ -7,7 +7,6 @@269 # announceInterval = 60;270 openFirewall = true;271 272-273 # there are udp errors when it binds to wireguard network ?274 275 settings = {276@@ -16,9 +15,9 @@277 friendly_name = "jedha";278 # inotify = "yes";279 log_level = "warn";280- media_dir = [ 281+ media_dir = [282 # can be prefixed with V/A, to filter audio/video283- "/mnt/ext/music" 284+ "/mnt/ext/music"285 ];286 inotify = "yes";287 # db_dir =288diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix289index 28cc3b4..1d1609c 100644290--- a/hosts/jedha/services/opentelemetry-collector.nix291+++ b/hosts/jedha/services/opentelemetry-collector.nix292@@ -1,23 +1,22 @@293 {294 295-296 enable = true;297 298 settings =299-let300- port = 4318;301-in302+ let303+ port = 4318;304+ in305 {306- exporters.debug.verbosity = "detailed";307- receivers.otlp.protocols = {308- http.endpoint = "0.0.0.0:${toString port}";309- };310- service = {311- pipelines.logs = {312- receivers = [ "otlp" ];313- exporters = [ "debug" ];314- };315- };316+ exporters.debug.verbosity = "detailed";317+ receivers.otlp.protocols = {318+ http.endpoint = "0.0.0.0:${toString port}";319+ };320+ service = {321+ pipelines.logs = {322+ receivers = [ "otlp" ];323+ exporters = [ "debug" ];324+ };325+ };326 327- };328+ };329 }330diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix331index 59d7129..e0cab47 100644332--- a/hosts/jedha/systemd.nix333+++ b/hosts/jedha/systemd.nix334@@ -34,61 +34,60 @@ in335 })336 # disabled because ha-mcp broken337 (lib.mkIf false {338- ha-mcp = {339- description = "Home Assistant MCP server";340- wantedBy = [ "multi-user.target" ];341- wants = [ "network-online.target" ];342- after = [ "network-online.target" ];343- environment = {344- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";345- HOME = "/var/lib/ha-mcp";346- MCP_HOST = "127.0.0.1";347- MCP_PORT = "8086";348- };349- serviceConfig = {350- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";351- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.352- EnvironmentFile = "/var/lib/ha-mcp/environment";353- DynamicUser = true;354- StateDirectory = "ha-mcp";355- WorkingDirectory = "/var/lib/ha-mcp";356- Restart = "on-failure";357- RestartSec = 5;358- UMask = "0077";359- };360+ ha-mcp = {361+ description = "Home Assistant MCP server";362+ wantedBy = [ "multi-user.target" ];363+ wants = [ "network-online.target" ];364+ after = [ "network-online.target" ];365+ environment = {366+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";367+ HOME = "/var/lib/ha-mcp";368+ MCP_HOST = "127.0.0.1";369+ MCP_PORT = "8086";370 };371+ serviceConfig = {372+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";373+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.374+ EnvironmentFile = "/var/lib/ha-mcp/environment";375+ DynamicUser = true;376+ StateDirectory = "ha-mcp";377+ WorkingDirectory = "/var/lib/ha-mcp";378+ Restart = "on-failure";379+ RestartSec = 5;380+ UMask = "0077";381+ };382+ };383 384- # copied from https://github.com/NixOS/nixpkgs/pull/544252385- # lib.recursiveUpdate slib.systemd.serviceDefaults {386- speech-to-phrase = {387- # after = [ "home-assistant.service" ];388- script = lib.concatStringsSep " " [389- (lib.getExe pkgs.speech-to-phrase)390- "--models-dir"391- "\"$STATE_DIRECTORY/models\""392- "--train-dir"393- "\"$STATE_DIRECTORY/train\""394- # "--custom-sentences-dir" ""395- "--uri 'tcp://127.0.0.1:10400'"396- "--hass-websocket-uri"397- "ws://${hassHost}:${toString hassPort}/api/websocket"398- "--retrain-on-start"399- "--retrain-on-connect"400- "--retrain-seconds"401- "300"402- ];403- serviceConfig = {404- #405- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;406- Group = "speech-to-phrase";407- StateDirectory = "speech-to-phrase";408- User = "speech-to-phrase";409- # TODO: hardening410- };411+ # copied from https://github.com/NixOS/nixpkgs/pull/544252412+ # lib.recursiveUpdate slib.systemd.serviceDefaults {413+ speech-to-phrase = {414+ # after = [ "home-assistant.service" ];415+ script = lib.concatStringsSep " " [416+ (lib.getExe pkgs.speech-to-phrase)417+ "--models-dir"418+ "\"$STATE_DIRECTORY/models\""419+ "--train-dir"420+ "\"$STATE_DIRECTORY/train\""421+ # "--custom-sentences-dir" ""422+ "--uri 'tcp://127.0.0.1:10400'"423+ "--hass-websocket-uri"424+ "ws://${hassHost}:${toString hassPort}/api/websocket"425+ "--retrain-on-start"426+ "--retrain-on-connect"427+ "--retrain-seconds"428+ "300"429+ ];430+ serviceConfig = {431+ #432+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;433+ Group = "speech-to-phrase";434+ StateDirectory = "speech-to-phrase";435+ User = "speech-to-phrase";436+ # TODO: hardening437 };438+ };439 440- }441- )442+ })443 ];444 445 # just to test446diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix447index 8cbae35..3c41972 100644448--- a/hosts/tatooine/default.nix449+++ b/hosts/tatooine/default.nix450@@ -132,7 +132,6 @@ in451 enableRedistributableFirmware = true;452 sane.enable = true;453 454-455 # High quality BT calls456 # https://nixos.wiki/wiki/Bluetooth457 bluetooth = {458diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix459index adc82dd..1724c86 100644460--- a/hosts/tatooine/services/adguardhome.nix461+++ b/hosts/tatooine/services/adguardhome.nix462@@ -10,7 +10,7 @@463 settings = {464 465 # http (since v0.107.36): Web interface configuration.466- # address: Web interface IP address with port to listen on 467+ # address: Web interface IP address with port to listen on468 http.address = "127.0.0.1:8084";469 470 };471diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix472index dd02f3f..f14c221 100644473--- a/hosts/tatooine/services/avahi.nix474+++ b/hosts/tatooine/services/avahi.nix475@@ -21,19 +21,19 @@476 477 settings = {478 publish = {479- publish-domain = true;480- disable-publishing = false;481- disable-user-service-publishing = false;482- publish-addresses = true;483- };484+ publish-domain = true;485+ disable-publishing = false;486+ disable-user-service-publishing = false;487+ publish-addresses = true;488+ };489 490 server = {491 use-ipv6 = false; # bug with multiple hostnames492- # # 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.493- # # secrets.jedha.hostname;494- # # host-name = "jedha";495- # # enable-dbus = true;496- #497+ # # 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.498+ # # secrets.jedha.hostname;499+ # # host-name = "jedha";500+ # # enable-dbus = true;501+ #502 };503 };504 505diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix506index 0c082b6..58d9c85 100644507--- a/hosts/tatooine/services/pulseaudio.nix508+++ b/hosts/tatooine/services/pulseaudio.nix509@@ -1,9 +1,8 @@510 { pkgs, ... }:511- # cant be enabled with pipewire512- {513- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false514- enable = false;515- # for ad2p profle ?516- package = pkgs.pulseaudioFull;517- }518-519+# cant be enabled with pipewire520+{521+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false522+ enable = false;523+ # for ad2p profle ?524+ package = pkgs.pulseaudioFull;525+}526diff --git a/justfile b/justfile527index a87655b..456c53b 100644528--- a/justfile529+++ b/justfile530@@ -65,7 +65,7 @@ bootstrap-vps target:531 --debug532 533 bump-meli:534- nix-update -F --version=branch=master meli-teto535+ nix-update -F --version=branch=master meli-teto536 537 # just to save the command538 539@@ -321,7 +321,6 @@ inspect-current-generation:540 flash-ulanzi-tc001:541 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin542 543-544 # check dlna servers on the network545 scan-upnp:546 nmap --script=broadcast-upnp-info 192.168.0.0/16547diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix548index 3820510..e4bca1c 100644549--- a/nixos/profiles/adguardhome.nix550+++ b/nixos/profiles/adguardhome.nix551@@ -9,7 +9,6 @@552 # mutableSettings = true;553 # openFirewall = false;554 555-556 # mutableSettings = true;557 # extraArgs = [];558 559diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix560index 3c1971b..ea3fa0f 100644561--- a/nixos/profiles/avahi.nix562+++ b/nixos/profiles/avahi.nix563@@ -25,7 +25,7 @@564 565 server = {566 567- # List of non-local DNS domains to be browsed.568+ # List of non-local DNS domains to be browsed.569 browse-domains = [570 # "0pointer.de"571 # "zeroconf.org"572diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix573index 3f9282d..9039e39 100644574--- a/nixos/profiles/desktop/programs/flyline.nix575+++ b/nixos/profiles/desktop/programs/flyline.nix576@@ -1,5 +1,5 @@577 {578 enable = true;579- # 580+ #581 # package = ;582 }