treefmt v2.6.0traversed 1596 files emitted 852 files for processing formatted 852 files (12 changed) in 1.202s M config/bash/flyline.sh M config/nvim/lua/init-manual.lua M hm/profiles/teto-desktop/default.nix M hm/profiles/teto-desktop/programs/rofi.nix M hm/profiles/teto-desktop/services/mpd.nix M hm/profiles/teto-desktop/xdg/default.nix M hosts/jedha/services/avahi.nix M hosts/jedha/services/opentelemetry-collector.nix M hosts/jedha/systemd.nix M justfile M nixos/profiles/avahi.nix M nixos/profiles/desktop/programs/flyline.nix diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh index 86ce9b0..e6ef1a9 100644 --- a/config/bash/flyline.sh +++ b/config/bash/flyline.sh @@ -8,12 +8,11 @@ flyline history --backend flyline 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 \ @@ -24,7 +23,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$ ' @@ -47,8 +45,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 \ @@ -62,7 +59,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' \ @@ -128,4 +124,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/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix index 6445766..6519b93 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; @@ -172,7 +172,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/services/mpd.nix b/hm/profiles/teto-desktop/services/mpd.nix index fe2532e..140a36d 100644 --- a/hm/profiles/teto-desktop/services/mpd.nix +++ b/hm/profiles/teto-desktop/services/mpd.nix @@ -12,11 +12,11 @@ listenAddress = "any"; }; - # where - # audio_output { - # type "pipewire" - # name "PipeWire Sound Server" - # } + # where + # audio_output { + # type "pipewire" + # name "PipeWire Sound Server" + # } extraConfig = '' include "${config.xdg.configHome}/mpd/manual.conf" ''; 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/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/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/systemd.nix b/hosts/jedha/systemd.nix index 6ef8309..b01e4e0 100644 --- a/hosts/jedha/systemd.nix +++ b/hosts/jedha/systemd.nix @@ -33,61 +33,60 @@ in netdata.path = [ pkgs.linuxPackages.nvidia_x11 ]; }) (lib.mkIf true { - 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/justfile b/justfile index b191e24..c8b0263 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 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 = ; }