nixbot

builds

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

1treefmt v2.6.0traversed 1609 files2emitted 861 files for processing3formatted 861 files (25 changed) in 1.283s4 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 79e7748..578c8ac 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 viewer325@@ -691,7 +689,7 @@ in326 pkgs.tsukumi327 ];328 })329- (mkIf cfg.jellyfin {330+ (mkIf cfg.jellyfin {331 332 home.packages = [333 334@@ -701,12 +699,11 @@ in335 # pkgs.feishin # GUI336 # pkgs.jellycli # could not login :/337 338-339 # VIDEO compatible340 # - Jellyfin MPV Shim341 pkgs.jellyfin-desktop342 pkgs.jellyfin-mpv-shim343- # jellyhaj # not upstreamed yet 344+ # jellyhaj # not upstreamed yet345 # fladder # nice GUI346 # jftui too minimalistic347 # pkgs.jellyflix # nice348diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix349index d5f5343..c24e34b 100644350--- a/hm/profiles/teto-desktop/default.nix351+++ b/hm/profiles/teto-desktop/default.nix352@@ -112,7 +112,7 @@ in353 354 home.packages =355 with pkgs;356- let 357+ let358 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;359 360 # lux-cli-teto = lux-cli;361@@ -182,7 +182,6 @@ in362 # kaggle # kaggle interface363 # python3Packages.kaggle364 365-366 sonic-pi367 stow368 systemctl-tui369diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix370index 875de63..aad3fbd 100644371--- a/hm/profiles/teto-desktop/programs/jujutsu.nix372+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix373@@ -34,9 +34,12 @@374 name = "teto";375 };376 ui = {377- # jj splits puts the cursor in a f**** position, we need $line to restore 378+ # jj splits puts the cursor in a f**** position, we need $line to restore379 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes380- editor = ["nvim" "+$line"];381+ editor = [382+ "nvim"383+ "+$line"384+ ];385 default-command = "status";386 merge-editor = "nvim";387 # Enable pagination for commands that support it (default)388diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix389index be52e45..f9d09d8 100644390--- a/hm/profiles/teto-desktop/programs/rofi.nix391+++ b/hm/profiles/teto-desktop/programs/rofi.nix392@@ -37,8 +37,8 @@393 394 location = "center";395 modes = [396- # modes: [ combi ];397- # combi-modes: [ window, drun, run ];398+ # modes: [ combi ];399+ # combi-modes: [ window, drun, run ];400 401 ];402 403diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix404index 0dad1af..11dd2ad 100644405--- a/hm/profiles/teto-desktop/xdg/default.nix406+++ b/hm/profiles/teto-desktop/xdg/default.nix407@@ -101,12 +101,12 @@408 "bash/bashrc".text = ''409 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"410 source "$script_dir/manual.sh"411- ''412- # check if flyline defined too ?413- + lib.optionalString osConfig.programs.flyline.enable '' 414- source "$script_dir/flyline.sh"415+ ''416+ # check if flyline defined too ?417+ + lib.optionalString osConfig.programs.flyline.enable ''418+ source "$script_dir/flyline.sh"419 420- '';421+ '';422 423 "nvim/lua/generated-by-nix.lua" =424 let425diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix426index 77dae93..78c87ca 100644427--- a/hosts/jedha/default.nix428+++ b/hosts/jedha/default.nix429@@ -91,12 +91,20 @@ in430 # Upmpdcli's local-library server needs both discovery and HTTP access.431 networking.firewall = lib.mkIf config.services.upmpdcli.enable {432 allowedUDPPorts = [ 1900 ];433- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];434+ allowedTCPPorts = with config.services.upmpdcli.configuration; [435+ upnpport436+ uprclport437+ ];438 };439 440 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {441 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.442- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];443+ path = [444+ pkgs.recoll445+ pkgs.python3446+ pkgs.openssl447+ pkgs.diffutils448+ ];449 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];450 };451 452diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix453index 083732e..09017c2 100644454--- a/hosts/jedha/services/avahi.nix455+++ b/hosts/jedha/services/avahi.nix456@@ -13,7 +13,6 @@457 458 debug = true;459 460-461 # allowInterfaces = [462 # "wlp10s0"463 # ];464@@ -30,13 +29,12 @@465 };466 467 publish = {468- disable-publishing = false;469- disable-user-service-publishing = false;470- publish-addresses = true;471- };472-473+ disable-publishing = false;474+ disable-user-service-publishing = false;475+ publish-addresses = true;476 };477 478+ };479 480 nssmdns4 = true;481 # publish = {482diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix483index 0ea64f9..9b1b770 100644484--- a/hosts/jedha/services/minidlna.nix485+++ b/hosts/jedha/services/minidlna.nix486@@ -7,7 +7,6 @@487 # announceInterval = 60;488 openFirewall = true;489 490-491 # there are udp errors when it binds to wireguard network ?492 493 settings = {494@@ -16,9 +15,9 @@495 friendly_name = "jedha";496 # inotify = "yes";497 log_level = "warn";498- media_dir = [ 499+ media_dir = [500 # can be prefixed with V/A, to filter audio/video501- "/mnt/ext/music" 502+ "/mnt/ext/music"503 ];504 inotify = "yes";505 # db_dir =506diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix507index 28cc3b4..1d1609c 100644508--- a/hosts/jedha/services/opentelemetry-collector.nix509+++ b/hosts/jedha/services/opentelemetry-collector.nix510@@ -1,23 +1,22 @@511 {512 513-514 enable = true;515 516 settings =517-let518- port = 4318;519-in520+ let521+ port = 4318;522+ in523 {524- exporters.debug.verbosity = "detailed";525- receivers.otlp.protocols = {526- http.endpoint = "0.0.0.0:${toString port}";527- };528- service = {529- pipelines.logs = {530- receivers = [ "otlp" ];531- exporters = [ "debug" ];532- };533- };534+ exporters.debug.verbosity = "detailed";535+ receivers.otlp.protocols = {536+ http.endpoint = "0.0.0.0:${toString port}";537+ };538+ service = {539+ pipelines.logs = {540+ receivers = [ "otlp" ];541+ exporters = [ "debug" ];542+ };543+ };544 545- };546+ };547 }548diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix549index ef04f30..390f091 100644550--- a/hosts/jedha/services/upmpdcli.nix551+++ b/hosts/jedha/services/upmpdcli.nix552@@ -1,12 +1,12 @@553 /*554-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 555- should change playback if rmpd and upmpdcli are controlling the same MPD instance556- 557- • 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.558-• 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.559+ 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, it560+ should change playback if rmpd and upmpdcli are controlling the same MPD instance561 562-mpd now has a plugin that can play music from upnp server 563-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction564+ • 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.565+ • 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.566+567+ mpd now has a plugin that can play music from upnp server568+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction569 */570 571 { pkgs, lib, ... }:572@@ -44,7 +44,7 @@ in573 mpdport = 6600;574 # try to see if I can control it myself575 ownqueue = 0;576- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 577+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo578 # control the playlist. The client can disconnect after playlist was created579 openhome = 0;580 upnpav = 1;581diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix582index 59d7129..e0cab47 100644583--- a/hosts/jedha/systemd.nix584+++ b/hosts/jedha/systemd.nix585@@ -34,61 +34,60 @@ in586 })587 # disabled because ha-mcp broken588 (lib.mkIf false {589- ha-mcp = {590- description = "Home Assistant MCP server";591- wantedBy = [ "multi-user.target" ];592- wants = [ "network-online.target" ];593- after = [ "network-online.target" ];594- environment = {595- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";596- HOME = "/var/lib/ha-mcp";597- MCP_HOST = "127.0.0.1";598- MCP_PORT = "8086";599- };600- serviceConfig = {601- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";602- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.603- EnvironmentFile = "/var/lib/ha-mcp/environment";604- DynamicUser = true;605- StateDirectory = "ha-mcp";606- WorkingDirectory = "/var/lib/ha-mcp";607- Restart = "on-failure";608- RestartSec = 5;609- UMask = "0077";610- };611+ ha-mcp = {612+ description = "Home Assistant MCP server";613+ wantedBy = [ "multi-user.target" ];614+ wants = [ "network-online.target" ];615+ after = [ "network-online.target" ];616+ environment = {617+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";618+ HOME = "/var/lib/ha-mcp";619+ MCP_HOST = "127.0.0.1";620+ MCP_PORT = "8086";621 };622+ serviceConfig = {623+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";624+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.625+ EnvironmentFile = "/var/lib/ha-mcp/environment";626+ DynamicUser = true;627+ StateDirectory = "ha-mcp";628+ WorkingDirectory = "/var/lib/ha-mcp";629+ Restart = "on-failure";630+ RestartSec = 5;631+ UMask = "0077";632+ };633+ };634 635- # copied from https://github.com/NixOS/nixpkgs/pull/544252636- # lib.recursiveUpdate slib.systemd.serviceDefaults {637- speech-to-phrase = {638- # after = [ "home-assistant.service" ];639- script = lib.concatStringsSep " " [640- (lib.getExe pkgs.speech-to-phrase)641- "--models-dir"642- "\"$STATE_DIRECTORY/models\""643- "--train-dir"644- "\"$STATE_DIRECTORY/train\""645- # "--custom-sentences-dir" ""646- "--uri 'tcp://127.0.0.1:10400'"647- "--hass-websocket-uri"648- "ws://${hassHost}:${toString hassPort}/api/websocket"649- "--retrain-on-start"650- "--retrain-on-connect"651- "--retrain-seconds"652- "300"653- ];654- serviceConfig = {655- #656- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;657- Group = "speech-to-phrase";658- StateDirectory = "speech-to-phrase";659- User = "speech-to-phrase";660- # TODO: hardening661- };662+ # copied from https://github.com/NixOS/nixpkgs/pull/544252663+ # lib.recursiveUpdate slib.systemd.serviceDefaults {664+ speech-to-phrase = {665+ # after = [ "home-assistant.service" ];666+ script = lib.concatStringsSep " " [667+ (lib.getExe pkgs.speech-to-phrase)668+ "--models-dir"669+ "\"$STATE_DIRECTORY/models\""670+ "--train-dir"671+ "\"$STATE_DIRECTORY/train\""672+ # "--custom-sentences-dir" ""673+ "--uri 'tcp://127.0.0.1:10400'"674+ "--hass-websocket-uri"675+ "ws://${hassHost}:${toString hassPort}/api/websocket"676+ "--retrain-on-start"677+ "--retrain-on-connect"678+ "--retrain-seconds"679+ "300"680+ ];681+ serviceConfig = {682+ #683+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;684+ Group = "speech-to-phrase";685+ StateDirectory = "speech-to-phrase";686+ User = "speech-to-phrase";687+ # TODO: hardening688 };689+ };690 691- }692- )693+ })694 ];695 696 # just to test697diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix698index 8cbae35..3c41972 100644699--- a/hosts/tatooine/default.nix700+++ b/hosts/tatooine/default.nix701@@ -132,7 +132,6 @@ in702 enableRedistributableFirmware = true;703 sane.enable = true;704 705-706 # High quality BT calls707 # https://nixos.wiki/wiki/Bluetooth708 bluetooth = {709diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix710index adc82dd..1724c86 100644711--- a/hosts/tatooine/services/adguardhome.nix712+++ b/hosts/tatooine/services/adguardhome.nix713@@ -10,7 +10,7 @@714 settings = {715 716 # http (since v0.107.36): Web interface configuration.717- # address: Web interface IP address with port to listen on 718+ # address: Web interface IP address with port to listen on719 http.address = "127.0.0.1:8084";720 721 };722diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix723index dd02f3f..f14c221 100644724--- a/hosts/tatooine/services/avahi.nix725+++ b/hosts/tatooine/services/avahi.nix726@@ -21,19 +21,19 @@727 728 settings = {729 publish = {730- publish-domain = true;731- disable-publishing = false;732- disable-user-service-publishing = false;733- publish-addresses = true;734- };735+ publish-domain = true;736+ disable-publishing = false;737+ disable-user-service-publishing = false;738+ publish-addresses = true;739+ };740 741 server = {742 use-ipv6 = false; # bug with multiple hostnames743- # # 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.744- # # secrets.jedha.hostname;745- # # host-name = "jedha";746- # # enable-dbus = true;747- #748+ # # 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.749+ # # secrets.jedha.hostname;750+ # # host-name = "jedha";751+ # # enable-dbus = true;752+ #753 };754 };755 756diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix757index 0c082b6..58d9c85 100644758--- a/hosts/tatooine/services/pulseaudio.nix759+++ b/hosts/tatooine/services/pulseaudio.nix760@@ -1,9 +1,8 @@761 { pkgs, ... }:762- # cant be enabled with pipewire763- {764- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false765- enable = false;766- # for ad2p profle ?767- package = pkgs.pulseaudioFull;768- }769-770+# cant be enabled with pipewire771+{772+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false773+ enable = false;774+ # for ad2p profle ?775+ package = pkgs.pulseaudioFull;776+}777diff --git a/justfile b/justfile778index a87655b..456c53b 100644779--- a/justfile780+++ b/justfile781@@ -65,7 +65,7 @@ bootstrap-vps target:782 --debug783 784 bump-meli:785- nix-update -F --version=branch=master meli-teto786+ nix-update -F --version=branch=master meli-teto787 788 # just to save the command789 790@@ -321,7 +321,6 @@ inspect-current-generation:791 flash-ulanzi-tc001:792 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin793 794-795 # check dlna servers on the network796 scan-upnp:797 nmap --script=broadcast-upnp-info 192.168.0.0/16798diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix799index 3820510..e4bca1c 100644800--- a/nixos/profiles/adguardhome.nix801+++ b/nixos/profiles/adguardhome.nix802@@ -9,7 +9,6 @@803 # mutableSettings = true;804 # openFirewall = false;805 806-807 # mutableSettings = true;808 # extraArgs = [];809 810diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix811index 9ceeefc..3835a79 100644812--- a/nixos/profiles/avahi.nix813+++ b/nixos/profiles/avahi.nix814@@ -1,9 +1,6 @@815 /*816-817-guide:818-avahi-browse-domains 819-820-821+ guide:822+ avahi-browse-domains823 */824 {825 config,826@@ -23,7 +20,7 @@ avahi-browse-domains827 828 server = {829 830- # List of non-local DNS domains to be browsed.831+ # List of non-local DNS domains to be browsed.832 browse-domains = [833 # "0pointer.de"834 # "zeroconf.org"835diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix836index 3f9282d..9039e39 100644837--- a/nixos/profiles/desktop/programs/flyline.nix838+++ b/nixos/profiles/desktop/programs/flyline.nix839@@ -1,5 +1,5 @@840 {841 enable = true;842- # 843+ #844 # package = ;845 }