nixbot

builds

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

1treefmt v2.6.0traversed 1600 files2emitted 856 files for processing3formatted 856 files (21 changed) in 1.518s4 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/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 86ce9b0..e6ef1a9 10064447--- a/config/bash/flyline.sh48+++ b/config/bash/flyline.sh49@@ -8,12 +8,11 @@ flyline history --backend flyline50 51 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@@ -24,7 +23,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@@ -47,8 +45,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@@ -62,7 +59,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@@ -128,4 +124,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/services/avahi.nix b/hosts/jedha/services/avahi.nix216index d71a01b..3dd64ae 100644217--- a/hosts/jedha/services/avahi.nix218+++ b/hosts/jedha/services/avahi.nix219@@ -30,13 +30,12 @@220 };221 222 publish = {223- disable-publishing = false;224- disable-user-service-publishing = false;225- publish-addresses = true;226- };227-228+ disable-publishing = false;229+ disable-user-service-publishing = false;230+ publish-addresses = true;231 };232 233+ };234 235 nssmdns4 = true;236 # publish = {237diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix238index 0ea64f9..9b1b770 100644239--- a/hosts/jedha/services/minidlna.nix240+++ b/hosts/jedha/services/minidlna.nix241@@ -7,7 +7,6 @@242 # announceInterval = 60;243 openFirewall = true;244 245-246 # there are udp errors when it binds to wireguard network ?247 248 settings = {249@@ -16,9 +15,9 @@250 friendly_name = "jedha";251 # inotify = "yes";252 log_level = "warn";253- media_dir = [ 254+ media_dir = [255 # can be prefixed with V/A, to filter audio/video256- "/mnt/ext/music" 257+ "/mnt/ext/music"258 ];259 inotify = "yes";260 # db_dir =261diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix262index 28cc3b4..1d1609c 100644263--- a/hosts/jedha/services/opentelemetry-collector.nix264+++ b/hosts/jedha/services/opentelemetry-collector.nix265@@ -1,23 +1,22 @@266 {267 268-269 enable = true;270 271 settings =272-let273- port = 4318;274-in275+ let276+ port = 4318;277+ in278 {279- exporters.debug.verbosity = "detailed";280- receivers.otlp.protocols = {281- http.endpoint = "0.0.0.0:${toString port}";282- };283- service = {284- pipelines.logs = {285- receivers = [ "otlp" ];286- exporters = [ "debug" ];287- };288- };289+ exporters.debug.verbosity = "detailed";290+ receivers.otlp.protocols = {291+ http.endpoint = "0.0.0.0:${toString port}";292+ };293+ service = {294+ pipelines.logs = {295+ receivers = [ "otlp" ];296+ exporters = [ "debug" ];297+ };298+ };299 300- };301+ };302 }303diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix304index 4a1fff6..22f1d06 100644305--- a/hosts/jedha/services/upmpdcli.nix306+++ b/hosts/jedha/services/upmpdcli.nix307@@ -1,27 +1,24 @@308 {309- enable = true;310- configuration = {311- # see https://man.archlinux.org/man/upmpdcli.conf.5.en312- friendlyname = "UpMpd";313- mpdhost = "127.0.0.1";314+ enable = true;315+ configuration = {316+ # see https://man.archlinux.org/man/upmpdcli.conf.5.en317+ friendlyname = "UpMpd";318+ mpdhost = "127.0.0.1";319 320- 321- # whether we own mpd queue (default to true)322- ownqueue = 1;323+ # whether we own mpd queue (default to true)324+ ownqueue = 1;325 326- 327- mpdport = 6600;328- # mpdpassword = ;329- # 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.330- openhome = 1;331- upnpav = 1;332- 333- 334- useipv6 = 0;335- # use all336- upnpiface = "*";337- loglevel = 4;338- # 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.339- upnpport = 49152;340- };341- }342+ mpdport = 6600;343+ # mpdpassword = ;344+ # 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.345+ openhome = 1;346+ upnpav = 1;347+348+ useipv6 = 0;349+ # use all350+ upnpiface = "*";351+ loglevel = 4;352+ # 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.353+ upnpport = 49152;354+ };355+}356diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix357index 59d7129..e0cab47 100644358--- a/hosts/jedha/systemd.nix359+++ b/hosts/jedha/systemd.nix360@@ -34,61 +34,60 @@ in361 })362 # disabled because ha-mcp broken363 (lib.mkIf false {364- ha-mcp = {365- description = "Home Assistant MCP server";366- wantedBy = [ "multi-user.target" ];367- wants = [ "network-online.target" ];368- after = [ "network-online.target" ];369- environment = {370- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";371- HOME = "/var/lib/ha-mcp";372- MCP_HOST = "127.0.0.1";373- MCP_PORT = "8086";374- };375- serviceConfig = {376- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";377- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.378- EnvironmentFile = "/var/lib/ha-mcp/environment";379- DynamicUser = true;380- StateDirectory = "ha-mcp";381- WorkingDirectory = "/var/lib/ha-mcp";382- Restart = "on-failure";383- RestartSec = 5;384- UMask = "0077";385- };386+ ha-mcp = {387+ description = "Home Assistant MCP server";388+ wantedBy = [ "multi-user.target" ];389+ wants = [ "network-online.target" ];390+ after = [ "network-online.target" ];391+ environment = {392+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";393+ HOME = "/var/lib/ha-mcp";394+ MCP_HOST = "127.0.0.1";395+ MCP_PORT = "8086";396 };397+ serviceConfig = {398+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";399+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.400+ EnvironmentFile = "/var/lib/ha-mcp/environment";401+ DynamicUser = true;402+ StateDirectory = "ha-mcp";403+ WorkingDirectory = "/var/lib/ha-mcp";404+ Restart = "on-failure";405+ RestartSec = 5;406+ UMask = "0077";407+ };408+ };409 410- # copied from https://github.com/NixOS/nixpkgs/pull/544252411- # lib.recursiveUpdate slib.systemd.serviceDefaults {412- speech-to-phrase = {413- # after = [ "home-assistant.service" ];414- script = lib.concatStringsSep " " [415- (lib.getExe pkgs.speech-to-phrase)416- "--models-dir"417- "\"$STATE_DIRECTORY/models\""418- "--train-dir"419- "\"$STATE_DIRECTORY/train\""420- # "--custom-sentences-dir" ""421- "--uri 'tcp://127.0.0.1:10400'"422- "--hass-websocket-uri"423- "ws://${hassHost}:${toString hassPort}/api/websocket"424- "--retrain-on-start"425- "--retrain-on-connect"426- "--retrain-seconds"427- "300"428- ];429- serviceConfig = {430- #431- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;432- Group = "speech-to-phrase";433- StateDirectory = "speech-to-phrase";434- User = "speech-to-phrase";435- # TODO: hardening436- };437+ # copied from https://github.com/NixOS/nixpkgs/pull/544252438+ # lib.recursiveUpdate slib.systemd.serviceDefaults {439+ speech-to-phrase = {440+ # after = [ "home-assistant.service" ];441+ script = lib.concatStringsSep " " [442+ (lib.getExe pkgs.speech-to-phrase)443+ "--models-dir"444+ "\"$STATE_DIRECTORY/models\""445+ "--train-dir"446+ "\"$STATE_DIRECTORY/train\""447+ # "--custom-sentences-dir" ""448+ "--uri 'tcp://127.0.0.1:10400'"449+ "--hass-websocket-uri"450+ "ws://${hassHost}:${toString hassPort}/api/websocket"451+ "--retrain-on-start"452+ "--retrain-on-connect"453+ "--retrain-seconds"454+ "300"455+ ];456+ serviceConfig = {457+ #458+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;459+ Group = "speech-to-phrase";460+ StateDirectory = "speech-to-phrase";461+ User = "speech-to-phrase";462+ # TODO: hardening463 };464+ };465 466- }467- )468+ })469 ];470 471 # just to test472diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix473index 8cbae35..3c41972 100644474--- a/hosts/tatooine/default.nix475+++ b/hosts/tatooine/default.nix476@@ -132,7 +132,6 @@ in477 enableRedistributableFirmware = true;478 sane.enable = true;479 480-481 # High quality BT calls482 # https://nixos.wiki/wiki/Bluetooth483 bluetooth = {484diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix485index adc82dd..1724c86 100644486--- a/hosts/tatooine/services/adguardhome.nix487+++ b/hosts/tatooine/services/adguardhome.nix488@@ -10,7 +10,7 @@489 settings = {490 491 # http (since v0.107.36): Web interface configuration.492- # address: Web interface IP address with port to listen on 493+ # address: Web interface IP address with port to listen on494 http.address = "127.0.0.1:8084";495 496 };497diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix498index dd02f3f..f14c221 100644499--- a/hosts/tatooine/services/avahi.nix500+++ b/hosts/tatooine/services/avahi.nix501@@ -21,19 +21,19 @@502 503 settings = {504 publish = {505- publish-domain = true;506- disable-publishing = false;507- disable-user-service-publishing = false;508- publish-addresses = true;509- };510+ publish-domain = true;511+ disable-publishing = false;512+ disable-user-service-publishing = false;513+ publish-addresses = true;514+ };515 516 server = {517 use-ipv6 = false; # bug with multiple hostnames518- # # 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.519- # # secrets.jedha.hostname;520- # # host-name = "jedha";521- # # enable-dbus = true;522- #523+ # # 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.524+ # # secrets.jedha.hostname;525+ # # host-name = "jedha";526+ # # enable-dbus = true;527+ #528 };529 };530 531diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix532index 0c082b6..58d9c85 100644533--- a/hosts/tatooine/services/pulseaudio.nix534+++ b/hosts/tatooine/services/pulseaudio.nix535@@ -1,9 +1,8 @@536 { pkgs, ... }:537- # cant be enabled with pipewire538- {539- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false540- enable = false;541- # for ad2p profle ?542- package = pkgs.pulseaudioFull;543- }544-545+# cant be enabled with pipewire546+{547+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false548+ enable = false;549+ # for ad2p profle ?550+ package = pkgs.pulseaudioFull;551+}552diff --git a/justfile b/justfile553index a87655b..456c53b 100644554--- a/justfile555+++ b/justfile556@@ -65,7 +65,7 @@ bootstrap-vps target:557 --debug558 559 bump-meli:560- nix-update -F --version=branch=master meli-teto561+ nix-update -F --version=branch=master meli-teto562 563 # just to save the command564 565@@ -321,7 +321,6 @@ inspect-current-generation:566 flash-ulanzi-tc001:567 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin568 569-570 # check dlna servers on the network571 scan-upnp:572 nmap --script=broadcast-upnp-info 192.168.0.0/16573diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix574index 3820510..e4bca1c 100644575--- a/nixos/profiles/adguardhome.nix576+++ b/nixos/profiles/adguardhome.nix577@@ -9,7 +9,6 @@578 # mutableSettings = true;579 # openFirewall = false;580 581-582 # mutableSettings = true;583 # extraArgs = [];584 585diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix586index 3c1971b..ea3fa0f 100644587--- a/nixos/profiles/avahi.nix588+++ b/nixos/profiles/avahi.nix589@@ -25,7 +25,7 @@590 591 server = {592 593- # List of non-local DNS domains to be browsed.594+ # List of non-local DNS domains to be browsed.595 browse-domains = [596 # "0pointer.de"597 # "zeroconf.org"598diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix599index 3f9282d..9039e39 100644600--- a/nixos/profiles/desktop/programs/flyline.nix601+++ b/nixos/profiles/desktop/programs/flyline.nix602@@ -1,5 +1,5 @@603 {604 enable = true;605- # 606+ #607 # package = ;608 }