treefmt v2.6.0traversed 1601 files emitted 857 files for processing formatted 857 files (21 changed) in 1.302s M by-name/ze/zeal-teto/package.nix M config/bash/flyline.sh M config/nvim/lua/init-manual.lua M hm/modules/package-sets.nix M hm/profiles/teto-desktop/default.nix M hm/profiles/teto-desktop/programs/rofi.nix M hm/profiles/teto-desktop/xdg/default.nix M hosts/jedha/default.nix M hosts/jedha/services/avahi.nix M hosts/jedha/services/minidlna.nix M hosts/jedha/services/opentelemetry-collector.nix M hosts/jedha/services/upmpdcli.nix M hosts/jedha/systemd.nix M hosts/tatooine/default.nix M hosts/tatooine/services/adguardhome.nix M hosts/tatooine/services/avahi.nix M hosts/tatooine/services/pulseaudio.nix M justfile M nixos/profiles/adguardhome.nix M nixos/profiles/avahi.nix M nixos/profiles/desktop/programs/flyline.nix diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix index 9442d75..a9d8692 100644 --- a/by-name/ze/zeal-teto/package.nix +++ b/by-name/ze/zeal-teto/package.nix @@ -1,10 +1,9 @@ { zeal }: zeal.overrideAttrs (oa: { - # export QMLSCENE_DEVICE=software - postInstall = '' - wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software - ''; - - }) + # export QMLSCENE_DEVICE=software + postInstall = '' + wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software + ''; +}) diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh index 7290cbb..8278c3b 100644 --- a/config/bash/flyline.sh +++ b/config/bash/flyline.sh @@ -10,12 +10,11 @@ flyline history --backend flyline # it flickers # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 2 -# Codex: change +# Codex: change flyline set-agent-mode \ - --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. " \ - --trigger-prefix ': ' \ - --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always' - + --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. " \ + --trigger-prefix ': ' \ + --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always' # Antigravity: # flyline set-agent-mode \ @@ -26,7 +25,6 @@ flyline set-agent-mode \ flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X" flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR - # precmd_functions+=(set_ps1) # Now you can use this animation in your prompt. For example: PS1='\u@\h:\w MOUSE_MODE \n$ ' @@ -49,8 +47,7 @@ PROMPT_RULER_FINAL='' # flyline settings vim_mode true # flyline vim_mode -flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽ - +flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽ # This replaces any instance of "john" with the animation, so it will animate every time "john" appears in the prompt. # flyline create-prompt-widget animation --name "john" --ping-pong --fps 8 \ @@ -64,7 +61,6 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ # john \ # john - # Experiment with higher frame rates for smooth transitions: # flyline create-prompt-widget animation --name "john" --fps 24 \ # '\e[38;2;255;0;0m\u' \ @@ -130,4 +126,4 @@ flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ # '\e[38;2;255;0;63m\u' \ # '\e[38;2;255;0;47m\u' \ # '\e[38;2;255;0;31m\u' \ -# '\e[38;2;255;0;15m\u' +# '\e[38;2;255;0;15m\u' diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua index 69b09f5..4d9576f 100644 --- a/config/nvim/lua/init-manual.lua +++ b/config/nvim/lua/init-manual.lua @@ -1356,4 +1356,3 @@ vim.api.nvim_create_autocmd({ 'User' }, { -- end) end, }) - diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix index a575687..48abec7 100644 --- a/hm/modules/package-sets.nix +++ b/hm/modules/package-sets.nix @@ -114,7 +114,6 @@ in pkgs.blazingjj flakeSelf.inputs.jj-gh.packages.${system}.default - # pkgs.gg-jj # pkgs.lazyjj # pkgs.jj-fzf @@ -415,7 +414,6 @@ in lurk # a rust strace lsof # to see open files - # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship libossp_uuid # for the 'libuuid' executable @@ -495,7 +493,7 @@ in tig tmux # when connecting via ssh universal-ctags # there are many different ctags, be careful ! - uv # to install python packages + uv # to install python packages unar # used to view archives by yazi (now using ouch ?) vifm viu # a console image viewer diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix index b00830c..a03128c 100644 --- a/hm/profiles/teto-desktop/default.nix +++ b/hm/profiles/teto-desktop/default.nix @@ -112,7 +112,7 @@ in home.packages = with pkgs; - let + let lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli; # lux-cli-teto = lux-cli; @@ -179,7 +179,6 @@ in # kaggle # kaggle interface # python3Packages.kaggle - sonic-pi stow systemctl-tui diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix index be52e45..f9d09d8 100644 --- a/hm/profiles/teto-desktop/programs/rofi.nix +++ b/hm/profiles/teto-desktop/programs/rofi.nix @@ -37,8 +37,8 @@ location = "center"; modes = [ - # modes: [ combi ]; - # combi-modes: [ window, drun, run ]; + # modes: [ combi ]; + # combi-modes: [ window, drun, run ]; ]; diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix index 0dad1af..11dd2ad 100644 --- a/hm/profiles/teto-desktop/xdg/default.nix +++ b/hm/profiles/teto-desktop/xdg/default.nix @@ -101,12 +101,12 @@ "bash/bashrc".text = '' script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)" source "$script_dir/manual.sh" - '' - # check if flyline defined too ? - + lib.optionalString osConfig.programs.flyline.enable '' - source "$script_dir/flyline.sh" + '' + # check if flyline defined too ? + + lib.optionalString osConfig.programs.flyline.enable '' + source "$script_dir/flyline.sh" - ''; + ''; "nvim/lua/generated-by-nix.lua" = let diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix index 77dae93..78c87ca 100644 --- a/hosts/jedha/default.nix +++ b/hosts/jedha/default.nix @@ -91,12 +91,20 @@ in # Upmpdcli's local-library server needs both discovery and HTTP access. networking.firewall = lib.mkIf config.services.upmpdcli.enable { allowedUDPPorts = [ 1900 ]; - allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ]; + allowedTCPPorts = with config.services.upmpdcli.configuration; [ + upnpport + uprclport + ]; }; systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable { # The library plugin launches recollindex; OpenHome uses Python and OpenSSL. - path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ]; + path = [ + pkgs.recoll + pkgs.python3 + pkgs.openssl + pkgs.diffutils + ]; unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ]; }; diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix index d71a01b..3dd64ae 100644 --- a/hosts/jedha/services/avahi.nix +++ b/hosts/jedha/services/avahi.nix @@ -30,13 +30,12 @@ }; publish = { - disable-publishing = false; - disable-user-service-publishing = false; - publish-addresses = true; - }; - + disable-publishing = false; + disable-user-service-publishing = false; + publish-addresses = true; }; + }; nssmdns4 = true; # publish = { diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix index 0ea64f9..9b1b770 100644 --- a/hosts/jedha/services/minidlna.nix +++ b/hosts/jedha/services/minidlna.nix @@ -7,7 +7,6 @@ # announceInterval = 60; openFirewall = true; - # there are udp errors when it binds to wireguard network ? settings = { @@ -16,9 +15,9 @@ friendly_name = "jedha"; # inotify = "yes"; log_level = "warn"; - media_dir = [ + media_dir = [ # can be prefixed with V/A, to filter audio/video - "/mnt/ext/music" + "/mnt/ext/music" ]; inotify = "yes"; # db_dir = diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix index 28cc3b4..1d1609c 100644 --- a/hosts/jedha/services/opentelemetry-collector.nix +++ b/hosts/jedha/services/opentelemetry-collector.nix @@ -1,23 +1,22 @@ { - enable = true; settings = -let - port = 4318; -in + let + port = 4318; + in { - exporters.debug.verbosity = "detailed"; - receivers.otlp.protocols = { - http.endpoint = "0.0.0.0:${toString port}"; - }; - service = { - pipelines.logs = { - receivers = [ "otlp" ]; - exporters = [ "debug" ]; - }; - }; + exporters.debug.verbosity = "detailed"; + receivers.otlp.protocols = { + http.endpoint = "0.0.0.0:${toString port}"; + }; + service = { + pipelines.logs = { + receivers = [ "otlp" ]; + exporters = [ "debug" ]; + }; + }; - }; + }; } diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix index 934c537..6198f53 100644 --- a/hosts/jedha/services/upmpdcli.nix +++ b/hosts/jedha/services/upmpdcli.nix @@ -1,12 +1,12 @@ /* -upmpdcli is a bridge: it receives UPnP commands and controls an MPD server. The UPnP player itself doesn’t play the song; MPD fetches and plays it. So when you choose a track in rmpd, it - should change playback if rmpd and upmpdcli are controlling the same MPD instance - - • MPD browsing UPnP servers: MPD has a built-in UPnP/DLNA database plugin (available in MPD 0.19+ configured with --enable-upnp) that lets MPD act as a client to browse and stream music from UPnP media servers. You browse the server's folder and directory trees using a standard MPD client, though direct tag-based queries (like artist/album/genre database searches) and saving playlists directly can have limitations. -• Using MPD as a UPnP Renderer (upmpdcli): If you want to send music from an external UPnP control point (such as BubbleUPnP on your phone) to MPD, you use a front-end like upmpdcli. In this setup, the control point talks UPnP to upmpdcli, which translates the commands into the MPD protocol to populate and control the local MPD playlist. + upmpdcli is a bridge: it receives UPnP commands and controls an MPD server. The UPnP player itself doesn’t play the song; MPD fetches and plays it. So when you choose a track in rmpd, it + should change playback if rmpd and upmpdcli are controlling the same MPD instance -mpd now has a plugin that can play music from upnp server -https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction + • MPD browsing UPnP servers: MPD has a built-in UPnP/DLNA database plugin (available in MPD 0.19+ configured with --enable-upnp) that lets MPD act as a client to browse and stream music from UPnP media servers. You browse the server's folder and directory trees using a standard MPD client, though direct tag-based queries (like artist/album/genre database searches) and saving playlists directly can have limitations. + • Using MPD as a UPnP Renderer (upmpdcli): If you want to send music from an external UPnP control point (such as BubbleUPnP on your phone) to MPD, you use a front-end like upmpdcli. In this setup, the control point talks UPnP to upmpdcli, which translates the commands into the MPD protocol to populate and control the local MPD playlist. + + mpd now has a plugin that can play music from upnp server + https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction */ { pkgs, lib, ... }: @@ -43,7 +43,7 @@ in mpdport = 6600; # try to see if I can control it myself ownqueue = 0; - # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo + # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo # control the playlist. The client can disconnect after playlist was created openhome = 0; upnpav = 1; diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix index 59d7129..e0cab47 100644 --- a/hosts/jedha/systemd.nix +++ b/hosts/jedha/systemd.nix @@ -34,61 +34,60 @@ in }) # disabled because ha-mcp broken (lib.mkIf false { - ha-mcp = { - description = "Home Assistant MCP server"; - wantedBy = [ "multi-user.target" ]; - wants = [ "network-online.target" ]; - after = [ "network-online.target" ]; - environment = { - HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}"; - HOME = "/var/lib/ha-mcp"; - MCP_HOST = "127.0.0.1"; - MCP_PORT = "8086"; - }; - serviceConfig = { - ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web"; - # Root-owned file containing HOMEASSISTANT_TOKEN=. - EnvironmentFile = "/var/lib/ha-mcp/environment"; - DynamicUser = true; - StateDirectory = "ha-mcp"; - WorkingDirectory = "/var/lib/ha-mcp"; - Restart = "on-failure"; - RestartSec = 5; - UMask = "0077"; - }; + ha-mcp = { + description = "Home Assistant MCP server"; + wantedBy = [ "multi-user.target" ]; + wants = [ "network-online.target" ]; + after = [ "network-online.target" ]; + environment = { + HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}"; + HOME = "/var/lib/ha-mcp"; + MCP_HOST = "127.0.0.1"; + MCP_PORT = "8086"; }; + serviceConfig = { + ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web"; + # Root-owned file containing HOMEASSISTANT_TOKEN=. + EnvironmentFile = "/var/lib/ha-mcp/environment"; + DynamicUser = true; + StateDirectory = "ha-mcp"; + WorkingDirectory = "/var/lib/ha-mcp"; + Restart = "on-failure"; + RestartSec = 5; + UMask = "0077"; + }; + }; - # copied from https://github.com/NixOS/nixpkgs/pull/544252 - # lib.recursiveUpdate slib.systemd.serviceDefaults { - speech-to-phrase = { - # after = [ "home-assistant.service" ]; - script = lib.concatStringsSep " " [ - (lib.getExe pkgs.speech-to-phrase) - "--models-dir" - "\"$STATE_DIRECTORY/models\"" - "--train-dir" - "\"$STATE_DIRECTORY/train\"" - # "--custom-sentences-dir" "" - "--uri 'tcp://127.0.0.1:10400'" - "--hass-websocket-uri" - "ws://${hassHost}:${toString hassPort}/api/websocket" - "--retrain-on-start" - "--retrain-on-connect" - "--retrain-seconds" - "300" - ]; - serviceConfig = { - # - # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path; - Group = "speech-to-phrase"; - StateDirectory = "speech-to-phrase"; - User = "speech-to-phrase"; - # TODO: hardening - }; + # copied from https://github.com/NixOS/nixpkgs/pull/544252 + # lib.recursiveUpdate slib.systemd.serviceDefaults { + speech-to-phrase = { + # after = [ "home-assistant.service" ]; + script = lib.concatStringsSep " " [ + (lib.getExe pkgs.speech-to-phrase) + "--models-dir" + "\"$STATE_DIRECTORY/models\"" + "--train-dir" + "\"$STATE_DIRECTORY/train\"" + # "--custom-sentences-dir" "" + "--uri 'tcp://127.0.0.1:10400'" + "--hass-websocket-uri" + "ws://${hassHost}:${toString hassPort}/api/websocket" + "--retrain-on-start" + "--retrain-on-connect" + "--retrain-seconds" + "300" + ]; + serviceConfig = { + # + # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path; + Group = "speech-to-phrase"; + StateDirectory = "speech-to-phrase"; + User = "speech-to-phrase"; + # TODO: hardening }; + }; - } - ) + }) ]; # just to test diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix index 8cbae35..3c41972 100644 --- a/hosts/tatooine/default.nix +++ b/hosts/tatooine/default.nix @@ -132,7 +132,6 @@ in enableRedistributableFirmware = true; sane.enable = true; - # High quality BT calls # https://nixos.wiki/wiki/Bluetooth bluetooth = { diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix index adc82dd..1724c86 100644 --- a/hosts/tatooine/services/adguardhome.nix +++ b/hosts/tatooine/services/adguardhome.nix @@ -10,7 +10,7 @@ settings = { # http (since v0.107.36): Web interface configuration. - # address: Web interface IP address with port to listen on + # address: Web interface IP address with port to listen on http.address = "127.0.0.1:8084"; }; diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix index dd02f3f..f14c221 100644 --- a/hosts/tatooine/services/avahi.nix +++ b/hosts/tatooine/services/avahi.nix @@ -21,19 +21,19 @@ settings = { publish = { - publish-domain = true; - disable-publishing = false; - disable-user-service-publishing = false; - publish-addresses = true; - }; + publish-domain = true; + disable-publishing = false; + disable-user-service-publishing = false; + publish-addresses = true; + }; server = { use-ipv6 = false; # bug with multiple hostnames - # # 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. - # # secrets.jedha.hostname; - # # host-name = "jedha"; - # # enable-dbus = true; - # + # # 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. + # # secrets.jedha.hostname; + # # host-name = "jedha"; + # # enable-dbus = true; + # }; }; diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix index 0c082b6..58d9c85 100644 --- a/hosts/tatooine/services/pulseaudio.nix +++ b/hosts/tatooine/services/pulseaudio.nix @@ -1,9 +1,8 @@ { pkgs, ... }: - # cant be enabled with pipewire - { - # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false - enable = false; - # for ad2p profle ? - package = pkgs.pulseaudioFull; - } - +# cant be enabled with pipewire +{ + # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false + enable = false; + # for ad2p profle ? + package = pkgs.pulseaudioFull; +} diff --git a/justfile b/justfile index a87655b..456c53b 100644 --- a/justfile +++ b/justfile @@ -65,7 +65,7 @@ bootstrap-vps target: --debug bump-meli: - nix-update -F --version=branch=master meli-teto + nix-update -F --version=branch=master meli-teto # just to save the command @@ -321,7 +321,6 @@ inspect-current-generation: flash-ulanzi-tc001: esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin - # check dlna servers on the network scan-upnp: nmap --script=broadcast-upnp-info 192.168.0.0/16 diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix index 3820510..e4bca1c 100644 --- a/nixos/profiles/adguardhome.nix +++ b/nixos/profiles/adguardhome.nix @@ -9,7 +9,6 @@ # mutableSettings = true; # openFirewall = false; - # mutableSettings = true; # extraArgs = []; diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix index 3c1971b..ea3fa0f 100644 --- a/nixos/profiles/avahi.nix +++ b/nixos/profiles/avahi.nix @@ -25,7 +25,7 @@ server = { - # List of non-local DNS domains to be browsed. + # List of non-local DNS domains to be browsed. browse-domains = [ # "0pointer.de" # "zeroconf.org" diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix index 3f9282d..9039e39 100644 --- a/nixos/profiles/desktop/programs/flyline.nix +++ b/nixos/profiles/desktop/programs/flyline.nix @@ -1,5 +1,5 @@ { enable = true; - # + # # package = ; }