treefmt-check
checks.x86_64-linux.formatting
· build #47
· raw
1treefmt v2.6.0traversed 1609 files2emitted 861 files for processing3formatted 861 files (25 changed) in 1.179s4 M by-name/ze/zeal-teto/package.nix5 M config/bash/flyline.sh6 M config/nvim/lua/init-manual.lua7 M config/nvim/lua/plugins/kitty-scrollback.lua8 M hm/modules/audiocast.nix9 M hm/modules/kitty.nix10 M hm/modules/package-sets.nix11 M hm/profiles/teto-desktop/default.nix12 M hm/profiles/teto-desktop/programs/jujutsu.nix13 M hm/profiles/teto-desktop/programs/rofi.nix14 M hm/profiles/teto-desktop/xdg/default.nix15 M hosts/jedha/default.nix16 M hosts/jedha/services/avahi.nix17 M hosts/jedha/services/minidlna.nix18 M hosts/jedha/services/opentelemetry-collector.nix19 M hosts/jedha/services/upmpdcli.nix20 M hosts/jedha/systemd.nix21 M hosts/tatooine/default.nix22 M hosts/tatooine/services/adguardhome.nix23 M hosts/tatooine/services/avahi.nix24 M hosts/tatooine/services/pulseaudio.nix25 M justfile26 M nixos/profiles/adguardhome.nix27 M nixos/profiles/avahi.nix28 M nixos/profiles/desktop/programs/flyline.nix29diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix30index 9442d75..a9d8692 10064431--- a/by-name/ze/zeal-teto/package.nix32+++ b/by-name/ze/zeal-teto/package.nix33@@ -1,10 +1,9 @@34 { zeal }:35 zeal.overrideAttrs (oa: {36 37- # export QMLSCENE_DEVICE=software38- postInstall = ''39- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software40- '';41-42- })43+ # export QMLSCENE_DEVICE=software44+ postInstall = ''45+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software46+ '';47 48+})49diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh50index c2b1a84..6b647be 10064451--- a/config/bash/flyline.sh52+++ b/config/bash/flyline.sh53@@ -10,12 +10,11 @@ flyline history --backend flyline54 # it flickers55 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 256 57-# Codex: change 58+# Codex: change59 flyline set-agent-mode \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+ --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. " \65+ --trigger-prefix ': ' \66+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'67 68 # Antigravity:69 # flyline set-agent-mode \70@@ -26,7 +25,6 @@ flyline set-agent-mode \71 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"72 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR73 74-75 # precmd_functions+=(set_ps1)76 # Now you can use this animation in your prompt. For example:77 PS1='\u@\h:\w MOUSE_MODE \n$ '78@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''79 80 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽81 82-83 # Experiment with higher frame rates for smooth transitions:84 # flyline create-prompt-widget animation --name "john" --fps 24 \85 # '\e[38;2;255;0;0m\u' \86@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''87 # '\e[38;2;255;0;63m\u' \88 # '\e[38;2;255;0;47m\u' \89 # '\e[38;2;255;0;31m\u' \90-# '\e[38;2;255;0;15m\u' 91+# '\e[38;2;255;0;15m\u'92diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua93index 69b09f5..4d9576f 10064494--- a/config/nvim/lua/init-manual.lua95+++ b/config/nvim/lua/init-manual.lua96@@ -1356,4 +1356,3 @@ vim.api.nvim_create_autocmd({ 'User' }, {97 -- end)98 end,99 })100-101diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua102index ffcb08a..8b60a67 100644103--- a/config/nvim/lua/plugins/kitty-scrollback.lua104+++ b/config/nvim/lua/plugins/kitty-scrollback.lua105@@ -2,43 +2,43 @@106 -- if you want to create autocommands107 108 --109- -- myconfig = {110- -- kitty_get_text = {111- -- ansi = false,112- -- },113- -- },114- -- myfnconfig = function(kitty_data)115- -- return {116- -- kitty_get_text = {117- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',118- -- },119- -- }120- -- end,121+-- myconfig = {122+-- kitty_get_text = {123+-- ansi = false,124+-- },125+-- },126+-- myfnconfig = function(kitty_data)127+-- return {128+-- kitty_get_text = {129+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',130+-- },131+-- }132+-- end,133 require('kitty-scrollback').setup(134 -- global configuration135 {136- kitty_get_text = {137- -- boolean If true, the text will include the ANSI formatting escape codes for colors,138- ansi = true,139- extent = 'all',140- },141- -- scrollback_columns = 300,142- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external143- scrollback_tempfile = false,144- keymaps_enabled = false,145- close_after_yank = true,146- status_window = {147+ kitty_get_text = {148+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,149+ ansi = true,150+ extent = 'all',151+ },152+ -- scrollback_columns = 300,153+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external154+ scrollback_tempfile = false,155+ keymaps_enabled = false,156+ close_after_yank = true,157+ status_window = {158 159- style_simple = true, -- user may not have Nerd Fonts installed160- show_timer = true,161+ style_simple = true, -- user may not have Nerd Fonts installed162+ show_timer = true,163 164- autoclose = true,165- },166- paste_window = {167- -- yank_register = '',168- -- boolean? If true, the yank_register copies content to the paste window. If false, d169- -- -- isable yank to paste window170- -- yank_register_enabled = false,171- }172+ autoclose = true,173+ },174+ paste_window = {175+ -- yank_register = '',176+ -- boolean? If true, the yank_register copies content to the paste window. If false, d177+ -- -- isable yank to paste window178+ -- yank_register_enabled = false,179+ },180 }181 )182diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix183index e95570a..ae177f7 100644184--- a/hm/modules/audiocast.nix185+++ b/hm/modules/audiocast.nix186@@ -1,7 +1,13 @@187-{ config, lib, pkgs, ... }:188+{189+ config,190+ lib,191+ pkgs,192+ ...193+}:194 let195- cfg = config.services.audiocast;196-in {197+ cfg = config.services.audiocast;198+in199+{200 options = {201 services.audiocast = {202 enable = lib.mkEnableOption "audiocast-stream";203@@ -16,44 +22,43 @@ in {204 };205 config = lib.mkIf cfg.enable {206 207-208- # Renderer friendlyName to discover over SSDP209- # Hard-coded AVTransport control URL (skips SSDP discovery)210- # else we give url211- # ❯ yamaha discover212- # name host model udn213- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e214- # port 8082 Local HTTP port for the stream215- xdg.configFile."audiocast/config" = {216- enable = false;217- text = ''218- [audiocast]219- name = Espace Musical220- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)221- mode = app222- sink = audiocast223- sink_description = AudioCast (DLNA)224- '';225-};226-227- systemd.user.services.audiocast-stream = {228- Unit = {229- Description = "Stream PipeWire audio to a DLNA renderer";230- After = [231- "pipewire.service"232- "pipewire-pulse.service"233- ];234- Wants = [ "pipewire-pulse.service" ];235+ # Renderer friendlyName to discover over SSDP236+ # Hard-coded AVTransport control URL (skips SSDP discovery)237+ # else we give url238+ # ❯ yamaha discover239+ # name host model udn240+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e241+ # port 8082 Local HTTP port for the stream242+ xdg.configFile."audiocast/config" = {243+ enable = false;244+ text = ''245+ [audiocast]246+ name = Espace Musical247+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)248+ mode = app249+ sink = audiocast250+ sink_description = AudioCast (DLNA)251+ '';252 };253- Service = {254- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";255- Restart = "on-failure";256- # The renderer may be asleep or temporarily off the network. The257- # program exits when discovery fails, so retry without a tight loop.258- RestartSec = 30;259+260+ systemd.user.services.audiocast-stream = {261+ Unit = {262+ Description = "Stream PipeWire audio to a DLNA renderer";263+ After = [264+ "pipewire.service"265+ "pipewire-pulse.service"266+ ];267+ Wants = [ "pipewire-pulse.service" ];268+ };269+ Service = {270+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";271+ Restart = "on-failure";272+ # The renderer may be asleep or temporarily off the network. The273+ # program exits when discovery fails, so retry without a tight loop.274+ RestartSec = 30;275+ };276+ Install.WantedBy = [ "default.target" ];277 };278- Install.WantedBy = [ "default.target" ];279- };280 };281 282 }283diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix284index b6d495f..e7da295 100644285--- a/hm/modules/kitty.nix286+++ b/hm/modules/kitty.nix287@@ -54,7 +54,7 @@ in288 map kitty_mod+h kitty_scrollback_nvim ./tmp289 # Browse output of the last shell command in nvim290 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output291- '';292+ '';293 294 #295 # # Browse output of the last shell command in nvim296diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix297index a575687..48abec7 100644298--- a/hm/modules/package-sets.nix299+++ b/hm/modules/package-sets.nix300@@ -114,7 +114,6 @@ in301 pkgs.blazingjj302 flakeSelf.inputs.jj-gh.packages.${system}.default303 304-305 # pkgs.gg-jj306 # pkgs.lazyjj307 # pkgs.jj-fzf308@@ -415,7 +414,6 @@ in309 lurk # a rust strace310 lsof # to see open files311 312-313 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship314 libossp_uuid # for the 'libuuid' executable315 316@@ -495,7 +493,7 @@ in317 tig318 tmux # when connecting via ssh319 universal-ctags # there are many different ctags, be careful !320- uv # to install python packages321+ uv # to install python packages322 unar # used to view archives by yazi (now using ouch ?)323 vifm324 viu # a console image viewer325diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix326index 86d9c65..29f0ff8 100644327--- a/hm/profiles/teto-desktop/default.nix328+++ b/hm/profiles/teto-desktop/default.nix329@@ -112,7 +112,7 @@ in330 331 home.packages =332 with pkgs;333- let 334+ let335 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;336 337 # lux-cli-teto = lux-cli;338@@ -181,7 +181,6 @@ in339 # kaggle # kaggle interface340 # python3Packages.kaggle341 342-343 sonic-pi344 stow345 systemctl-tui346diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix347index 875de63..aad3fbd 100644348--- a/hm/profiles/teto-desktop/programs/jujutsu.nix349+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix350@@ -34,9 +34,12 @@351 name = "teto";352 };353 ui = {354- # jj splits puts the cursor in a f**** position, we need $line to restore 355+ # jj splits puts the cursor in a f**** position, we need $line to restore356 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes357- editor = ["nvim" "+$line"];358+ editor = [359+ "nvim"360+ "+$line"361+ ];362 default-command = "status";363 merge-editor = "nvim";364 # Enable pagination for commands that support it (default)365diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix366index be52e45..f9d09d8 100644367--- a/hm/profiles/teto-desktop/programs/rofi.nix368+++ b/hm/profiles/teto-desktop/programs/rofi.nix369@@ -37,8 +37,8 @@370 371 location = "center";372 modes = [373- # modes: [ combi ];374- # combi-modes: [ window, drun, run ];375+ # modes: [ combi ];376+ # combi-modes: [ window, drun, run ];377 378 ];379 380diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix381index 0dad1af..11dd2ad 100644382--- a/hm/profiles/teto-desktop/xdg/default.nix383+++ b/hm/profiles/teto-desktop/xdg/default.nix384@@ -101,12 +101,12 @@385 "bash/bashrc".text = ''386 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"387 source "$script_dir/manual.sh"388- ''389- # check if flyline defined too ?390- + lib.optionalString osConfig.programs.flyline.enable '' 391- source "$script_dir/flyline.sh"392+ ''393+ # check if flyline defined too ?394+ + lib.optionalString osConfig.programs.flyline.enable ''395+ source "$script_dir/flyline.sh"396 397- '';398+ '';399 400 "nvim/lua/generated-by-nix.lua" =401 let402diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix403index 77dae93..78c87ca 100644404--- a/hosts/jedha/default.nix405+++ b/hosts/jedha/default.nix406@@ -91,12 +91,20 @@ in407 # Upmpdcli's local-library server needs both discovery and HTTP access.408 networking.firewall = lib.mkIf config.services.upmpdcli.enable {409 allowedUDPPorts = [ 1900 ];410- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];411+ allowedTCPPorts = with config.services.upmpdcli.configuration; [412+ upnpport413+ uprclport414+ ];415 };416 417 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {418 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.419- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];420+ path = [421+ pkgs.recoll422+ pkgs.python3423+ pkgs.openssl424+ pkgs.diffutils425+ ];426 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];427 };428 429diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix430index 083732e..09017c2 100644431--- a/hosts/jedha/services/avahi.nix432+++ b/hosts/jedha/services/avahi.nix433@@ -13,7 +13,6 @@434 435 debug = true;436 437-438 # allowInterfaces = [439 # "wlp10s0"440 # ];441@@ -30,13 +29,12 @@442 };443 444 publish = {445- disable-publishing = false;446- disable-user-service-publishing = false;447- publish-addresses = true;448- };449-450+ disable-publishing = false;451+ disable-user-service-publishing = false;452+ publish-addresses = true;453 };454 455+ };456 457 nssmdns4 = true;458 # publish = {459diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix460index 0ea64f9..9b1b770 100644461--- a/hosts/jedha/services/minidlna.nix462+++ b/hosts/jedha/services/minidlna.nix463@@ -7,7 +7,6 @@464 # announceInterval = 60;465 openFirewall = true;466 467-468 # there are udp errors when it binds to wireguard network ?469 470 settings = {471@@ -16,9 +15,9 @@472 friendly_name = "jedha";473 # inotify = "yes";474 log_level = "warn";475- media_dir = [ 476+ media_dir = [477 # can be prefixed with V/A, to filter audio/video478- "/mnt/ext/music" 479+ "/mnt/ext/music"480 ];481 inotify = "yes";482 # db_dir =483diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix484index 28cc3b4..1d1609c 100644485--- a/hosts/jedha/services/opentelemetry-collector.nix486+++ b/hosts/jedha/services/opentelemetry-collector.nix487@@ -1,23 +1,22 @@488 {489 490-491 enable = true;492 493 settings =494-let495- port = 4318;496-in497+ let498+ port = 4318;499+ in500 {501- exporters.debug.verbosity = "detailed";502- receivers.otlp.protocols = {503- http.endpoint = "0.0.0.0:${toString port}";504- };505- service = {506- pipelines.logs = {507- receivers = [ "otlp" ];508- exporters = [ "debug" ];509- };510- };511+ exporters.debug.verbosity = "detailed";512+ receivers.otlp.protocols = {513+ http.endpoint = "0.0.0.0:${toString port}";514+ };515+ service = {516+ pipelines.logs = {517+ receivers = [ "otlp" ];518+ exporters = [ "debug" ];519+ };520+ };521 522- };523+ };524 }525diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix526index ef04f30..390f091 100644527--- a/hosts/jedha/services/upmpdcli.nix528+++ b/hosts/jedha/services/upmpdcli.nix529@@ -1,12 +1,12 @@530 /*531-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 532- should change playback if rmpd and upmpdcli are controlling the same MPD instance533- 534- • 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.535-• 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.536+ 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, it537+ should change playback if rmpd and upmpdcli are controlling the same MPD instance538 539-mpd now has a plugin that can play music from upnp server 540-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction541+ • 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.542+ • 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.543+544+ mpd now has a plugin that can play music from upnp server545+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction546 */547 548 { pkgs, lib, ... }:549@@ -44,7 +44,7 @@ in550 mpdport = 6600;551 # try to see if I can control it myself552 ownqueue = 0;553- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 554+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo555 # control the playlist. The client can disconnect after playlist was created556 openhome = 0;557 upnpav = 1;558diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix559index 59d7129..e0cab47 100644560--- a/hosts/jedha/systemd.nix561+++ b/hosts/jedha/systemd.nix562@@ -34,61 +34,60 @@ in563 })564 # disabled because ha-mcp broken565 (lib.mkIf false {566- ha-mcp = {567- description = "Home Assistant MCP server";568- wantedBy = [ "multi-user.target" ];569- wants = [ "network-online.target" ];570- after = [ "network-online.target" ];571- environment = {572- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";573- HOME = "/var/lib/ha-mcp";574- MCP_HOST = "127.0.0.1";575- MCP_PORT = "8086";576- };577- serviceConfig = {578- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";579- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.580- EnvironmentFile = "/var/lib/ha-mcp/environment";581- DynamicUser = true;582- StateDirectory = "ha-mcp";583- WorkingDirectory = "/var/lib/ha-mcp";584- Restart = "on-failure";585- RestartSec = 5;586- UMask = "0077";587- };588+ ha-mcp = {589+ description = "Home Assistant MCP server";590+ wantedBy = [ "multi-user.target" ];591+ wants = [ "network-online.target" ];592+ after = [ "network-online.target" ];593+ environment = {594+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";595+ HOME = "/var/lib/ha-mcp";596+ MCP_HOST = "127.0.0.1";597+ MCP_PORT = "8086";598 };599+ serviceConfig = {600+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";601+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.602+ EnvironmentFile = "/var/lib/ha-mcp/environment";603+ DynamicUser = true;604+ StateDirectory = "ha-mcp";605+ WorkingDirectory = "/var/lib/ha-mcp";606+ Restart = "on-failure";607+ RestartSec = 5;608+ UMask = "0077";609+ };610+ };611 612- # copied from https://github.com/NixOS/nixpkgs/pull/544252613- # lib.recursiveUpdate slib.systemd.serviceDefaults {614- speech-to-phrase = {615- # after = [ "home-assistant.service" ];616- script = lib.concatStringsSep " " [617- (lib.getExe pkgs.speech-to-phrase)618- "--models-dir"619- "\"$STATE_DIRECTORY/models\""620- "--train-dir"621- "\"$STATE_DIRECTORY/train\""622- # "--custom-sentences-dir" ""623- "--uri 'tcp://127.0.0.1:10400'"624- "--hass-websocket-uri"625- "ws://${hassHost}:${toString hassPort}/api/websocket"626- "--retrain-on-start"627- "--retrain-on-connect"628- "--retrain-seconds"629- "300"630- ];631- serviceConfig = {632- #633- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;634- Group = "speech-to-phrase";635- StateDirectory = "speech-to-phrase";636- User = "speech-to-phrase";637- # TODO: hardening638- };639+ # copied from https://github.com/NixOS/nixpkgs/pull/544252640+ # lib.recursiveUpdate slib.systemd.serviceDefaults {641+ speech-to-phrase = {642+ # after = [ "home-assistant.service" ];643+ script = lib.concatStringsSep " " [644+ (lib.getExe pkgs.speech-to-phrase)645+ "--models-dir"646+ "\"$STATE_DIRECTORY/models\""647+ "--train-dir"648+ "\"$STATE_DIRECTORY/train\""649+ # "--custom-sentences-dir" ""650+ "--uri 'tcp://127.0.0.1:10400'"651+ "--hass-websocket-uri"652+ "ws://${hassHost}:${toString hassPort}/api/websocket"653+ "--retrain-on-start"654+ "--retrain-on-connect"655+ "--retrain-seconds"656+ "300"657+ ];658+ serviceConfig = {659+ #660+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;661+ Group = "speech-to-phrase";662+ StateDirectory = "speech-to-phrase";663+ User = "speech-to-phrase";664+ # TODO: hardening665 };666+ };667 668- }669- )670+ })671 ];672 673 # just to test674diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix675index 8cbae35..3c41972 100644676--- a/hosts/tatooine/default.nix677+++ b/hosts/tatooine/default.nix678@@ -132,7 +132,6 @@ in679 enableRedistributableFirmware = true;680 sane.enable = true;681 682-683 # High quality BT calls684 # https://nixos.wiki/wiki/Bluetooth685 bluetooth = {686diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix687index adc82dd..1724c86 100644688--- a/hosts/tatooine/services/adguardhome.nix689+++ b/hosts/tatooine/services/adguardhome.nix690@@ -10,7 +10,7 @@691 settings = {692 693 # http (since v0.107.36): Web interface configuration.694- # address: Web interface IP address with port to listen on 695+ # address: Web interface IP address with port to listen on696 http.address = "127.0.0.1:8084";697 698 };699diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix700index dd02f3f..f14c221 100644701--- a/hosts/tatooine/services/avahi.nix702+++ b/hosts/tatooine/services/avahi.nix703@@ -21,19 +21,19 @@704 705 settings = {706 publish = {707- publish-domain = true;708- disable-publishing = false;709- disable-user-service-publishing = false;710- publish-addresses = true;711- };712+ publish-domain = true;713+ disable-publishing = false;714+ disable-user-service-publishing = false;715+ publish-addresses = true;716+ };717 718 server = {719 use-ipv6 = false; # bug with multiple hostnames720- # # 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.721- # # secrets.jedha.hostname;722- # # host-name = "jedha";723- # # enable-dbus = true;724- #725+ # # 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.726+ # # secrets.jedha.hostname;727+ # # host-name = "jedha";728+ # # enable-dbus = true;729+ #730 };731 };732 733diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix734index 0c082b6..58d9c85 100644735--- a/hosts/tatooine/services/pulseaudio.nix736+++ b/hosts/tatooine/services/pulseaudio.nix737@@ -1,9 +1,8 @@738 { pkgs, ... }:739- # cant be enabled with pipewire740- {741- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false742- enable = false;743- # for ad2p profle ?744- package = pkgs.pulseaudioFull;745- }746-747+# cant be enabled with pipewire748+{749+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false750+ enable = false;751+ # for ad2p profle ?752+ package = pkgs.pulseaudioFull;753+}754diff --git a/justfile b/justfile755index a87655b..456c53b 100644756--- a/justfile757+++ b/justfile758@@ -65,7 +65,7 @@ bootstrap-vps target:759 --debug760 761 bump-meli:762- nix-update -F --version=branch=master meli-teto763+ nix-update -F --version=branch=master meli-teto764 765 # just to save the command766 767@@ -321,7 +321,6 @@ inspect-current-generation:768 flash-ulanzi-tc001:769 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin770 771-772 # check dlna servers on the network773 scan-upnp:774 nmap --script=broadcast-upnp-info 192.168.0.0/16775diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix776index 3820510..e4bca1c 100644777--- a/nixos/profiles/adguardhome.nix778+++ b/nixos/profiles/adguardhome.nix779@@ -9,7 +9,6 @@780 # mutableSettings = true;781 # openFirewall = false;782 783-784 # mutableSettings = true;785 # extraArgs = [];786 787diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix788index 9ceeefc..3835a79 100644789--- a/nixos/profiles/avahi.nix790+++ b/nixos/profiles/avahi.nix791@@ -1,9 +1,6 @@792 /*793-794-guide:795-avahi-browse-domains 796-797-798+ guide:799+ avahi-browse-domains800 */801 {802 config,803@@ -23,7 +20,7 @@ avahi-browse-domains804 805 server = {806 807- # List of non-local DNS domains to be browsed.808+ # List of non-local DNS domains to be browsed.809 browse-domains = [810 # "0pointer.de"811 # "zeroconf.org"812diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix813index 3f9282d..9039e39 100644814--- a/nixos/profiles/desktop/programs/flyline.nix815+++ b/nixos/profiles/desktop/programs/flyline.nix816@@ -1,5 +1,5 @@817 {818 enable = true;819- # 820+ #821 # package = ;822 }