nixbot

builds

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

1treefmt v2.6.0traversed 1609 files2emitted 861 files for processing3formatted 861 files (26 changed) in 1.348s4 M by-name/ze/zeal-teto/package.nix5 M config/bash/flyline.sh6 M config/nvim/after/ftplugin/Avante.lua7 M config/nvim/lua/init-manual.lua8 M config/nvim/lua/plugins/kitty-scrollback.lua9 M hm/modules/audiocast.nix10 M hm/modules/kitty.nix11 M hm/modules/package-sets.nix12 M hm/profiles/teto-desktop/default.nix13 M hm/profiles/teto-desktop/programs/jujutsu.nix14 M hm/profiles/teto-desktop/programs/rofi.nix15 M hm/profiles/teto-desktop/xdg/default.nix16 M hosts/jedha/default.nix17 M hosts/jedha/services/avahi.nix18 M hosts/jedha/services/minidlna.nix19 M hosts/jedha/services/opentelemetry-collector.nix20 M hosts/jedha/services/upmpdcli.nix21 M hosts/jedha/systemd.nix22 M hosts/tatooine/default.nix23 M hosts/tatooine/services/adguardhome.nix24 M hosts/tatooine/services/avahi.nix25 M hosts/tatooine/services/pulseaudio.nix26 M justfile27 M nixos/profiles/adguardhome.nix28 M nixos/profiles/avahi.nix29 M nixos/profiles/desktop/programs/flyline.nix30diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix31index 9442d75..a9d8692 10064432--- a/by-name/ze/zeal-teto/package.nix33+++ b/by-name/ze/zeal-teto/package.nix34@@ -1,10 +1,9 @@35 { zeal }:36 zeal.overrideAttrs (oa: {37 38- # export QMLSCENE_DEVICE=software39- postInstall = ''40- wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software41- '';42-43- })44+ # export QMLSCENE_DEVICE=software45+ postInstall = ''46+ wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software47+ '';48 49+})50diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh51index c2b1a84..6b647be 10064452--- a/config/bash/flyline.sh53+++ b/config/bash/flyline.sh54@@ -10,12 +10,11 @@ flyline history --backend flyline55 # it flickers56 # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 257 58-# Codex: change 59+# Codex: change60 flyline set-agent-mode \61- --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. " \62- --trigger-prefix ': ' \63- --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'64-65+ --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. " \66+ --trigger-prefix ': ' \67+ --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always'68 69 # Antigravity:70 # flyline set-agent-mode \71@@ -26,7 +25,6 @@ flyline set-agent-mode \72 flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X"73 flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR74 75-76 # precmd_functions+=(set_ps1)77 # Now you can use this animation in your prompt. For example:78 PS1='\u@\h:\w MOUSE_MODE \n$ '79@@ -51,7 +49,6 @@ PROMPT_RULER_FINAL=''80 81 # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽82 83-84 # Experiment with higher frame rates for smooth transitions:85 # flyline create-prompt-widget animation --name "john" --fps 24 \86 # '\e[38;2;255;0;0m\u' \87@@ -117,4 +114,4 @@ PROMPT_RULER_FINAL=''88 # '\e[38;2;255;0;63m\u' \89 # '\e[38;2;255;0;47m\u' \90 # '\e[38;2;255;0;31m\u' \91-# '\e[38;2;255;0;15m\u' 92+# '\e[38;2;255;0;15m\u'93diff --git a/config/nvim/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua94index 7b83982..6f409d6 10064495--- a/config/nvim/after/ftplugin/Avante.lua96+++ b/config/nvim/after/ftplugin/Avante.lua97@@ -14,7 +14,6 @@ vim.opt.showbreak = ''98 -- - update_content99 -- - on_state_change100 101-102 -- local sidebar = require('avante').get()103 104 -- vim.api.nvim_create_autocmd('WinEnter', {105diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua106index 32871d5..e347ee0 100644107--- a/config/nvim/lua/init-manual.lua108+++ b/config/nvim/lua/init-manual.lua109@@ -1367,22 +1367,17 @@ vim.api.nvim_create_autocmd({ 'User' }, {110 --111 -- ╰─112 113-114-vim.api.nvim_create_autocmd(115- 'PackChanged',116- {117+vim.api.nvim_create_autocmd('PackChanged', {118 callback = function(ev)119- local name, kind = ev.data.spec.name, ev.data.kind120- print("package name ", name)121- vim.print("spec ", ev.data.spec)122- -- vim.print("version ", ev.data.spec.version)123-124- -- print("package kind ", kind)125- -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then126- -- -- Call `:AvanteBuild` to download prebuilt libraries127- -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()128- -- end129- end130- }131-)132-133+ local name, kind = ev.data.spec.name, ev.data.kind134+ print('package name ', name)135+ vim.print('spec ', ev.data.spec)136+ -- vim.print("version ", ev.data.spec.version)137+138+ -- print("package kind ", kind)139+ -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then140+ -- -- Call `:AvanteBuild` to download prebuilt libraries141+ -- vim.system({ 'make' }, { cwd = ev.data.path }):wait()142+ -- end143+ end,144+})145diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua146index ffcb08a..8b60a67 100644147--- a/config/nvim/lua/plugins/kitty-scrollback.lua148+++ b/config/nvim/lua/plugins/kitty-scrollback.lua149@@ -2,43 +2,43 @@150 -- if you want to create autocommands151 152 --153- -- myconfig = {154- -- kitty_get_text = {155- -- ansi = false,156- -- },157- -- },158- -- myfnconfig = function(kitty_data)159- -- return {160- -- kitty_get_text = {161- -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',162- -- },163- -- }164- -- end,165+-- myconfig = {166+-- kitty_get_text = {167+-- ansi = false,168+-- },169+-- },170+-- myfnconfig = function(kitty_data)171+-- return {172+-- kitty_get_text = {173+-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen',174+-- },175+-- }176+-- end,177 require('kitty-scrollback').setup(178 -- global configuration179 {180- kitty_get_text = {181- -- boolean If true, the text will include the ANSI formatting escape codes for colors,182- ansi = true,183- extent = 'all',184- },185- -- scrollback_columns = 300,186- -- boolean? if true, writes the scrollback buffer to a temporary file (used for external187- scrollback_tempfile = false,188- keymaps_enabled = false,189- close_after_yank = true,190- status_window = {191+ kitty_get_text = {192+ -- boolean If true, the text will include the ANSI formatting escape codes for colors,193+ ansi = true,194+ extent = 'all',195+ },196+ -- scrollback_columns = 300,197+ -- boolean? if true, writes the scrollback buffer to a temporary file (used for external198+ scrollback_tempfile = false,199+ keymaps_enabled = false,200+ close_after_yank = true,201+ status_window = {202 203- style_simple = true, -- user may not have Nerd Fonts installed204- show_timer = true,205+ style_simple = true, -- user may not have Nerd Fonts installed206+ show_timer = true,207 208- autoclose = true,209- },210- paste_window = {211- -- yank_register = '',212- -- boolean? If true, the yank_register copies content to the paste window. If false, d213- -- -- isable yank to paste window214- -- yank_register_enabled = false,215- }216+ autoclose = true,217+ },218+ paste_window = {219+ -- yank_register = '',220+ -- boolean? If true, the yank_register copies content to the paste window. If false, d221+ -- -- isable yank to paste window222+ -- yank_register_enabled = false,223+ },224 }225 )226diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix227index e95570a..ae177f7 100644228--- a/hm/modules/audiocast.nix229+++ b/hm/modules/audiocast.nix230@@ -1,7 +1,13 @@231-{ config, lib, pkgs, ... }:232+{233+ config,234+ lib,235+ pkgs,236+ ...237+}:238 let239- cfg = config.services.audiocast;240-in {241+ cfg = config.services.audiocast;242+in243+{244 options = {245 services.audiocast = {246 enable = lib.mkEnableOption "audiocast-stream";247@@ -16,44 +22,43 @@ in {248 };249 config = lib.mkIf cfg.enable {250 251-252- # Renderer friendlyName to discover over SSDP253- # Hard-coded AVTransport control URL (skips SSDP discovery)254- # else we give url255- # ❯ yamaha discover256- # name host model udn257- # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e258- # port 8082 Local HTTP port for the stream259- xdg.configFile."audiocast/config" = {260- enable = false;261- text = ''262- [audiocast]263- name = Espace Musical264- # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)265- mode = app266- sink = audiocast267- sink_description = AudioCast (DLNA)268- '';269-};270-271- systemd.user.services.audiocast-stream = {272- Unit = {273- Description = "Stream PipeWire audio to a DLNA renderer";274- After = [275- "pipewire.service"276- "pipewire-pulse.service"277- ];278- Wants = [ "pipewire-pulse.service" ];279+ # Renderer friendlyName to discover over SSDP280+ # Hard-coded AVTransport control URL (skips SSDP discovery)281+ # else we give url282+ # ❯ yamaha discover283+ # name host model udn284+ # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e285+ # port 8082 Local HTTP port for the stream286+ xdg.configFile."audiocast/config" = {287+ enable = false;288+ text = ''289+ [audiocast]290+ name = Espace Musical291+ # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery)292+ mode = app293+ sink = audiocast294+ sink_description = AudioCast (DLNA)295+ '';296 };297- Service = {298- ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";299- Restart = "on-failure";300- # The renderer may be asleep or temporarily off the network. The301- # program exits when discovery fails, so retry without a tight loop.302- RestartSec = 30;303+304+ systemd.user.services.audiocast-stream = {305+ Unit = {306+ Description = "Stream PipeWire audio to a DLNA renderer";307+ After = [308+ "pipewire.service"309+ "pipewire-pulse.service"310+ ];311+ Wants = [ "pipewire-pulse.service" ];312+ };313+ Service = {314+ ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream";315+ Restart = "on-failure";316+ # The renderer may be asleep or temporarily off the network. The317+ # program exits when discovery fails, so retry without a tight loop.318+ RestartSec = 30;319+ };320+ Install.WantedBy = [ "default.target" ];321 };322- Install.WantedBy = [ "default.target" ];323- };324 };325 326 }327diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix328index b6d495f..e7da295 100644329--- a/hm/modules/kitty.nix330+++ b/hm/modules/kitty.nix331@@ -54,7 +54,7 @@ in332 map kitty_mod+h kitty_scrollback_nvim ./tmp333 # Browse output of the last shell command in nvim334 map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output335- '';336+ '';337 338 #339 # # Browse output of the last shell command in nvim340diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix341index 79e7748..578c8ac 100644342--- a/hm/modules/package-sets.nix343+++ b/hm/modules/package-sets.nix344@@ -114,7 +114,6 @@ in345 pkgs.blazingjj346 flakeSelf.inputs.jj-gh.packages.${system}.default347 348-349 # pkgs.gg-jj350 # pkgs.lazyjj351 # pkgs.jj-fzf352@@ -415,7 +414,6 @@ in353 lurk # a rust strace354 lsof # to see open files355 356-357 # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship358 libossp_uuid # for the 'libuuid' executable359 360@@ -495,7 +493,7 @@ in361 tig362 tmux # when connecting via ssh363 universal-ctags # there are many different ctags, be careful !364- uv # to install python packages365+ uv # to install python packages366 unar # used to view archives by yazi (now using ouch ?)367 vifm368 viu # a console image viewer369@@ -691,7 +689,7 @@ in370 pkgs.tsukumi371 ];372 })373- (mkIf cfg.jellyfin {374+ (mkIf cfg.jellyfin {375 376 home.packages = [377 378@@ -701,12 +699,11 @@ in379 # pkgs.feishin # GUI380 # pkgs.jellycli # could not login :/381 382-383 # VIDEO compatible384 # - Jellyfin MPV Shim385 pkgs.jellyfin-desktop386 pkgs.jellyfin-mpv-shim387- # jellyhaj # not upstreamed yet 388+ # jellyhaj # not upstreamed yet389 # fladder # nice GUI390 # jftui too minimalistic391 # pkgs.jellyflix # nice392diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix393index f0b55a4..31fc245 100644394--- a/hm/profiles/teto-desktop/default.nix395+++ b/hm/profiles/teto-desktop/default.nix396@@ -112,7 +112,7 @@ in397 398 home.packages =399 with pkgs;400- let 401+ let402 lux-cli-teto = flakeSelf.inputs.lux.packages.${pkgs.stdenv.hostPlatform.system}.lux-cli;403 404 # lux-cli-teto = lux-cli;405@@ -182,8 +182,7 @@ in406 # kaggle # kaggle interface407 # python3Packages.kaggle408 409-410- sonic-pi # for live music coding411+ sonic-pi # for live music coding412 stow413 systemctl-tui414 timr-tui # rust clock415diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix416index 875de63..aad3fbd 100644417--- a/hm/profiles/teto-desktop/programs/jujutsu.nix418+++ b/hm/profiles/teto-desktop/programs/jujutsu.nix419@@ -34,9 +34,12 @@420 name = "teto";421 };422 ui = {423- # jj splits puts the cursor in a f**** position, we need $line to restore 424+ # jj splits puts the cursor in a f**** position, we need $line to restore425 # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes426- editor = ["nvim" "+$line"];427+ editor = [428+ "nvim"429+ "+$line"430+ ];431 default-command = "status";432 merge-editor = "nvim";433 # Enable pagination for commands that support it (default)434diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix435index be52e45..f9d09d8 100644436--- a/hm/profiles/teto-desktop/programs/rofi.nix437+++ b/hm/profiles/teto-desktop/programs/rofi.nix438@@ -37,8 +37,8 @@439 440 location = "center";441 modes = [442- # modes: [ combi ];443- # combi-modes: [ window, drun, run ];444+ # modes: [ combi ];445+ # combi-modes: [ window, drun, run ];446 447 ];448 449diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix450index 0dad1af..11dd2ad 100644451--- a/hm/profiles/teto-desktop/xdg/default.nix452+++ b/hm/profiles/teto-desktop/xdg/default.nix453@@ -101,12 +101,12 @@454 "bash/bashrc".text = ''455 script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)"456 source "$script_dir/manual.sh"457- ''458- # check if flyline defined too ?459- + lib.optionalString osConfig.programs.flyline.enable '' 460- source "$script_dir/flyline.sh"461+ ''462+ # check if flyline defined too ?463+ + lib.optionalString osConfig.programs.flyline.enable ''464+ source "$script_dir/flyline.sh"465 466- '';467+ '';468 469 "nvim/lua/generated-by-nix.lua" =470 let471diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix472index 77dae93..78c87ca 100644473--- a/hosts/jedha/default.nix474+++ b/hosts/jedha/default.nix475@@ -91,12 +91,20 @@ in476 # Upmpdcli's local-library server needs both discovery and HTTP access.477 networking.firewall = lib.mkIf config.services.upmpdcli.enable {478 allowedUDPPorts = [ 1900 ];479- allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ];480+ allowedTCPPorts = with config.services.upmpdcli.configuration; [481+ upnpport482+ uprclport483+ ];484 };485 486 systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable {487 # The library plugin launches recollindex; OpenHome uses Python and OpenSSL.488- path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ];489+ path = [490+ pkgs.recoll491+ pkgs.python3492+ pkgs.openssl493+ pkgs.diffutils494+ ];495 unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ];496 };497 498diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix499index 083732e..09017c2 100644500--- a/hosts/jedha/services/avahi.nix501+++ b/hosts/jedha/services/avahi.nix502@@ -13,7 +13,6 @@503 504 debug = true;505 506-507 # allowInterfaces = [508 # "wlp10s0"509 # ];510@@ -30,13 +29,12 @@511 };512 513 publish = {514- disable-publishing = false;515- disable-user-service-publishing = false;516- publish-addresses = true;517- };518-519+ disable-publishing = false;520+ disable-user-service-publishing = false;521+ publish-addresses = true;522 };523 524+ };525 526 nssmdns4 = true;527 # publish = {528diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix529index 0ea64f9..9b1b770 100644530--- a/hosts/jedha/services/minidlna.nix531+++ b/hosts/jedha/services/minidlna.nix532@@ -7,7 +7,6 @@533 # announceInterval = 60;534 openFirewall = true;535 536-537 # there are udp errors when it binds to wireguard network ?538 539 settings = {540@@ -16,9 +15,9 @@541 friendly_name = "jedha";542 # inotify = "yes";543 log_level = "warn";544- media_dir = [ 545+ media_dir = [546 # can be prefixed with V/A, to filter audio/video547- "/mnt/ext/music" 548+ "/mnt/ext/music"549 ];550 inotify = "yes";551 # db_dir =552diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix553index 28cc3b4..1d1609c 100644554--- a/hosts/jedha/services/opentelemetry-collector.nix555+++ b/hosts/jedha/services/opentelemetry-collector.nix556@@ -1,23 +1,22 @@557 {558 559-560 enable = true;561 562 settings =563-let564- port = 4318;565-in566+ let567+ port = 4318;568+ in569 {570- exporters.debug.verbosity = "detailed";571- receivers.otlp.protocols = {572- http.endpoint = "0.0.0.0:${toString port}";573- };574- service = {575- pipelines.logs = {576- receivers = [ "otlp" ];577- exporters = [ "debug" ];578- };579- };580+ exporters.debug.verbosity = "detailed";581+ receivers.otlp.protocols = {582+ http.endpoint = "0.0.0.0:${toString port}";583+ };584+ service = {585+ pipelines.logs = {586+ receivers = [ "otlp" ];587+ exporters = [ "debug" ];588+ };589+ };590 591- };592+ };593 }594diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix595index ef04f30..390f091 100644596--- a/hosts/jedha/services/upmpdcli.nix597+++ b/hosts/jedha/services/upmpdcli.nix598@@ -1,12 +1,12 @@599 /*600-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 601- should change playback if rmpd and upmpdcli are controlling the same MPD instance602- 603- • 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.604-• 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.605+ 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, it606+ should change playback if rmpd and upmpdcli are controlling the same MPD instance607 608-mpd now has a plugin that can play music from upnp server 609-https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction610+ • 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.611+ • 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.612+613+ mpd now has a plugin that can play music from upnp server614+ https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction615 */616 617 { pkgs, lib, ... }:618@@ -44,7 +44,7 @@ in619 mpdport = 6600;620 # try to see if I can control it myself621 ownqueue = 0;622- # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo 623+ # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo624 # control the playlist. The client can disconnect after playlist was created625 openhome = 0;626 upnpav = 1;627diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix628index 59d7129..e0cab47 100644629--- a/hosts/jedha/systemd.nix630+++ b/hosts/jedha/systemd.nix631@@ -34,61 +34,60 @@ in632 })633 # disabled because ha-mcp broken634 (lib.mkIf false {635- ha-mcp = {636- description = "Home Assistant MCP server";637- wantedBy = [ "multi-user.target" ];638- wants = [ "network-online.target" ];639- after = [ "network-online.target" ];640- environment = {641- HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";642- HOME = "/var/lib/ha-mcp";643- MCP_HOST = "127.0.0.1";644- MCP_PORT = "8086";645- };646- serviceConfig = {647- ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";648- # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.649- EnvironmentFile = "/var/lib/ha-mcp/environment";650- DynamicUser = true;651- StateDirectory = "ha-mcp";652- WorkingDirectory = "/var/lib/ha-mcp";653- Restart = "on-failure";654- RestartSec = 5;655- UMask = "0077";656- };657+ ha-mcp = {658+ description = "Home Assistant MCP server";659+ wantedBy = [ "multi-user.target" ];660+ wants = [ "network-online.target" ];661+ after = [ "network-online.target" ];662+ environment = {663+ HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}";664+ HOME = "/var/lib/ha-mcp";665+ MCP_HOST = "127.0.0.1";666+ MCP_PORT = "8086";667 };668+ serviceConfig = {669+ ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web";670+ # Root-owned file containing HOMEASSISTANT_TOKEN=<long-lived access token>.671+ EnvironmentFile = "/var/lib/ha-mcp/environment";672+ DynamicUser = true;673+ StateDirectory = "ha-mcp";674+ WorkingDirectory = "/var/lib/ha-mcp";675+ Restart = "on-failure";676+ RestartSec = 5;677+ UMask = "0077";678+ };679+ };680 681- # copied from https://github.com/NixOS/nixpkgs/pull/544252682- # lib.recursiveUpdate slib.systemd.serviceDefaults {683- speech-to-phrase = {684- # after = [ "home-assistant.service" ];685- script = lib.concatStringsSep " " [686- (lib.getExe pkgs.speech-to-phrase)687- "--models-dir"688- "\"$STATE_DIRECTORY/models\""689- "--train-dir"690- "\"$STATE_DIRECTORY/train\""691- # "--custom-sentences-dir" ""692- "--uri 'tcp://127.0.0.1:10400'"693- "--hass-websocket-uri"694- "ws://${hassHost}:${toString hassPort}/api/websocket"695- "--retrain-on-start"696- "--retrain-on-connect"697- "--retrain-seconds"698- "300"699- ];700- serviceConfig = {701- #702- # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;703- Group = "speech-to-phrase";704- StateDirectory = "speech-to-phrase";705- User = "speech-to-phrase";706- # TODO: hardening707- };708+ # copied from https://github.com/NixOS/nixpkgs/pull/544252709+ # lib.recursiveUpdate slib.systemd.serviceDefaults {710+ speech-to-phrase = {711+ # after = [ "home-assistant.service" ];712+ script = lib.concatStringsSep " " [713+ (lib.getExe pkgs.speech-to-phrase)714+ "--models-dir"715+ "\"$STATE_DIRECTORY/models\""716+ "--train-dir"717+ "\"$STATE_DIRECTORY/train\""718+ # "--custom-sentences-dir" ""719+ "--uri 'tcp://127.0.0.1:10400'"720+ "--hass-websocket-uri"721+ "ws://${hassHost}:${toString hassPort}/api/websocket"722+ "--retrain-on-start"723+ "--retrain-on-connect"724+ "--retrain-seconds"725+ "300"726+ ];727+ serviceConfig = {728+ #729+ # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path;730+ Group = "speech-to-phrase";731+ StateDirectory = "speech-to-phrase";732+ User = "speech-to-phrase";733+ # TODO: hardening734 };735+ };736 737- }738- )739+ })740 ];741 742 # just to test743diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix744index 8cbae35..3c41972 100644745--- a/hosts/tatooine/default.nix746+++ b/hosts/tatooine/default.nix747@@ -132,7 +132,6 @@ in748 enableRedistributableFirmware = true;749 sane.enable = true;750 751-752 # High quality BT calls753 # https://nixos.wiki/wiki/Bluetooth754 bluetooth = {755diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix756index adc82dd..1724c86 100644757--- a/hosts/tatooine/services/adguardhome.nix758+++ b/hosts/tatooine/services/adguardhome.nix759@@ -10,7 +10,7 @@760 settings = {761 762 # http (since v0.107.36): Web interface configuration.763- # address: Web interface IP address with port to listen on 764+ # address: Web interface IP address with port to listen on765 http.address = "127.0.0.1:8084";766 767 };768diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix769index dd02f3f..f14c221 100644770--- a/hosts/tatooine/services/avahi.nix771+++ b/hosts/tatooine/services/avahi.nix772@@ -21,19 +21,19 @@773 774 settings = {775 publish = {776- publish-domain = true;777- disable-publishing = false;778- disable-user-service-publishing = false;779- publish-addresses = true;780- };781+ publish-domain = true;782+ disable-publishing = false;783+ disable-user-service-publishing = false;784+ publish-addresses = true;785+ };786 787 server = {788 use-ipv6 = false; # bug with multiple hostnames789- # # 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.790- # # secrets.jedha.hostname;791- # # host-name = "jedha";792- # # enable-dbus = true;793- #794+ # # 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.795+ # # secrets.jedha.hostname;796+ # # host-name = "jedha";797+ # # enable-dbus = true;798+ #799 };800 };801 802diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix803index 0c082b6..58d9c85 100644804--- a/hosts/tatooine/services/pulseaudio.nix805+++ b/hosts/tatooine/services/pulseaudio.nix806@@ -1,9 +1,8 @@807 { pkgs, ... }:808- # cant be enabled with pipewire809- {810- # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false811- enable = false;812- # for ad2p profle ?813- package = pkgs.pulseaudioFull;814- }815-816+# cant be enabled with pipewire817+{818+ # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false819+ enable = false;820+ # for ad2p profle ?821+ package = pkgs.pulseaudioFull;822+}823diff --git a/justfile b/justfile824index a87655b..456c53b 100644825--- a/justfile826+++ b/justfile827@@ -65,7 +65,7 @@ bootstrap-vps target:828 --debug829 830 bump-meli:831- nix-update -F --version=branch=master meli-teto832+ nix-update -F --version=branch=master meli-teto833 834 # just to save the command835 836@@ -321,7 +321,6 @@ inspect-current-generation:837 flash-ulanzi-tc001:838 esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin839 840-841 # check dlna servers on the network842 scan-upnp:843 nmap --script=broadcast-upnp-info 192.168.0.0/16844diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix845index 3820510..e4bca1c 100644846--- a/nixos/profiles/adguardhome.nix847+++ b/nixos/profiles/adguardhome.nix848@@ -9,7 +9,6 @@849 # mutableSettings = true;850 # openFirewall = false;851 852-853 # mutableSettings = true;854 # extraArgs = [];855 856diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix857index 9ceeefc..3835a79 100644858--- a/nixos/profiles/avahi.nix859+++ b/nixos/profiles/avahi.nix860@@ -1,9 +1,6 @@861 /*862-863-guide:864-avahi-browse-domains 865-866-867+ guide:868+ avahi-browse-domains869 */870 {871 config,872@@ -23,7 +20,7 @@ avahi-browse-domains873 874 server = {875 876- # List of non-local DNS domains to be browsed.877+ # List of non-local DNS domains to be browsed.878 browse-domains = [879 # "0pointer.de"880 # "zeroconf.org"881diff --git a/nixos/profiles/desktop/programs/flyline.nix b/nixos/profiles/desktop/programs/flyline.nix882index 3f9282d..9039e39 100644883--- a/nixos/profiles/desktop/programs/flyline.nix884+++ b/nixos/profiles/desktop/programs/flyline.nix885@@ -1,5 +1,5 @@886 {887 enable = true;888- # 889+ #890 # package = ;891 }