treefmt-check
checks.x86_64-linux.formatting
· build #39
· raw
1treefmt v2.6.0traversed 1598 files2emitted 854 files for processing3formatted 854 files (19 changed) in 1.27s4 M config/bash/flyline.sh5 M config/nvim/lua/init-manual.lua6 M hm/profiles/teto-desktop/default.nix7 M hm/profiles/teto-desktop/programs/rofi.nix8 M hm/profiles/teto-desktop/services/mpd.nix9 M hm/profiles/teto-desktop/xdg/default.nix10 M hosts/jedha/services/avahi.nix11 M hosts/jedha/services/minidlna.nix12 M hosts/jedha/services/opentelemetry-collector.nix13 M hosts/jedha/services/upmpdcli.nix14 M hosts/jedha/systemd.nix15 M hosts/tatooine/default.nix16 M hosts/tatooine/services/adguardhome.nix17 M hosts/tatooine/services/avahi.nix18 M hosts/tatooine/services/pulseaudio.nix19 M justfile20 M nixos/profiles/adguardhome.nix21 M nixos/profiles/avahi.nix22 M nixos/profiles/desktop/programs/flyline.nix23diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh24index 86ce9b0..e6ef1a9 10064425--- a/config/bash/flyline.sh26+++ b/config/bash/flyline.sh27@@ -8,12 +8,11 @@ flyline history --backend flyline28 29 flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 230 31-# Codex: change 32+# Codex: change33 flyline set-agent-mode \34- --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. " \35- --trigger-prefix ': ' \36- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'37-38+ --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. " \39+ --trigger-prefix ': ' \40+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'41 42 # Antigravity:43 # flyline set-agent-mode \44@@ -24,7 +23,6 @@ flyline set-agent-mode \45 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"46 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR47 48-49 # precmd_functions+=(set_ps1)50 # Now you can use this animation in your prompt. For example:51 PS1='\u@\h:\w MOUSE_MODE \n$ '52@@ -47,8 +45,7 @@ PROMPT_RULER_FINAL=''53 # flyline settings vim_mode true54 # flyline vim_mode55 56-flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽57-58+flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽59 60 # This replaces any instance of "john" with the animation, so it will animate every time "john" appears in the prompt.61 # flyline create-prompt-widget animation --name "john" --ping-pong --fps 8 \62@@ -62,7 +59,6 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 63 # john \64 # john65 66-67 # Experiment with higher frame rates for smooth transitions:68 # flyline create-prompt-widget animation --name "john" --fps 24 \69 # '\e[38;2;255;0;0m\u' \70@@ -128,4 +124,4 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 71 # '\e[38;2;255;0;63m\u' \72 # '\e[38;2;255;0;47m\u' \73 # '\e[38;2;255;0;31m\u' \74-# '\e[38;2;255;0;15m\u' 75+# '\e[38;2;255;0;15m\u'76diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua77index 69b09f5..4d9576f 10064478--- a/config/nvim/lua/init-manual.lua79+++ b/config/nvim/lua/init-manual.lua80@@ -1356,4 +1356,3 @@ vim.api.nvim_create_autocmd({ 'User' }, {81 -- end)82 end,83 })84-85diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix86index 6445766..6519b93 10064487--- a/hm/profiles/teto-desktop/default.nix88+++ b/hm/profiles/teto-desktop/default.nix89@@ -112,7 +112,7 @@ in90 91 home.packages =92 with pkgs;93- let 94+ let95 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;96 97 # lux-cli-teto = lux-cli;98@@ -172,7 +172,6 @@ in99 # kaggle # kaggle interface100 # python3Packages.kaggle101 102-103 sonic-pi104 stow105 systemctl-tui106diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix107index be52e45..f9d09d8 100644108--- a/hm/profiles/teto-desktop/programs/rofi.nix109+++ b/hm/profiles/teto-desktop/programs/rofi.nix110@@ -37,8 +37,8 @@111 112 location = "center";113 modes = [114- # modes: [ combi ];115- # combi-modes: [ window, drun, run ];116+ # modes: [ combi ];117+ # combi-modes: [ window, drun, run ];118 119 ];120 121diff --git a/hm/profiles/teto-desktop/services/mpd.nix b/hm/profiles/teto-desktop/services/mpd.nix122index fe2532e..140a36d 100644123--- a/hm/profiles/teto-desktop/services/mpd.nix124+++ b/hm/profiles/teto-desktop/services/mpd.nix125@@ -12,11 +12,11 @@126 listenAddress = "any";127 };128 129- # where 130- # audio_output {131- # type "pipewire"132- # name "PipeWire Sound Server"133- # }134+ # where135+ # audio_output {136+ # type "pipewire"137+ # name "PipeWire Sound Server"138+ # }139 extraConfig = ''140 include "${config.xdg.configHome}/mpd/manual.conf"141 '';142diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix143index 0dad1af..11dd2ad 100644144--- a/hm/profiles/teto-desktop/xdg/default.nix145+++ b/hm/profiles/teto-desktop/xdg/default.nix146@@ -101,12 +101,12 @@147 "bash/bashrc".text = ''148 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"149 source "$script_dir/manual.sh"150- ''151- # check if flyline defined too ?152- + lib.optionalString osConfig.programs.flyline.enable '' 153- source "$script_dir/flyline.sh"154+ ''155+ # check if flyline defined too ?156+ + lib.optionalString osConfig.programs.flyline.enable ''157+ source "$script_dir/flyline.sh"158 159- '';160+ '';161 162 "nvim/lua/generated-by-nix.lua" =163 let164diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix165index d71a01b..3dd64ae 100644166--- a/hosts/jedha/services/avahi.nix167+++ b/hosts/jedha/services/avahi.nix168@@ -30,13 +30,12 @@169 };170 171 publish = {172- disable-publishing = false;173- disable-user-service-publishing = false;174- publish-addresses = true;175- };176-177+ disable-publishing = false;178+ disable-user-service-publishing = false;179+ publish-addresses = true;180 };181 182+ };183 184 nssmdns4 = true;185 # publish = {186diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix187index aa8898f..8ae35fa 100644188--- a/hosts/jedha/services/minidlna.nix189+++ b/hosts/jedha/services/minidlna.nix190@@ -9,7 +9,6 @@191 # announceInterval = 60;192 openFirewall = true;193 194-195 # there are udp errors when it binds to wireguard network ?196 197 settings = {198@@ -18,9 +17,9 @@199 friendly_name = "jedha";200 # inotify = "yes";201 log_level = "warn";202- media_dir = [ 203+ media_dir = [204 # can be prefixed with V/A, to filter audio/video205- "/mnt/ext/music" 206+ "/mnt/ext/music"207 ];208 inotify = "yes";209 # db_dir =210diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix211index 28cc3b4..1d1609c 100644212--- a/hosts/jedha/services/opentelemetry-collector.nix213+++ b/hosts/jedha/services/opentelemetry-collector.nix214@@ -1,23 +1,22 @@215 {216 217-218 enable = true;219 220 settings =221-let222- port = 4318;223-in224+ let225+ port = 4318;226+ in227 {228- exporters.debug.verbosity = "detailed";229- receivers.otlp.protocols = {230- http.endpoint = "0.0.0.0:${toString port}";231- };232- service = {233- pipelines.logs = {234- receivers = [ "otlp" ];235- exporters = [ "debug" ];236- };237- };238+ exporters.debug.verbosity = "detailed";239+ receivers.otlp.protocols = {240+ http.endpoint = "0.0.0.0:${toString port}";241+ };242+ service = {243+ pipelines.logs = {244+ receivers = [ "otlp" ];245+ exporters = [ "debug" ];246+ };247+ };248 249- };250+ };251 }252diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix253index 4a1fff6..22f1d06 100644254--- a/hosts/jedha/services/upmpdcli.nix255+++ b/hosts/jedha/services/upmpdcli.nix256@@ -1,27 +1,24 @@257 {258- enable = true;259- configuration = {260- # see https://man.archlinux.org/man/upmpdcli.conf.5.en261- friendlyname = "UpMpd";262- mpdhost = "127.0.0.1";263+ enable = true;264+ configuration = {265+ # see https://man.archlinux.org/man/upmpdcli.conf.5.en266+ friendlyname = "UpMpd";267+ mpdhost = "127.0.0.1";268 269- 270- # whether we own mpd queue (default to true)271- ownqueue = 1;272+ # whether we own mpd queue (default to true)273+ ownqueue = 1;274 275- 276- mpdport = 6600;277- # mpdpassword = ;278- # Enable OpenHome services (0/1). This defaults to 1, as OpenHome queuing is superior for most usages. There should be little reason to turn it off.279- openhome = 1;280- upnpav = 1;281- 282- 283- useipv6 = 0;284- # use all285- upnpiface = "*";286- loglevel = 4;287- # libupnp/pupnp defaults to using the first free port after 49152. Note that clients do not need to know about the value, which is automatically discovered.288- upnpport = 49152;289- };290- }291+ mpdport = 6600;292+ # mpdpassword = ;293+ # Enable OpenHome services (0/1). This defaults to 1, as OpenHome queuing is superior for most usages. There should be little reason to turn it off.294+ openhome = 1;295+ upnpav = 1;296+297+ useipv6 = 0;298+ # use all299+ upnpiface = "*";300+ loglevel = 4;301+ # libupnp/pupnp defaults to using the first free port after 49152. Note that clients do not need to know about the value, which is automatically discovered.302+ upnpport = 49152;303+ };304+}305diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix306index 59d7129..e0cab47 100644307--- a/hosts/jedha/systemd.nix308+++ b/hosts/jedha/systemd.nix309@@ -34,61 +34,60 @@ in310 })311 # disabled because ha-mcp broken312 (lib.mkIf false {313- ha-mcp = {314- description = "Home Assistant MCP server";315- wantedBy = [ "multi-user.target" ];316- wants = [ "network-online.target" ];317- after = [ "network-online.target" ];318- environment = {319- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";320- HOME = "/var/lib/ha-mcp";321- MCP_HOST = "127.0.0.1";322- MCP_PORT = "8086";323- };324- serviceConfig = {325- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";326- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.327- EnvironmentFile = "/var/lib/ha-mcp/environment";328- DynamicUser = true;329- StateDirectory = "ha-mcp";330- WorkingDirectory = "/var/lib/ha-mcp";331- Restart = "on-failure";332- RestartSec = 5;333- UMask = "0077";334- };335+ ha-mcp = {336+ description = "Home Assistant MCP server";337+ wantedBy = [ "multi-user.target" ];338+ wants = [ "network-online.target" ];339+ after = [ "network-online.target" ];340+ environment = {341+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";342+ HOME = "/var/lib/ha-mcp";343+ MCP_HOST = "127.0.0.1";344+ MCP_PORT = "8086";345 };346+ serviceConfig = {347+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";348+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.349+ EnvironmentFile = "/var/lib/ha-mcp/environment";350+ DynamicUser = true;351+ StateDirectory = "ha-mcp";352+ WorkingDirectory = "/var/lib/ha-mcp";353+ Restart = "on-failure";354+ RestartSec = 5;355+ UMask = "0077";356+ };357+ };358 359- # copied from https://github.com/NixOS/nixpkgs/pull/544252360- # lib.recursiveUpdate slib.systemd.serviceDefaults {361- speech-to-phrase = {362- # after = [ "home-assistant.service" ];363- script = lib.concatStringsSep " " [364- (lib.getExe pkgs.speech-to-phrase)365- "--models-dir"366- "\"$STATE_DIRECTORY/models\""367- "--train-dir"368- "\"$STATE_DIRECTORY/train\""369- # "--custom-sentences-dir" ""370- "--uri 'tcp://127.0.0.1:10400'"371- "--hass-websocket-uri"372- "ws://${hassHost}:${toString hassPort}/api/websocket"373- "--retrain-on-start"374- "--retrain-on-connect"375- "--retrain-seconds"376- "300"377- ];378- serviceConfig = {379- #380- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;381- Group = "speech-to-phrase";382- StateDirectory = "speech-to-phrase";383- User = "speech-to-phrase";384- # TODO: hardening385- };386+ # copied from https://github.com/NixOS/nixpkgs/pull/544252387+ # lib.recursiveUpdate slib.systemd.serviceDefaults {388+ speech-to-phrase = {389+ # after = [ "home-assistant.service" ];390+ script = lib.concatStringsSep " " [391+ (lib.getExe pkgs.speech-to-phrase)392+ "--models-dir"393+ "\"$STATE_DIRECTORY/models\""394+ "--train-dir"395+ "\"$STATE_DIRECTORY/train\""396+ # "--custom-sentences-dir" ""397+ "--uri 'tcp://127.0.0.1:10400'"398+ "--hass-websocket-uri"399+ "ws://${hassHost}:${toString hassPort}/api/websocket"400+ "--retrain-on-start"401+ "--retrain-on-connect"402+ "--retrain-seconds"403+ "300"404+ ];405+ serviceConfig = {406+ #407+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;408+ Group = "speech-to-phrase";409+ StateDirectory = "speech-to-phrase";410+ User = "speech-to-phrase";411+ # TODO: hardening412 };413+ };414 415- }416- )417+ })418 ];419 420 # just to test421diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix422index 8cbae35..3c41972 100644423--- a/hosts/tatooine/default.nix424+++ b/hosts/tatooine/default.nix425@@ -132,7 +132,6 @@ in426 enableRedistributableFirmware = true;427 sane.enable = true;428 429-430 # High quality BT calls431 # https://nixos.wiki/wiki/Bluetooth432 bluetooth = {433diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix434index adc82dd..1724c86 100644435--- a/hosts/tatooine/services/adguardhome.nix436+++ b/hosts/tatooine/services/adguardhome.nix437@@ -10,7 +10,7 @@438 settings = {439 440 # http (since v0.107.36): Web interface configuration.441- # address: Web interface IP address with port to listen on 442+ # address: Web interface IP address with port to listen on443 http.address = "127.0.0.1:8084";444 445 };446diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix447index dd02f3f..f14c221 100644448--- a/hosts/tatooine/services/avahi.nix449+++ b/hosts/tatooine/services/avahi.nix450@@ -21,19 +21,19 @@451 452 settings = {453 publish = {454- publish-domain = true;455- disable-publishing = false;456- disable-user-service-publishing = false;457- publish-addresses = true;458- };459+ publish-domain = true;460+ disable-publishing = false;461+ disable-user-service-publishing = false;462+ publish-addresses = true;463+ };464 465 server = {466 use-ipv6 = false; # bug with multiple hostnames467- # # 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.468- # # secrets.jedha.hostname;469- # # host-name = "jedha";470- # # enable-dbus = true;471- #472+ # # 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.473+ # # secrets.jedha.hostname;474+ # # host-name = "jedha";475+ # # enable-dbus = true;476+ #477 };478 };479 480diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix481index 0c082b6..58d9c85 100644482--- a/hosts/tatooine/services/pulseaudio.nix483+++ b/hosts/tatooine/services/pulseaudio.nix484@@ -1,9 +1,8 @@485 { pkgs, ... }:486- # cant be enabled with pipewire487- {488- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false489- enable = false;490- # for ad2p profle ?491- package = pkgs.pulseaudioFull;492- }493-494+# cant be enabled with pipewire495+{496+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false497+ enable = false;498+ # for ad2p profle ?499+ package = pkgs.pulseaudioFull;500+}501diff --git a/justfile b/justfile502index b191e24..c8b0263 100644503--- a/justfile504+++ b/justfile505@@ -65,7 +65,7 @@ bootstrap-vps target:506 --debug507 508 bump-meli:509- nix-update -F --version=branch=master meli-teto510+ nix-update -F --version=branch=master meli-teto511 512 # just to save the command513 514diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix515index 3820510..e4bca1c 100644516--- a/nixos/profiles/adguardhome.nix517+++ b/nixos/profiles/adguardhome.nix518@@ -9,7 +9,6 @@519 # mutableSettings = true;520 # openFirewall = false;521 522-523 # mutableSettings = true;524 # extraArgs = [];525 526diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix527index 3c1971b..ea3fa0f 100644528--- a/nixos/profiles/avahi.nix529+++ b/nixos/profiles/avahi.nix530@@ -25,7 +25,7 @@531 532 server = {533 534- # List of non-local DNS domains to be browsed.535+ # List of non-local DNS domains to be browsed.536 browse-domains = [537 # "0pointer.de"538 # "zeroconf.org"539diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix540index 3f9282d..9039e39 100644541--- a/nixos/profiles/desktop/programs/flyline.nix542+++ b/nixos/profiles/desktop/programs/flyline.nix543@@ -1,5 +1,5 @@544 {545 enable = true;546- # 547+ #548 # package = ;549 }