treefmt-check
checks.x86_64-linux.formatting
· build #37
· raw
1treefmt v2.6.0traversed 1596 files2emitted 852 files for processing3formatted 852 files (12 changed) in 1.202s4 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/opentelemetry-collector.nix12 M hosts/jedha/systemd.nix13 M justfile14 M nixos/profiles/avahi.nix15 M nixos/profiles/desktop/programs/flyline.nix16diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh17index 86ce9b0..e6ef1a9 10064418--- a/config/bash/flyline.sh19+++ b/config/bash/flyline.sh20@@ -8,12 +8,11 @@ flyline history --backend flyline21 22 flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 223 24-# Codex: change 25+# Codex: change26 flyline set-agent-mode \27- --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. " \28- --trigger-prefix ': ' \29- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'30-31+ --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. " \32+ --trigger-prefix ': ' \33+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'34 35 # Antigravity:36 # flyline set-agent-mode \37@@ -24,7 +23,6 @@ flyline set-agent-mode \38 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"39 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR40 41-42 # precmd_functions+=(set_ps1)43 # Now you can use this animation in your prompt. For example:44 PS1='\u@\h:\w MOUSE_MODE \n$ '45@@ -47,8 +45,7 @@ PROMPT_RULER_FINAL=''46 # flyline settings vim_mode true47 # flyline vim_mode48 49-flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽50-51+flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽52 53 # This replaces any instance of "john" with the animation, so it will animate every time "john" appears in the prompt.54 # flyline create-prompt-widget animation --name "john" --ping-pong --fps 8 \55@@ -62,7 +59,6 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 56 # john \57 # john58 59-60 # Experiment with higher frame rates for smooth transitions:61 # flyline create-prompt-widget animation --name "john" --fps 24 \62 # '\e[38;2;255;0;0m\u' \63@@ -128,4 +124,4 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 64 # '\e[38;2;255;0;63m\u' \65 # '\e[38;2;255;0;47m\u' \66 # '\e[38;2;255;0;31m\u' \67-# '\e[38;2;255;0;15m\u' 68+# '\e[38;2;255;0;15m\u'69diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua70index 69b09f5..4d9576f 10064471--- a/config/nvim/lua/init-manual.lua72+++ b/config/nvim/lua/init-manual.lua73@@ -1356,4 +1356,3 @@ vim.api.nvim_create_autocmd({ 'User' }, {74 -- end)75 end,76 })77-78diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix79index 6445766..6519b93 10064480--- a/hm/profiles/teto-desktop/default.nix81+++ b/hm/profiles/teto-desktop/default.nix82@@ -112,7 +112,7 @@ in83 84 home.packages =85 with pkgs;86- let 87+ let88 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;89 90 # lux-cli-teto = lux-cli;91@@ -172,7 +172,6 @@ in92 # kaggle # kaggle interface93 # python3Packages.kaggle94 95-96 sonic-pi97 stow98 systemctl-tui99diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix100index be52e45..f9d09d8 100644101--- a/hm/profiles/teto-desktop/programs/rofi.nix102+++ b/hm/profiles/teto-desktop/programs/rofi.nix103@@ -37,8 +37,8 @@104 105 location = "center";106 modes = [107- # modes: [ combi ];108- # combi-modes: [ window, drun, run ];109+ # modes: [ combi ];110+ # combi-modes: [ window, drun, run ];111 112 ];113 114diff --git a/hm/profiles/teto-desktop/services/mpd.nix b/hm/profiles/teto-desktop/services/mpd.nix115index fe2532e..140a36d 100644116--- a/hm/profiles/teto-desktop/services/mpd.nix117+++ b/hm/profiles/teto-desktop/services/mpd.nix118@@ -12,11 +12,11 @@119 listenAddress = "any";120 };121 122- # where 123- # audio_output {124- # type "pipewire"125- # name "PipeWire Sound Server"126- # }127+ # where128+ # audio_output {129+ # type "pipewire"130+ # name "PipeWire Sound Server"131+ # }132 extraConfig = ''133 include "${config.xdg.configHome}/mpd/manual.conf"134 '';135diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix136index 0dad1af..11dd2ad 100644137--- a/hm/profiles/teto-desktop/xdg/default.nix138+++ b/hm/profiles/teto-desktop/xdg/default.nix139@@ -101,12 +101,12 @@140 "bash/bashrc".text = ''141 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"142 source "$script_dir/manual.sh"143- ''144- # check if flyline defined too ?145- + lib.optionalString osConfig.programs.flyline.enable '' 146- source "$script_dir/flyline.sh"147+ ''148+ # check if flyline defined too ?149+ + lib.optionalString osConfig.programs.flyline.enable ''150+ source "$script_dir/flyline.sh"151 152- '';153+ '';154 155 "nvim/lua/generated-by-nix.lua" =156 let157diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix158index d71a01b..3dd64ae 100644159--- a/hosts/jedha/services/avahi.nix160+++ b/hosts/jedha/services/avahi.nix161@@ -30,13 +30,12 @@162 };163 164 publish = {165- disable-publishing = false;166- disable-user-service-publishing = false;167- publish-addresses = true;168- };169-170+ disable-publishing = false;171+ disable-user-service-publishing = false;172+ publish-addresses = true;173 };174 175+ };176 177 nssmdns4 = true;178 # publish = {179diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix180index 28cc3b4..1d1609c 100644181--- a/hosts/jedha/services/opentelemetry-collector.nix182+++ b/hosts/jedha/services/opentelemetry-collector.nix183@@ -1,23 +1,22 @@184 {185 186-187 enable = true;188 189 settings =190-let191- port = 4318;192-in193+ let194+ port = 4318;195+ in196 {197- exporters.debug.verbosity = "detailed";198- receivers.otlp.protocols = {199- http.endpoint = "0.0.0.0:${toString port}";200- };201- service = {202- pipelines.logs = {203- receivers = [ "otlp" ];204- exporters = [ "debug" ];205- };206- };207+ exporters.debug.verbosity = "detailed";208+ receivers.otlp.protocols = {209+ http.endpoint = "0.0.0.0:${toString port}";210+ };211+ service = {212+ pipelines.logs = {213+ receivers = [ "otlp" ];214+ exporters = [ "debug" ];215+ };216+ };217 218- };219+ };220 }221diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix222index 6ef8309..b01e4e0 100644223--- a/hosts/jedha/systemd.nix224+++ b/hosts/jedha/systemd.nix225@@ -33,61 +33,60 @@ in226 netdata.path = [ pkgs.linuxPackages.nvidia_x11 ];227 })228 (lib.mkIf true {229- ha-mcp = {230- description = "Home Assistant MCP server";231- wantedBy = [ "multi-user.target" ];232- wants = [ "network-online.target" ];233- after = [ "network-online.target" ];234- environment = {235- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";236- HOME = "/var/lib/ha-mcp";237- MCP_HOST = "127.0.0.1";238- MCP_PORT = "8086";239- };240- serviceConfig = {241- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";242- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.243- EnvironmentFile = "/var/lib/ha-mcp/environment";244- DynamicUser = true;245- StateDirectory = "ha-mcp";246- WorkingDirectory = "/var/lib/ha-mcp";247- Restart = "on-failure";248- RestartSec = 5;249- UMask = "0077";250- };251+ ha-mcp = {252+ description = "Home Assistant MCP server";253+ wantedBy = [ "multi-user.target" ];254+ wants = [ "network-online.target" ];255+ after = [ "network-online.target" ];256+ environment = {257+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";258+ HOME = "/var/lib/ha-mcp";259+ MCP_HOST = "127.0.0.1";260+ MCP_PORT = "8086";261 };262+ serviceConfig = {263+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";264+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.265+ EnvironmentFile = "/var/lib/ha-mcp/environment";266+ DynamicUser = true;267+ StateDirectory = "ha-mcp";268+ WorkingDirectory = "/var/lib/ha-mcp";269+ Restart = "on-failure";270+ RestartSec = 5;271+ UMask = "0077";272+ };273+ };274 275- # copied from https://github.com/NixOS/nixpkgs/pull/544252276- # lib.recursiveUpdate slib.systemd.serviceDefaults {277- speech-to-phrase = {278- # after = [ "home-assistant.service" ];279- script = lib.concatStringsSep " " [280- (lib.getExe pkgs.speech-to-phrase)281- "--models-dir"282- "\"$STATE_DIRECTORY/models\""283- "--train-dir"284- "\"$STATE_DIRECTORY/train\""285- # "--custom-sentences-dir" ""286- "--uri 'tcp://127.0.0.1:10400'"287- "--hass-websocket-uri"288- "ws://${hassHost}:${toString hassPort}/api/websocket"289- "--retrain-on-start"290- "--retrain-on-connect"291- "--retrain-seconds"292- "300"293- ];294- serviceConfig = {295- #296- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;297- Group = "speech-to-phrase";298- StateDirectory = "speech-to-phrase";299- User = "speech-to-phrase";300- # TODO: hardening301- };302+ # copied from https://github.com/NixOS/nixpkgs/pull/544252303+ # lib.recursiveUpdate slib.systemd.serviceDefaults {304+ speech-to-phrase = {305+ # after = [ "home-assistant.service" ];306+ script = lib.concatStringsSep " " [307+ (lib.getExe pkgs.speech-to-phrase)308+ "--models-dir"309+ "\"$STATE_DIRECTORY/models\""310+ "--train-dir"311+ "\"$STATE_DIRECTORY/train\""312+ # "--custom-sentences-dir" ""313+ "--uri 'tcp://127.0.0.1:10400'"314+ "--hass-websocket-uri"315+ "ws://${hassHost}:${toString hassPort}/api/websocket"316+ "--retrain-on-start"317+ "--retrain-on-connect"318+ "--retrain-seconds"319+ "300"320+ ];321+ serviceConfig = {322+ #323+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;324+ Group = "speech-to-phrase";325+ StateDirectory = "speech-to-phrase";326+ User = "speech-to-phrase";327+ # TODO: hardening328 };329+ };330 331- }332- )333+ })334 ];335 336 # just to test337diff --git a/justfile b/justfile338index b191e24..c8b0263 100644339--- a/justfile340+++ b/justfile341@@ -65,7 +65,7 @@ bootstrap-vps target:342 --debug343 344 bump-meli:345- nix-update -F --version=branch=master meli-teto346+ nix-update -F --version=branch=master meli-teto347 348 # just to save the command349 350diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix351index 3c1971b..ea3fa0f 100644352--- a/nixos/profiles/avahi.nix353+++ b/nixos/profiles/avahi.nix354@@ -25,7 +25,7 @@355 356 server = {357 358- # List of non-local DNS domains to be browsed.359+ # List of non-local DNS domains to be browsed.360 browse-domains = [361 # "0pointer.de"362 # "zeroconf.org"363diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix364index 3f9282d..9039e39 100644365--- a/nixos/profiles/desktop/programs/flyline.nix366+++ b/nixos/profiles/desktop/programs/flyline.nix367@@ -1,5 +1,5 @@368 {369 enable = true;370- # 371+ #372 # package = ;373 }