nixbot

builds

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

1treefmt v2.6.0traversed 1597 files2emitted 853 files for processing3formatted 853 files (17 changed) in 1.504s4 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 hosts/tatooine/default.nix14 M hosts/tatooine/services/adguardhome.nix15 M hosts/tatooine/services/avahi.nix16 M hosts/tatooine/services/pulseaudio.nix17 M justfile18 M nixos/profiles/adguardhome.nix19 M nixos/profiles/avahi.nix20 M nixos/profiles/desktop/programs/flyline.nix21diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh22index 86ce9b0..e6ef1a9 10064423--- a/config/bash/flyline.sh24+++ b/config/bash/flyline.sh25@@ -8,12 +8,11 @@ flyline history --backend flyline26 27 flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 228 29-# Codex: change 30+# Codex: change31 flyline set-agent-mode \32- --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. " \33- --trigger-prefix ': ' \34- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'35-36+ --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. " \37+ --trigger-prefix ': ' \38+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'39 40 # Antigravity:41 # flyline set-agent-mode \42@@ -24,7 +23,6 @@ flyline set-agent-mode \43 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"44 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR45 46-47 # precmd_functions+=(set_ps1)48 # Now you can use this animation in your prompt. For example:49 PS1='\u@\h:\w MOUSE_MODE \n$ '50@@ -47,8 +45,7 @@ PROMPT_RULER_FINAL=''51 # flyline settings vim_mode true52 # flyline vim_mode53 54-flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽55-56+flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽57 58 # This replaces any instance of "john" with the animation, so it will animate every time "john" appears in the prompt.59 # flyline create-prompt-widget animation --name "john" --ping-pong --fps 8 \60@@ -62,7 +59,6 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 61 # john \62 # john63 64-65 # Experiment with higher frame rates for smooth transitions:66 # flyline create-prompt-widget animation --name "john" --fps 24 \67 # '\e[38;2;255;0;0m\u' \68@@ -128,4 +124,4 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ 69 # '\e[38;2;255;0;63m\u' \70 # '\e[38;2;255;0;47m\u' \71 # '\e[38;2;255;0;31m\u' \72-# '\e[38;2;255;0;15m\u' 73+# '\e[38;2;255;0;15m\u'74diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua75index 69b09f5..4d9576f 10064476--- a/config/nvim/lua/init-manual.lua77+++ b/config/nvim/lua/init-manual.lua78@@ -1356,4 +1356,3 @@ vim.api.nvim_create_autocmd({ 'User' }, {79 -- end)80 end,81 })82-83diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix84index 6445766..6519b93 10064485--- a/hm/profiles/teto-desktop/default.nix86+++ b/hm/profiles/teto-desktop/default.nix87@@ -112,7 +112,7 @@ in88 89 home.packages =90 with pkgs;91- let 92+ let93 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;94 95 # lux-cli-teto = lux-cli;96@@ -172,7 +172,6 @@ in97 # kaggle # kaggle interface98 # python3Packages.kaggle99 100-101 sonic-pi102 stow103 systemctl-tui104diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix105index be52e45..f9d09d8 100644106--- a/hm/profiles/teto-desktop/programs/rofi.nix107+++ b/hm/profiles/teto-desktop/programs/rofi.nix108@@ -37,8 +37,8 @@109 110 location = "center";111 modes = [112- # modes: [ combi ];113- # combi-modes: [ window, drun, run ];114+ # modes: [ combi ];115+ # combi-modes: [ window, drun, run ];116 117 ];118 119diff --git a/hm/profiles/teto-desktop/services/mpd.nix b/hm/profiles/teto-desktop/services/mpd.nix120index fe2532e..140a36d 100644121--- a/hm/profiles/teto-desktop/services/mpd.nix122+++ b/hm/profiles/teto-desktop/services/mpd.nix123@@ -12,11 +12,11 @@124 listenAddress = "any";125 };126 127- # where 128- # audio_output {129- # type "pipewire"130- # name "PipeWire Sound Server"131- # }132+ # where133+ # audio_output {134+ # type "pipewire"135+ # name "PipeWire Sound Server"136+ # }137 extraConfig = ''138 include "${config.xdg.configHome}/mpd/manual.conf"139 '';140diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix141index 0dad1af..11dd2ad 100644142--- a/hm/profiles/teto-desktop/xdg/default.nix143+++ b/hm/profiles/teto-desktop/xdg/default.nix144@@ -101,12 +101,12 @@145 "bash/bashrc".text = ''146 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"147 source "$script_dir/manual.sh"148- ''149- # check if flyline defined too ?150- + lib.optionalString osConfig.programs.flyline.enable '' 151- source "$script_dir/flyline.sh"152+ ''153+ # check if flyline defined too ?154+ + lib.optionalString osConfig.programs.flyline.enable ''155+ source "$script_dir/flyline.sh"156 157- '';158+ '';159 160 "nvim/lua/generated-by-nix.lua" =161 let162diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix163index d71a01b..3dd64ae 100644164--- a/hosts/jedha/services/avahi.nix165+++ b/hosts/jedha/services/avahi.nix166@@ -30,13 +30,12 @@167 };168 169 publish = {170- disable-publishing = false;171- disable-user-service-publishing = false;172- publish-addresses = true;173- };174-175+ disable-publishing = false;176+ disable-user-service-publishing = false;177+ publish-addresses = true;178 };179 180+ };181 182 nssmdns4 = true;183 # publish = {184diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix185index 28cc3b4..1d1609c 100644186--- a/hosts/jedha/services/opentelemetry-collector.nix187+++ b/hosts/jedha/services/opentelemetry-collector.nix188@@ -1,23 +1,22 @@189 {190 191-192 enable = true;193 194 settings =195-let196- port = 4318;197-in198+ let199+ port = 4318;200+ in201 {202- exporters.debug.verbosity = "detailed";203- receivers.otlp.protocols = {204- http.endpoint = "0.0.0.0:${toString port}";205- };206- service = {207- pipelines.logs = {208- receivers = [ "otlp" ];209- exporters = [ "debug" ];210- };211- };212+ exporters.debug.verbosity = "detailed";213+ receivers.otlp.protocols = {214+ http.endpoint = "0.0.0.0:${toString port}";215+ };216+ service = {217+ pipelines.logs = {218+ receivers = [ "otlp" ];219+ exporters = [ "debug" ];220+ };221+ };222 223- };224+ };225 }226diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix227index 6ef8309..b01e4e0 100644228--- a/hosts/jedha/systemd.nix229+++ b/hosts/jedha/systemd.nix230@@ -33,61 +33,60 @@ in231 netdata.path = [ pkgs.linuxPackages.nvidia_x11 ];232 })233 (lib.mkIf true {234- ha-mcp = {235- description = "Home Assistant MCP server";236- wantedBy = [ "multi-user.target" ];237- wants = [ "network-online.target" ];238- after = [ "network-online.target" ];239- environment = {240- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";241- HOME = "/var/lib/ha-mcp";242- MCP_HOST = "127.0.0.1";243- MCP_PORT = "8086";244- };245- serviceConfig = {246- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";247- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.248- EnvironmentFile = "/var/lib/ha-mcp/environment";249- DynamicUser = true;250- StateDirectory = "ha-mcp";251- WorkingDirectory = "/var/lib/ha-mcp";252- Restart = "on-failure";253- RestartSec = 5;254- UMask = "0077";255- };256+ ha-mcp = {257+ description = "Home Assistant MCP server";258+ wantedBy = [ "multi-user.target" ];259+ wants = [ "network-online.target" ];260+ after = [ "network-online.target" ];261+ environment = {262+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";263+ HOME = "/var/lib/ha-mcp";264+ MCP_HOST = "127.0.0.1";265+ MCP_PORT = "8086";266 };267+ serviceConfig = {268+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";269+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.270+ EnvironmentFile = "/var/lib/ha-mcp/environment";271+ DynamicUser = true;272+ StateDirectory = "ha-mcp";273+ WorkingDirectory = "/var/lib/ha-mcp";274+ Restart = "on-failure";275+ RestartSec = 5;276+ UMask = "0077";277+ };278+ };279 280- # copied from https://github.com/NixOS/nixpkgs/pull/544252281- # lib.recursiveUpdate slib.systemd.serviceDefaults {282- speech-to-phrase = {283- # after = [ "home-assistant.service" ];284- script = lib.concatStringsSep " " [285- (lib.getExe pkgs.speech-to-phrase)286- "--models-dir"287- "\"$STATE_DIRECTORY/models\""288- "--train-dir"289- "\"$STATE_DIRECTORY/train\""290- # "--custom-sentences-dir" ""291- "--uri 'tcp://127.0.0.1:10400'"292- "--hass-websocket-uri"293- "ws://${hassHost}:${toString hassPort}/api/websocket"294- "--retrain-on-start"295- "--retrain-on-connect"296- "--retrain-seconds"297- "300"298- ];299- serviceConfig = {300- #301- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;302- Group = "speech-to-phrase";303- StateDirectory = "speech-to-phrase";304- User = "speech-to-phrase";305- # TODO: hardening306- };307+ # copied from https://github.com/NixOS/nixpkgs/pull/544252308+ # lib.recursiveUpdate slib.systemd.serviceDefaults {309+ speech-to-phrase = {310+ # after = [ "home-assistant.service" ];311+ script = lib.concatStringsSep " " [312+ (lib.getExe pkgs.speech-to-phrase)313+ "--models-dir"314+ "\"$STATE_DIRECTORY/models\""315+ "--train-dir"316+ "\"$STATE_DIRECTORY/train\""317+ # "--custom-sentences-dir" ""318+ "--uri 'tcp://127.0.0.1:10400'"319+ "--hass-websocket-uri"320+ "ws://${hassHost}:${toString hassPort}/api/websocket"321+ "--retrain-on-start"322+ "--retrain-on-connect"323+ "--retrain-seconds"324+ "300"325+ ];326+ serviceConfig = {327+ #328+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;329+ Group = "speech-to-phrase";330+ StateDirectory = "speech-to-phrase";331+ User = "speech-to-phrase";332+ # TODO: hardening333 };334+ };335 336- }337- )338+ })339 ];340 341 # just to test342diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix343index 8cbae35..3c41972 100644344--- a/hosts/tatooine/default.nix345+++ b/hosts/tatooine/default.nix346@@ -132,7 +132,6 @@ in347 enableRedistributableFirmware = true;348 sane.enable = true;349 350-351 # High quality BT calls352 # https://nixos.wiki/wiki/Bluetooth353 bluetooth = {354diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix355index adc82dd..1724c86 100644356--- a/hosts/tatooine/services/adguardhome.nix357+++ b/hosts/tatooine/services/adguardhome.nix358@@ -10,7 +10,7 @@359 settings = {360 361 # http (since v0.107.36): Web interface configuration.362- # address: Web interface IP address with port to listen on 363+ # address: Web interface IP address with port to listen on364 http.address = "127.0.0.1:8084";365 366 };367diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix368index dd02f3f..f14c221 100644369--- a/hosts/tatooine/services/avahi.nix370+++ b/hosts/tatooine/services/avahi.nix371@@ -21,19 +21,19 @@372 373 settings = {374 publish = {375- publish-domain = true;376- disable-publishing = false;377- disable-user-service-publishing = false;378- publish-addresses = true;379- };380+ publish-domain = true;381+ disable-publishing = false;382+ disable-user-service-publishing = false;383+ publish-addresses = true;384+ };385 386 server = {387 use-ipv6 = false; # bug with multiple hostnames388- # # 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.389- # # secrets.jedha.hostname;390- # # host-name = "jedha";391- # # enable-dbus = true;392- #393+ # # 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.394+ # # secrets.jedha.hostname;395+ # # host-name = "jedha";396+ # # enable-dbus = true;397+ #398 };399 };400 401diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix402index 0c082b6..58d9c85 100644403--- a/hosts/tatooine/services/pulseaudio.nix404+++ b/hosts/tatooine/services/pulseaudio.nix405@@ -1,9 +1,8 @@406 { pkgs, ... }:407- # cant be enabled with pipewire408- {409- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false410- enable = false;411- # for ad2p profle ?412- package = pkgs.pulseaudioFull;413- }414-415+# cant be enabled with pipewire416+{417+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false418+ enable = false;419+ # for ad2p profle ?420+ package = pkgs.pulseaudioFull;421+}422diff --git a/justfile b/justfile423index b191e24..c8b0263 100644424--- a/justfile425+++ b/justfile426@@ -65,7 +65,7 @@ bootstrap-vps target:427 --debug428 429 bump-meli:430- nix-update -F --version=branch=master meli-teto431+ nix-update -F --version=branch=master meli-teto432 433 # just to save the command434 435diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix436index 3820510..e4bca1c 100644437--- a/nixos/profiles/adguardhome.nix438+++ b/nixos/profiles/adguardhome.nix439@@ -9,7 +9,6 @@440 # mutableSettings = true;441 # openFirewall = false;442 443-444 # mutableSettings = true;445 # extraArgs = [];446 447diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix448index 3c1971b..ea3fa0f 100644449--- a/nixos/profiles/avahi.nix450+++ b/nixos/profiles/avahi.nix451@@ -25,7 +25,7 @@452 453 server = {454 455- # List of non-local DNS domains to be browsed.456+ # List of non-local DNS domains to be browsed.457 browse-domains = [458 # "0pointer.de"459 # "zeroconf.org"460diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix461index 3f9282d..9039e39 100644462--- a/nixos/profiles/desktop/programs/flyline.nix463+++ b/nixos/profiles/desktop/programs/flyline.nix464@@ -1,5 +1,5 @@465 {466 enable = true;467- # 468+ #469 # package = ;470 }