treefmt v2.6.0traversed 1637 files emitted 883 files for processing formatted 883 files (49 changed) in 1.186s M by-name/ko/kodi-tetos/package.nix M by-name/ze/zeal-teto/package.nix M config/bash/flyline.sh M config/nvim/after/ftplugin/Avante.lua M config/nvim/after/ftplugin/RikaiPopup.lua M config/nvim/lua/init-manual.lua M config/nvim/lua/plugins/kitty-scrollback.lua M flake.nix M hm/modules/audiocast.nix M hm/modules/flyline.nix M hm/modules/kitty.nix M hm/modules/microsoft.nix M hm/modules/package-sets.nix M hm/profiles/teto-desktop/default.nix M hm/profiles/teto-desktop/programs/codex.nix M hm/profiles/teto-desktop/programs/firefox.nix M hm/profiles/teto-desktop/programs/jujutsu.nix M hm/profiles/teto-desktop/programs/neovim.nix M hm/profiles/teto-desktop/programs/rofi.nix M hm/profiles/teto-desktop/xdg/default.nix M hosts/jedha/default.nix M hosts/jedha/home-manager/users/teto/default.nix M hosts/jedha/home-manager/users/teto/programs/mcp.nix M hosts/jedha/services/avahi.nix M hosts/jedha/services/minidlna.nix M hosts/jedha/services/opentelemetry-collector.nix M hosts/jedha/services/upmpdcli.nix M hosts/jedha/systemd.nix M hosts/router/services/home-assistant.nix M hosts/tatooine/default.nix M hosts/tatooine/home-manager/users/teto/programs/mpv.nix M hosts/tatooine/services/adguardhome.nix M hosts/tatooine/services/avahi.nix M hosts/tatooine/services/mediatomb.nix M hosts/tatooine/services/minidlna.nix M hosts/tatooine/services/pulseaudio.nix M hosts/tatooine/tetos.nix M hosts/wsl/hm-teto.nix M hosts/wsl/llamacpp.nix M justfile M nixos/modules/minidlna.nix M nixos/modules/upnp.nix M nixos/profiles/adguardhome.nix M nixos/profiles/avahi.nix M nixos/profiles/desktop/default.nix M nixos/profiles/desktop/programs/flyline.nix M nixos/profiles/desktop/users/default.nix M nixos/profiles/home-assistant.nix M nixos/profiles/pixiecore.nix diff --git a/by-name/ko/kodi-tetos/package.nix b/by-name/ko/kodi-tetos/package.nix index a4a9a74..4adedee 100644 --- a/by-name/ko/kodi-tetos/package.nix +++ b/by-name/ko/kodi-tetos/package.nix @@ -1,11 +1,13 @@ { kodi, makeWrapper }: let - kodiWithPackages = kodi.withPackages (p: with p; [ - jellyfin - # pvr-iptvsimple - vfs-sftp - ]); + kodiWithPackages = kodi.withPackages ( + p: with p; [ + jellyfin + # pvr-iptvsimple + vfs-sftp + ] + ); in kodiWithPackages.overrideAttrs (oldAttrs: { nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ]; diff --git a/by-name/ze/zeal-teto/package.nix b/by-name/ze/zeal-teto/package.nix index 9442d75..a9d8692 100644 --- a/by-name/ze/zeal-teto/package.nix +++ b/by-name/ze/zeal-teto/package.nix @@ -1,10 +1,9 @@ { zeal }: zeal.overrideAttrs (oa: { - # export QMLSCENE_DEVICE=software - postInstall = '' - wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software - ''; - - }) + # export QMLSCENE_DEVICE=software + postInstall = '' + wrapProgram $out/bin/zeal --set-default QMLSCENE_DEVICE software + ''; +}) diff --git a/config/bash/flyline.sh b/config/bash/flyline.sh index c2b1a84..6b647be 100644 --- a/config/bash/flyline.sh +++ b/config/bash/flyline.sh @@ -10,12 +10,11 @@ flyline history --backend flyline # it flickers # flyline set-cursor --backend flyline --style "#33ccff" --effect fade --effect-easing in-out-sine --interpolate-easing out-elastic --interpolate 2 -# Codex: change +# Codex: change flyline set-agent-mode \ - --system-prompt "Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command. " \ - --trigger-prefix ': ' \ - --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always' - + --system-prompt "Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command. " \ + --trigger-prefix ': ' \ + --command 'codex -a never exec -m GPT-5.1-Codex-Mini --skip-git-repo-check --ephemeral --color always' # Antigravity: # flyline set-agent-mode \ @@ -26,7 +25,6 @@ flyline set-agent-mode \ flyline create-prompt-widget mouse-mode --name MOUSE_MODE "${ANSI_GREEN}M" "${ANSI_BRIGHT_RED}X" flyline create-prompt-widget last-command-duration --name FLYLINE_LAST_COMMAND_DUR - # precmd_functions+=(set_ps1) # Now you can use this animation in your prompt. For example: PS1='\u@\h:\w MOUSE_MODE \n$ ' @@ -51,7 +49,6 @@ PROMPT_RULER_FINAL='' # flyline create-prompt-widget animation --name "MY_ANIMATION" --fps 10 ⣾ ⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽ - # Experiment with higher frame rates for smooth transitions: # flyline create-prompt-widget animation --name "john" --fps 24 \ # '\e[38;2;255;0;0m\u' \ @@ -117,4 +114,4 @@ PROMPT_RULER_FINAL='' # '\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/after/ftplugin/Avante.lua b/config/nvim/after/ftplugin/Avante.lua index 85acdb0..9d9296e 100644 --- a/config/nvim/after/ftplugin/Avante.lua +++ b/config/nvim/after/ftplugin/Avante.lua @@ -14,7 +14,6 @@ vim.opt.showbreak = '' -- - update_content -- - on_state_change - -- local sidebar = require('avante').get() -- vim.api.nvim_create_autocmd('WinEnter', { @@ -29,8 +28,8 @@ vim.opt.showbreak = '' -- vim.wo.cursorline = false vim.wo.foldcolumn = '3' -- auto -- |fold-expr| expr 'foldexpr' gives the fold level of a line. --- could work well, react onto -vim.wo.foldmethod = "expr" +-- could work well, react onto +vim.wo.foldmethod = 'expr' vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -- E5113: Lua chunk: [string "vim/_core/options"]:167: Invalid 'foldcolumn': expected a valid type, got Integer diff --git a/config/nvim/after/ftplugin/RikaiPopup.lua b/config/nvim/after/ftplugin/RikaiPopup.lua index b321120..bc9e2c6 100644 --- a/config/nvim/after/ftplugin/RikaiPopup.lua +++ b/config/nvim/after/ftplugin/RikaiPopup.lua @@ -3,10 +3,9 @@ vim.keymap.set('n', 's', function() -- kokoro --text "GMOインターネットグループは、会社のサーバーへ不正アクセスがあったと言っています。外国の通貨を、自動で売ったり買ったりするサービスです." -o file.wav --debug --language j --voice jf_alpha - vim.fn.jobstart({ - 'mpv', '--no-video', vim.fn.expand('~/home/data/audio/notif1.wav') }, { detach = true }) - + vim.fn.jobstart({ + 'mpv', + '--no-video', + vim.fn.expand('~/home/data/audio/notif1.wav'), + }, { detach = true }) end, { buffer = true, desc = 'Play sound' }) - - - diff --git a/config/nvim/lua/init-manual.lua b/config/nvim/lua/init-manual.lua index 1aed1c2..aecf410 100644 --- a/config/nvim/lua/init-manual.lua +++ b/config/nvim/lua/init-manual.lua @@ -949,8 +949,8 @@ end, { desc = 'Go to file, create if missing' }) -- Outside of the fork it kills the plugin so careful -- normally overriden by setup call vim.g.avante = { - -- -- print error messages, set to false to avoid issues with inspect_ai - debug = false, + -- -- print error messages, set to false to avoid issues with inspect_ai + debug = false, -- log_level = log_level = vim.log.levels.DEBUG, @@ -1090,7 +1090,7 @@ vim.g.avante = { windows = { position = 'right', fillchars = 'eob: ', - -- wrap = false, + -- wrap = false, -- TODO remove sidebar_header = { enabled = true, -- true, false to enable/disable the header @@ -1355,8 +1355,8 @@ vim.api.nvim_create_autocmd({ 'User' }, { vim.notify('avante: LLM answered') -- Leave the event callback before closing all windows, including modified buffers. -- vim.schedule(function() - -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua - -- + -- config/nvim/lua/init-manual.lua:p:hconfig/nvim/lua/init-manual.lua + -- -- vim.cmd('qall!') -- end) end, @@ -1373,22 +1373,17 @@ vim.api.nvim_create_autocmd({ 'User' }, { -- -- ╰─ - -vim.api.nvim_create_autocmd( - 'PackChanged', - { +vim.api.nvim_create_autocmd('PackChanged', { callback = function(ev) - local name, kind = ev.data.spec.name, ev.data.kind - print("package name ", name) - vim.print("spec ", ev.data.spec) - -- vim.print("version ", ev.data.spec.version) - - -- print("package kind ", kind) - -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then - -- -- Call `:AvanteBuild` to download prebuilt libraries - -- vim.system({ 'make' }, { cwd = ev.data.path }):wait() - -- end - end - } -) - + local name, kind = ev.data.spec.name, ev.data.kind + print('package name ', name) + vim.print('spec ', ev.data.spec) + -- vim.print("version ", ev.data.spec.version) + + -- print("package kind ", kind) + -- if name == 'avante.nvim' and (kind == 'install' or kind == 'update') then + -- -- Call `:AvanteBuild` to download prebuilt libraries + -- vim.system({ 'make' }, { cwd = ev.data.path }):wait() + -- end + end, +}) diff --git a/config/nvim/lua/plugins/kitty-scrollback.lua b/config/nvim/lua/plugins/kitty-scrollback.lua index ffcb08a..8b60a67 100644 --- a/config/nvim/lua/plugins/kitty-scrollback.lua +++ b/config/nvim/lua/plugins/kitty-scrollback.lua @@ -2,43 +2,43 @@ -- if you want to create autocommands -- - -- myconfig = { - -- kitty_get_text = { - -- ansi = false, - -- }, - -- }, - -- myfnconfig = function(kitty_data) - -- return { - -- kitty_get_text = { - -- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen', - -- }, - -- } - -- end, +-- myconfig = { +-- kitty_get_text = { +-- ansi = false, +-- }, +-- }, +-- myfnconfig = function(kitty_data) +-- return { +-- kitty_get_text = { +-- extent = (kitty_data.scrolled_by > kitty_data.lines) and 'all' or 'screen', +-- }, +-- } +-- end, require('kitty-scrollback').setup( -- global configuration { - kitty_get_text = { - -- boolean If true, the text will include the ANSI formatting escape codes for colors, - ansi = true, - extent = 'all', - }, - -- scrollback_columns = 300, - -- boolean? if true, writes the scrollback buffer to a temporary file (used for external - scrollback_tempfile = false, - keymaps_enabled = false, - close_after_yank = true, - status_window = { + kitty_get_text = { + -- boolean If true, the text will include the ANSI formatting escape codes for colors, + ansi = true, + extent = 'all', + }, + -- scrollback_columns = 300, + -- boolean? if true, writes the scrollback buffer to a temporary file (used for external + scrollback_tempfile = false, + keymaps_enabled = false, + close_after_yank = true, + status_window = { - style_simple = true, -- user may not have Nerd Fonts installed - show_timer = true, + style_simple = true, -- user may not have Nerd Fonts installed + show_timer = true, - autoclose = true, - }, - paste_window = { - -- yank_register = '', - -- boolean? If true, the yank_register copies content to the paste window. If false, d - -- -- isable yank to paste window - -- yank_register_enabled = false, - } + autoclose = true, + }, + paste_window = { + -- yank_register = '', + -- boolean? If true, the yank_register copies content to the paste window. If false, d + -- -- isable yank to paste window + -- yank_register_enabled = false, + }, } ) diff --git a/flake.nix b/flake.nix index f9725d7..f4c8eaa 100644 --- a/flake.nix +++ b/flake.nix @@ -595,23 +595,24 @@ # ) # ); in - nixosConfigs // nixosConfigsWithoutSecrets // { - + nixosConfigs + // nixosConfigsWithoutSecrets + // { ixeal-spark = nixosConfigs.wsl.extendModules { modules = [ { - networking.hostName = lib.mkForce "ixeal-spark"; - } + networking.hostName = lib.mkForce "ixeal-spark"; + } ]; }; ixeal-matthieu = nixosConfigs.wsl.extendModules { modules = [ { - networking.hostName = lib.mkForce "ixeal-matthieu"; - } + networking.hostName = lib.mkForce "ixeal-matthieu"; + } ]; }; diff --git a/hm/modules/audiocast.nix b/hm/modules/audiocast.nix index e95570a..ae177f7 100644 --- a/hm/modules/audiocast.nix +++ b/hm/modules/audiocast.nix @@ -1,7 +1,13 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let - cfg = config.services.audiocast; -in { + cfg = config.services.audiocast; +in +{ options = { services.audiocast = { enable = lib.mkEnableOption "audiocast-stream"; @@ -16,44 +22,43 @@ in { }; config = lib.mkIf cfg.enable { - - # Renderer friendlyName to discover over SSDP - # Hard-coded AVTransport control URL (skips SSDP discovery) - # else we give url - # ❯ yamaha discover - # name host model udn - # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e - # port 8082 Local HTTP port for the stream - xdg.configFile."audiocast/config" = { - enable = false; - text = '' - [audiocast] - name = Espace Musical - # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery) - mode = app - sink = audiocast - sink_description = AudioCast (DLNA) - ''; -}; - - systemd.user.services.audiocast-stream = { - Unit = { - Description = "Stream PipeWire audio to a DLNA renderer"; - After = [ - "pipewire.service" - "pipewire-pulse.service" - ]; - Wants = [ "pipewire-pulse.service" ]; + # Renderer friendlyName to discover over SSDP + # Hard-coded AVTransport control URL (skips SSDP discovery) + # else we give url + # ❯ yamaha discover + # name host model udn + # Espace Musical 192.168.1.164 R-N800A uuid:9ab0c000-f668-11de-9976-54b7bd990c6e + # port 8082 Local HTTP port for the stream + xdg.configFile."audiocast/config" = { + enable = false; + text = '' + [audiocast] + name = Espace Musical + # url (unset) Hard-coded AVTransport control URL (skips SSDP discovery) + mode = app + sink = audiocast + sink_description = AudioCast (DLNA) + ''; }; - Service = { - ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream"; - Restart = "on-failure"; - # The renderer may be asleep or temporarily off the network. The - # program exits when discovery fails, so retry without a tight loop. - RestartSec = 30; + + systemd.user.services.audiocast-stream = { + Unit = { + Description = "Stream PipeWire audio to a DLNA renderer"; + After = [ + "pipewire.service" + "pipewire-pulse.service" + ]; + Wants = [ "pipewire-pulse.service" ]; + }; + Service = { + ExecStart = "${pkgs.audiocast-stream}/bin/audiocast-stream"; + Restart = "on-failure"; + # The renderer may be asleep or temporarily off the network. The + # program exits when discovery fails, so retry without a tight loop. + RestartSec = 30; + }; + Install.WantedBy = [ "default.target" ]; }; - Install.WantedBy = [ "default.target" ]; - }; }; } diff --git a/hm/modules/flyline.nix b/hm/modules/flyline.nix index 810c110..ab4c58a 100644 --- a/hm/modules/flyline.nix +++ b/hm/modules/flyline.nix @@ -1,8 +1,15 @@ -# -{ config, lib, pkgs, osConfig ? null, ... }: +# +{ + config, + lib, + pkgs, + osConfig ? null, + ... +}: let - cfg = config.programs.flyline; -in { + cfg = config.programs.flyline; +in +{ options = { programs.flyline = { @@ -37,6 +44,6 @@ in { flyline history --backend flyline source ${../../config/bash/flyline.sh} - ''; + ''; }; } diff --git a/hm/modules/kitty.nix b/hm/modules/kitty.nix index b6d495f..e7da295 100644 --- a/hm/modules/kitty.nix +++ b/hm/modules/kitty.nix @@ -54,7 +54,7 @@ in map kitty_mod+h kitty_scrollback_nvim ./tmp # Browse output of the last shell command in nvim map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output - ''; + ''; # # # Browse output of the last shell command in nvim diff --git a/hm/modules/microsoft.nix b/hm/modules/microsoft.nix index 218784e..da475a8 100644 --- a/hm/modules/microsoft.nix +++ b/hm/modules/microsoft.nix @@ -1,8 +1,14 @@ # enable this module to work in a microsoft environment -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let - cfg = config.microsoft; -in { + cfg = config.microsoft; +in +{ options = { microsoft = { enable = lib.mkEnableOption "microsoft"; diff --git a/hm/modules/package-sets.nix b/hm/modules/package-sets.nix index 8d60438..e76a354 100644 --- a/hm/modules/package-sets.nix +++ b/hm/modules/package-sets.nix @@ -62,7 +62,6 @@ in }; - # this gets merged by default config = lib.mkMerge [ { @@ -115,7 +114,6 @@ in pkgs.blazingjj flakeSelf.inputs.jj-gh.packages.${system}.default - # pkgs.gg-jj # pkgs.lazyjj # pkgs.jj-fzf @@ -419,7 +417,6 @@ in lurk # a rust strace lsof # to see open files - # flakeSelf.inputs.starship-jj.packages.${system}.default # custom.jj for starship libossp_uuid # for the 'libuuid' executable @@ -490,7 +487,6 @@ in # rainfrog # database exploration - process-compose # docker-compose - like # rpl # to replace strings across files repgrep # replace matches found by rg @@ -502,7 +498,7 @@ in tmux # when connecting via ssh trurl # used to parse url in the firefox-router executable universal-ctags # there are many different ctags, be careful ! - uv # to install python packages + uv # to install python packages unar # used to view archives by yazi (now using ouch ?) vifm viu # a console image viewer @@ -697,7 +693,7 @@ in pkgs.tsukumi ]; }) - (mkIf cfg.jellyfin { + (mkIf cfg.jellyfin { home.packages = [ @@ -708,13 +704,12 @@ in # pkgs.feishin # GUI # pkgs.jellycli # could not login :/ - # VIDEO compatible # - Jellyfin MPV Shim (ignoreBroken pkgs.tsukimi) # gtk+rust music player GUI pkgs.jellyfin-desktop pkgs.jellyfin-mpv-shim - # jellyhaj # not upstreamed yet + # jellyhaj # not upstreamed yet # fladder # nice GUI # jftui too minimalistic # pkgs.jellyflix # nice diff --git a/hm/profiles/teto-desktop/default.nix b/hm/profiles/teto-desktop/default.nix index 417f45f..c378d94 100644 --- a/hm/profiles/teto-desktop/default.nix +++ b/hm/profiles/teto-desktop/default.nix @@ -114,7 +114,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; @@ -125,7 +125,7 @@ in in [ - kodi-teto + kodi-teto codex # openai agent codex-acp # originated from zed-industries, used in avante @@ -189,9 +189,8 @@ in # kaggle # kaggle interface # python3Packages.kaggle - - sonic-pi # for live music coding - stow # tool to create symlinks + sonic-pi # for live music coding + stow # tool to create symlinks systemctl-tui timr-tui # rust clock @@ -268,7 +267,7 @@ in TETOS_BUILDER_NEOTOKYO = builder_neotokyo; TETOS_BUILDER_JEDHA = builder_jedha; TETOS_BUILDER_NIXCOMMUNITY = builder_nixcommunity; - inherit (secrets) + inherit (secrets) TAVILY_API_KEY FIRECRAWL_API_KEY CONFIDENT_AI_API_KEY diff --git a/hm/profiles/teto-desktop/programs/codex.nix b/hm/profiles/teto-desktop/programs/codex.nix index e282359..ea63df4 100644 --- a/hm/profiles/teto-desktop/programs/codex.nix +++ b/hm/profiles/teto-desktop/programs/codex.nix @@ -1,6 +1,5 @@ { - enable = true; enableMcpIntegration = true; # CODEX_HOME/AGENTS.md. diff --git a/hm/profiles/teto-desktop/programs/firefox.nix b/hm/profiles/teto-desktop/programs/firefox.nix index 9b41b6c..aabc790 100644 --- a/hm/profiles/teto-desktop/programs/firefox.nix +++ b/hm/profiles/teto-desktop/programs/firefox.nix @@ -95,19 +95,18 @@ in # extraConfig = id = 0; - userChrome = - '' - /* Hide tab bar in FF Quantum */ - @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) { - #TabsToolbar { - visibility: collapse !important; - margin-bottom: 21px !important; - } - - } - ''; - - # userContent = + userChrome = '' + /* Hide tab bar in FF Quantum */ + @-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) { + #TabsToolbar { + visibility: collapse !important; + margin-bottom: 21px !important; + } + + } + ''; + + # userContent = # '' # /* Hide scrollbar in FF Quantum */ # *{scrollbar-width:none !important} diff --git a/hm/profiles/teto-desktop/programs/jujutsu.nix b/hm/profiles/teto-desktop/programs/jujutsu.nix index aacec43..9037ef9 100644 --- a/hm/profiles/teto-desktop/programs/jujutsu.nix +++ b/hm/profiles/teto-desktop/programs/jujutsu.nix @@ -34,9 +34,12 @@ name = "teto"; }; ui = { - # jj splits puts the cursor in a f**** position, we need $line to restore + # jj splits puts the cursor in a f**** position, we need $line to restore # sane behavior https://github.com/jj-vcs/jj/pull/10269/changes - editor = ["nvim" "+$line"]; + editor = [ + "nvim" + "+$line" + ]; default-command = "status"; merge-editor = "nvim"; # Enable pagination for commands that support it (default) diff --git a/hm/profiles/teto-desktop/programs/neovim.nix b/hm/profiles/teto-desktop/programs/neovim.nix index 90413e9..ce5e554 100644 --- a/hm/profiles/teto-desktop/programs/neovim.nix +++ b/hm/profiles/teto-desktop/programs/neovim.nix @@ -246,7 +246,7 @@ let fswatch # better file watching starting with 0.10 # go # for gitlab.nvim, we can probably ditch it afterwards - lemminx # + lemminx luajitPackages.luacheck luau-lsp diff --git a/hm/profiles/teto-desktop/programs/rofi.nix b/hm/profiles/teto-desktop/programs/rofi.nix index be52e45..f9d09d8 100644 --- a/hm/profiles/teto-desktop/programs/rofi.nix +++ b/hm/profiles/teto-desktop/programs/rofi.nix @@ -37,8 +37,8 @@ location = "center"; modes = [ - # modes: [ combi ]; - # combi-modes: [ window, drun, run ]; + # modes: [ combi ]; + # combi-modes: [ window, drun, run ]; ]; diff --git a/hm/profiles/teto-desktop/xdg/default.nix b/hm/profiles/teto-desktop/xdg/default.nix index 0dad1af..11dd2ad 100644 --- a/hm/profiles/teto-desktop/xdg/default.nix +++ b/hm/profiles/teto-desktop/xdg/default.nix @@ -101,12 +101,12 @@ "bash/bashrc".text = '' script_dir="$(cd -- "$(dirname -- "''${BASH_SOURCE[0]}")" && pwd)" source "$script_dir/manual.sh" - '' - # check if flyline defined too ? - + lib.optionalString osConfig.programs.flyline.enable '' - source "$script_dir/flyline.sh" + '' + # check if flyline defined too ? + + lib.optionalString osConfig.programs.flyline.enable '' + source "$script_dir/flyline.sh" - ''; + ''; "nvim/lua/generated-by-nix.lua" = let diff --git a/hosts/jedha/default.nix b/hosts/jedha/default.nix index 4e65ba3..401717a 100644 --- a/hosts/jedha/default.nix +++ b/hosts/jedha/default.nix @@ -91,12 +91,20 @@ in # Upmpdcli's local-library server needs both discovery and HTTP access. networking.firewall = lib.mkIf config.services.upmpdcli.enable { allowedUDPPorts = [ 1900 ]; - allowedTCPPorts = with config.services.upmpdcli.configuration; [ upnpport uprclport ]; + allowedTCPPorts = with config.services.upmpdcli.configuration; [ + upnpport + uprclport + ]; }; systemd.services.upmpdcli = lib.mkIf config.services.upmpdcli.enable { # The library plugin launches recollindex; OpenHome uses Python and OpenSSL. - path = [ pkgs.recoll pkgs.python3 pkgs.openssl pkgs.diffutils ]; + path = [ + pkgs.recoll + pkgs.python3 + pkgs.openssl + pkgs.diffutils + ]; unitConfig.RequiresMountsFor = [ config.services.upmpdcli.configuration.uprclmediadirs ]; }; diff --git a/hosts/jedha/home-manager/users/teto/default.nix b/hosts/jedha/home-manager/users/teto/default.nix index babb3bb..861919d 100644 --- a/hosts/jedha/home-manager/users/teto/default.nix +++ b/hosts/jedha/home-manager/users/teto/default.nix @@ -104,7 +104,6 @@ in btop-cuda # for jedha brush # a rust implementation of bash - # creates conflicts since it brings python and several executables # flakeSelf.inputs.avante-nvim.packages.${pkgs.stdenv.hostPlatform.system}.ragService @@ -147,9 +146,9 @@ in # bridge-utils# pour brctl # vscode-css-languageserver # to showcase 'cssls' lsp server - rura # to build shell pipelines + rura # to build shell pipelines # termusic # terminal music - + ]; package-sets = { diff --git a/hosts/jedha/home-manager/users/teto/programs/mcp.nix b/hosts/jedha/home-manager/users/teto/programs/mcp.nix index 3378a39..9ce7079 100644 --- a/hosts/jedha/home-manager/users/teto/programs/mcp.nix +++ b/hosts/jedha/home-manager/users/teto/programs/mcp.nix @@ -1,36 +1,34 @@ { pkgs, lib, ... }: { - enable = true; # github:utensils/mcp-nixos - servers = - { - - nixos = { - command = "${pkgs.mcp-nixos}/bin/mcp-nixos"; - }; - - # https://github.com/homeassistant-ai/ha-mcp - ha-mcp = { - - command = "${lib.getExe pkgs.ha-mcp}"; - - }; - - # everything = { - # command = "npx"; - # args = [ "-y" "@modelcontextprotocol/server-everything" ]; - # }; - # context7 = { - # url = "https://mcp.context7.com/mcp"; - # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}"; - # }; - # codeberg = { - # command = "/path/to/forgejo-mcp"; - # args = [ "transport" "stdio" "--url" "https://codeberg.org" ]; - # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token"; - # }; - }; + servers = { + + nixos = { + command = "${pkgs.mcp-nixos}/bin/mcp-nixos"; + }; + + # https://github.com/homeassistant-ai/ha-mcp + ha-mcp = { + + command = "${lib.getExe pkgs.ha-mcp}"; + + }; + + # everything = { + # command = "npx"; + # args = [ "-y" "@modelcontextprotocol/server-everything" ]; + # }; + # context7 = { + # url = "https://mcp.context7.com/mcp"; + # headers.CONTEXT7_API_KEY = "{env:CONTEXT7_API_KEY}"; + # }; + # codeberg = { + # command = "/path/to/forgejo-mcp"; + # args = [ "transport" "stdio" "--url" "https://codeberg.org" ]; + # env.FORGEJO_ACCESS_TOKEN.file = "/run/secrets/codeberg_token"; + # }; + }; } diff --git a/hosts/jedha/services/avahi.nix b/hosts/jedha/services/avahi.nix index 083732e..09017c2 100644 --- a/hosts/jedha/services/avahi.nix +++ b/hosts/jedha/services/avahi.nix @@ -13,7 +13,6 @@ debug = true; - # allowInterfaces = [ # "wlp10s0" # ]; @@ -30,13 +29,12 @@ }; publish = { - disable-publishing = false; - disable-user-service-publishing = false; - publish-addresses = true; - }; - + disable-publishing = false; + disable-user-service-publishing = false; + publish-addresses = true; }; + }; nssmdns4 = true; # publish = { diff --git a/hosts/jedha/services/minidlna.nix b/hosts/jedha/services/minidlna.nix index 7f3f4aa..f62f7ed 100644 --- a/hosts/jedha/services/minidlna.nix +++ b/hosts/jedha/services/minidlna.nix @@ -7,7 +7,6 @@ # announceInterval = 60; openFirewall = true; - # there are udp errors when it binds to wireguard network ? settings = { @@ -16,9 +15,9 @@ friendly_name = "jedha"; # inotify = "yes"; log_level = "warn"; - media_dir = [ + media_dir = [ # can be prefixed with V/A, to filter audio/video - "/mnt/ext/music" + "/mnt/ext/music" ]; inotify = "yes"; # db_dir = diff --git a/hosts/jedha/services/opentelemetry-collector.nix b/hosts/jedha/services/opentelemetry-collector.nix index 28cc3b4..1d1609c 100644 --- a/hosts/jedha/services/opentelemetry-collector.nix +++ b/hosts/jedha/services/opentelemetry-collector.nix @@ -1,23 +1,22 @@ { - enable = true; settings = -let - port = 4318; -in + let + port = 4318; + in { - exporters.debug.verbosity = "detailed"; - receivers.otlp.protocols = { - http.endpoint = "0.0.0.0:${toString port}"; - }; - service = { - pipelines.logs = { - receivers = [ "otlp" ]; - exporters = [ "debug" ]; - }; - }; + exporters.debug.verbosity = "detailed"; + receivers.otlp.protocols = { + http.endpoint = "0.0.0.0:${toString port}"; + }; + service = { + pipelines.logs = { + receivers = [ "otlp" ]; + exporters = [ "debug" ]; + }; + }; - }; + }; } diff --git a/hosts/jedha/services/upmpdcli.nix b/hosts/jedha/services/upmpdcli.nix index ef04f30..390f091 100644 --- a/hosts/jedha/services/upmpdcli.nix +++ b/hosts/jedha/services/upmpdcli.nix @@ -1,12 +1,12 @@ /* -upmpdcli is a bridge: it receives UPnP commands and controls an MPD server. The UPnP player itself doesn’t play the song; MPD fetches and plays it. So when you choose a track in rmpd, it - should change playback if rmpd and upmpdcli are controlling the same MPD instance - - • MPD browsing UPnP servers: MPD has a built-in UPnP/DLNA database plugin (available in MPD 0.19+ configured with --enable-upnp) that lets MPD act as a client to browse and stream music from UPnP media servers. You browse the server's folder and directory trees using a standard MPD client, though direct tag-based queries (like artist/album/genre database searches) and saving playlists directly can have limitations. -• Using MPD as a UPnP Renderer (upmpdcli): If you want to send music from an external UPnP control point (such as BubbleUPnP on your phone) to MPD, you use a front-end like upmpdcli. In this setup, the control point talks UPnP to upmpdcli, which translates the commands into the MPD protocol to populate and control the local MPD playlist. + upmpdcli is a bridge: it receives UPnP commands and controls an MPD server. The UPnP player itself doesn’t play the song; MPD fetches and plays it. So when you choose a track in rmpd, it + should change playback if rmpd and upmpdcli are controlling the same MPD instance -mpd now has a plugin that can play music from upnp server -https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction + • MPD browsing UPnP servers: MPD has a built-in UPnP/DLNA database plugin (available in MPD 0.19+ configured with --enable-upnp) that lets MPD act as a client to browse and stream music from UPnP media servers. You browse the server's folder and directory trees using a standard MPD client, though direct tag-based queries (like artist/album/genre database searches) and saving playlists directly can have limitations. + • Using MPD as a UPnP Renderer (upmpdcli): If you want to send music from an external UPnP control point (such as BubbleUPnP on your phone) to MPD, you use a front-end like upmpdcli. In this setup, the control point talks UPnP to upmpdcli, which translates the commands into the MPD protocol to populate and control the local MPD playlist. + + mpd now has a plugin that can play music from upnp server + https://www.lesbonscomptes.com/pages/mpd-upnp.html#_introduction */ { pkgs, lib, ... }: @@ -44,7 +44,7 @@ in mpdport = 6600; # try to see if I can control it myself ownqueue = 0; - # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo + # seems to be a weird protocol that lets programs such as bubbleupnp or linn kazoo # control the playlist. The client can disconnect after playlist was created openhome = 0; upnpav = 1; diff --git a/hosts/jedha/systemd.nix b/hosts/jedha/systemd.nix index 59d7129..e0cab47 100644 --- a/hosts/jedha/systemd.nix +++ b/hosts/jedha/systemd.nix @@ -34,61 +34,60 @@ in }) # disabled because ha-mcp broken (lib.mkIf false { - ha-mcp = { - description = "Home Assistant MCP server"; - wantedBy = [ "multi-user.target" ]; - wants = [ "network-online.target" ]; - after = [ "network-online.target" ]; - environment = { - HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}"; - HOME = "/var/lib/ha-mcp"; - MCP_HOST = "127.0.0.1"; - MCP_PORT = "8086"; - }; - serviceConfig = { - ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web"; - # Root-owned file containing HOMEASSISTANT_TOKEN=. - EnvironmentFile = "/var/lib/ha-mcp/environment"; - DynamicUser = true; - StateDirectory = "ha-mcp"; - WorkingDirectory = "/var/lib/ha-mcp"; - Restart = "on-failure"; - RestartSec = 5; - UMask = "0077"; - }; + ha-mcp = { + description = "Home Assistant MCP server"; + wantedBy = [ "multi-user.target" ]; + wants = [ "network-online.target" ]; + after = [ "network-online.target" ]; + environment = { + HOMEASSISTANT_URL = "http://${hassHost}:${toString hassPort}"; + HOME = "/var/lib/ha-mcp"; + MCP_HOST = "127.0.0.1"; + MCP_PORT = "8086"; }; + serviceConfig = { + ExecStart = lib.getExe' pkgs.ha-mcp "ha-mcp-web"; + # Root-owned file containing HOMEASSISTANT_TOKEN=. + EnvironmentFile = "/var/lib/ha-mcp/environment"; + DynamicUser = true; + StateDirectory = "ha-mcp"; + WorkingDirectory = "/var/lib/ha-mcp"; + Restart = "on-failure"; + RestartSec = 5; + UMask = "0077"; + }; + }; - # copied from https://github.com/NixOS/nixpkgs/pull/544252 - # lib.recursiveUpdate slib.systemd.serviceDefaults { - speech-to-phrase = { - # after = [ "home-assistant.service" ]; - script = lib.concatStringsSep " " [ - (lib.getExe pkgs.speech-to-phrase) - "--models-dir" - "\"$STATE_DIRECTORY/models\"" - "--train-dir" - "\"$STATE_DIRECTORY/train\"" - # "--custom-sentences-dir" "" - "--uri 'tcp://127.0.0.1:10400'" - "--hass-websocket-uri" - "ws://${hassHost}:${toString hassPort}/api/websocket" - "--retrain-on-start" - "--retrain-on-connect" - "--retrain-seconds" - "300" - ]; - serviceConfig = { - # - # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path; - Group = "speech-to-phrase"; - StateDirectory = "speech-to-phrase"; - User = "speech-to-phrase"; - # TODO: hardening - }; + # copied from https://github.com/NixOS/nixpkgs/pull/544252 + # lib.recursiveUpdate slib.systemd.serviceDefaults { + speech-to-phrase = { + # after = [ "home-assistant.service" ]; + script = lib.concatStringsSep " " [ + (lib.getExe pkgs.speech-to-phrase) + "--models-dir" + "\"$STATE_DIRECTORY/models\"" + "--train-dir" + "\"$STATE_DIRECTORY/train\"" + # "--custom-sentences-dir" "" + "--uri 'tcp://127.0.0.1:10400'" + "--hass-websocket-uri" + "ws://${hassHost}:${toString hassPort}/api/websocket" + "--retrain-on-start" + "--retrain-on-connect" + "--retrain-seconds" + "300" + ]; + serviceConfig = { + # + # EnvironmentFile = config.sops.templates."speech-to-phrase/environment".path; + Group = "speech-to-phrase"; + StateDirectory = "speech-to-phrase"; + User = "speech-to-phrase"; + # TODO: hardening }; + }; - } - ) + }) ]; # just to test diff --git a/hosts/router/services/home-assistant.nix b/hosts/router/services/home-assistant.nix index 5a92154..337beb9 100644 --- a/hosts/router/services/home-assistant.nix +++ b/hosts/router/services/home-assistant.nix @@ -34,7 +34,7 @@ in ]; customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [ -# pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix + # pkgs/servers/home-assistant/custom-lovelace-modules/easy-floorplan/package.nix easy-floorplan button-card # home-assistant-custom-lovelace-modules.sankey-chart @@ -68,8 +68,6 @@ in material-you-theme ]; - - blueprints = { automation = [ # ATTENTION: The name should contain the extension .yaml diff --git a/hosts/tatooine/default.nix b/hosts/tatooine/default.nix index a81a7ef..928f21c 100644 --- a/hosts/tatooine/default.nix +++ b/hosts/tatooine/default.nix @@ -132,7 +132,6 @@ in enableRedistributableFirmware = true; sane.enable = true; - # High quality BT calls # https://nixos.wiki/wiki/Bluetooth bluetooth = { diff --git a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix index 6210293..5c3a889 100644 --- a/hosts/tatooine/home-manager/users/teto/programs/mpv.nix +++ b/hosts/tatooine/home-manager/users/teto/programs/mpv.nix @@ -1,9 +1,9 @@ -{ pkgs, ...}: +{ pkgs, ... }: { - scripts = [ - # as python - # pkgs.mpvDLNA - ]; + scripts = [ + # as python + # pkgs.mpvDLNA + ]; } diff --git a/hosts/tatooine/services/adguardhome.nix b/hosts/tatooine/services/adguardhome.nix index adc82dd..1724c86 100644 --- a/hosts/tatooine/services/adguardhome.nix +++ b/hosts/tatooine/services/adguardhome.nix @@ -10,7 +10,7 @@ settings = { # http (since v0.107.36): Web interface configuration. - # address: Web interface IP address with port to listen on + # address: Web interface IP address with port to listen on http.address = "127.0.0.1:8084"; }; diff --git a/hosts/tatooine/services/avahi.nix b/hosts/tatooine/services/avahi.nix index dd02f3f..f14c221 100644 --- a/hosts/tatooine/services/avahi.nix +++ b/hosts/tatooine/services/avahi.nix @@ -21,19 +21,19 @@ settings = { publish = { - publish-domain = true; - disable-publishing = false; - disable-user-service-publishing = false; - publish-addresses = true; - }; + publish-domain = true; + disable-publishing = false; + disable-user-service-publishing = false; + publish-addresses = true; + }; server = { use-ipv6 = false; # bug with multiple hostnames - # # Set the host name avahi-daemon tries to register on the LAN. If omited defaults to the system host name as set with the sethostname() system call. - # # secrets.jedha.hostname; - # # host-name = "jedha"; - # # enable-dbus = true; - # + # # Set the host name avahi-daemon tries to register on the LAN. If omited defaults to the system host name as set with the sethostname() system call. + # # secrets.jedha.hostname; + # # host-name = "jedha"; + # # enable-dbus = true; + # }; }; diff --git a/hosts/tatooine/services/mediatomb.nix b/hosts/tatooine/services/mediatomb.nix index 4cd2e1d..a9725d3 100644 --- a/hosts/tatooine/services/mediatomb.nix +++ b/hosts/tatooine/services/mediatomb.nix @@ -1,6 +1,6 @@ # it's gerbera in fact { pkgs, ... }: -let +let # # freeboxRevolution6Mappings = '' # @@ -68,78 +68,77 @@ in # to avoid having to rewire the permissions group = "minidlna"; - interface="wlp2s0"; + interface = "wlp2s0"; # we should use subsitute for the VLC/ffmpedg commands -# postInstall = '' -# substitute $src/config.in $out/config \ -# --replace-fail '@X@' "$X" -# ''; -# -# For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set. -transcoding = '' - - video/mpeg - no - yes - no - - - - - audio/aac - no - yes - no - - - - - - - - - - - - - ''; - + # postInstall = '' + # substitute $src/config.in $out/config \ + # --replace-fail '@X@' "$X" + # ''; + # + # For standard placeholders such as @out@ or @bash@, nixpkgs also provides substituteAll, which replaces them from the build environment or an attribute set. + transcoding = '' + + + video/mpeg + no + yes + no + + + + + audio/aac + no + yes + no + + + + + + + + + + + + + ''; -# from-file="${./transcoding.xml}" />''; + # from-file="${./transcoding.xml}" />''; mappings = ''''; - -# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes -# # Les codecs vidéos : -# # H.264 ; -# # MPEG2 ; -# # MS-MPEG4 (DivX 3) ; -# # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ; -# # VC1. -# # -# # Les codecs audios : -# # en decode : -# # AAC, ; -# # M Dolby Digital (downmix 2.0) ; -# # Dolby Digital Plus(downmix 2.0) -# # DTS core (downmix 2.0) ; -# # FLAC ; -# # MP2 ; -# # MP3 ; -# # Vorbis. -# # -# # en passthrough (via la sortie HDMI) : -# # AAC ; -# # Dolby Digital ; -# # Dolby Digital Plus ; -# # Dolby Digital TrueHD ; -# # DTS ; -# # DTS-HD (MA et HRA). -# # d'apres -# # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes + # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes + # # Les codecs vidéos : + # # H.264 ; + # # MPEG2 ; + # # MS-MPEG4 (DivX 3) ; + # # MPEG4 (DivX 4, DivX 5, DivX 6, Xvid) ; + # # VC1. + # # + # # Les codecs audios : + # # en decode : + # # AAC, ; + # # M Dolby Digital (downmix 2.0) ; + # # Dolby Digital Plus(downmix 2.0) + # # DTS core (downmix 2.0) ; + # # FLAC ; + # # MP2 ; + # # MP3 ; + # # Vorbis. + # # + # # en passthrough (via la sortie HDMI) : + # # AAC ; + # # Dolby Digital ; + # # Dolby Digital Plus ; + # # Dolby Digital TrueHD ; + # # DTS ; + # # DTS-HD (MA et HRA). + # # d'apres + # # https://www.universfreebox.com/article/13461/Freebox-Revolution-Quels-sont-les-formats-audios-et-videos-supportes # Configured the Freebox transcode profiles through services.mediatomb.transcodingProfiles and MIME mappings in mediatomb.nix (hosts/tatooine/services/mediatomb.nix). Video transcodes to H.264/AAC in MPEG-TS; Ogg audio transcodes to AAC. # @@ -178,19 +177,18 @@ transcoding = '' # 49152 already used by mdp port = 49153; - mediaDirectories= [ - { - hidden-files = false; - path = "/home/teto/videos"; - recursive = true; - } - { - hidden-files = false; - path = "/home/teto/Music"; - recursive = true; - } - - ]; + mediaDirectories = [ + { + hidden-files = false; + path = "/home/teto/videos"; + recursive = true; + } + { + hidden-files = false; + path = "/home/teto/Music"; + recursive = true; + } + ]; } diff --git a/hosts/tatooine/services/minidlna.nix b/hosts/tatooine/services/minidlna.nix index 5a3e20e..e9c8039 100644 --- a/hosts/tatooine/services/minidlna.nix +++ b/hosts/tatooine/services/minidlna.nix @@ -13,7 +13,6 @@ # to receive sssdp answers openFirewall = true; - # there are udp errors when it binds to wireguard network ? settings = { @@ -22,7 +21,7 @@ friendly_name = "tatooine"; # inotify = "yes"; log_level = "warn"; - media_dir = [ + media_dir = [ # can be prefixed with V/A, to filter audio/video "/home/teto/videos" "/home/teto/Music" @@ -30,11 +29,9 @@ # Network interface to bind (optional; self-discovers if commented out) # to avoid erros on wireguard if - network_interface="wlp2s0"; + network_interface = "wlp2s0"; # to remove warnings inotify = "no"; # db_dir = }; } - - diff --git a/hosts/tatooine/services/pulseaudio.nix b/hosts/tatooine/services/pulseaudio.nix index 0c082b6..58d9c85 100644 --- a/hosts/tatooine/services/pulseaudio.nix +++ b/hosts/tatooine/services/pulseaudio.nix @@ -1,9 +1,8 @@ { pkgs, ... }: - # cant be enabled with pipewire - { - # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false - enable = false; - # for ad2p profle ? - package = pkgs.pulseaudioFull; - } - +# cant be enabled with pipewire +{ + # Using PipeWire as the sound server conflicts with PulseAudio. This option requires `services.pulseaudio.enable` to be set to false + enable = false; + # for ad2p profle ? + package = pkgs.pulseaudioFull; +} diff --git a/hosts/tatooine/tetos.nix b/hosts/tatooine/tetos.nix index e158259..4b6709c 100644 --- a/hosts/tatooine/tetos.nix +++ b/hosts/tatooine/tetos.nix @@ -9,7 +9,8 @@ { allowUpnp = true; -} // lib.optionalAttrs withSecrets { +} +// lib.optionalAttrs withSecrets { wireguard = { id = 2; publicKey = "HPrWcZUuJMsxc+qDrN08IC9GJoy/c1UofmvmTC/bm3U="; @@ -19,4 +20,4 @@ flakeSelf.nixosConfigurations.neotokyo ]; }; -} +} diff --git a/hosts/wsl/hm-teto.nix b/hosts/wsl/hm-teto.nix index ef31ff2..a4ca0d6 100644 --- a/hosts/wsl/hm-teto.nix +++ b/hosts/wsl/hm-teto.nix @@ -1,29 +1,34 @@ -{ config, lib, pkgs, ... }: { - programs.git = { - enable = true; - includes = [ + config, + lib, + pkgs, + ... +}: +{ + programs.git = { + enable = true; + includes = [ + + { path = config.xdg.configHome + "/git/manual.gitconfig"; } + ]; - { path = config.xdg.configHome + "/git/manual.gitconfig"; } - ]; + package = pkgs.gitFull; # to get send-email - package = pkgs.gitFull; # to get send-email + settings = { + # user = { + # email = lib.mkForce "886074+teto@users.noreply.github.com"; + # }; + user = { + # mkForce due to nova + name = "Matthieu C."; + email = lib.mkForce "886074+teto@users.noreply.github.com"; + }; - settings = { - # user = { - # email = lib.mkForce "886074+teto@users.noreply.github.com"; - # }; - user = { - # mkForce due to nova - name = "Matthieu C."; - email = lib.mkForce "886074+teto@users.noreply.github.com"; + # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE + credential.helper = "store"; }; - # https://git-scm.com/book/en/v2/Git-Tools-Credential-StoragE - credential.helper = "store"; }; -}; - -programs.flyline.enable = true; + programs.flyline.enable = true; } diff --git a/hosts/wsl/llamacpp.nix b/hosts/wsl/llamacpp.nix index d9f179f..d1f1f13 100644 --- a/hosts/wsl/llamacpp.nix +++ b/hosts/wsl/llamacpp.nix @@ -1,5 +1,4 @@ { enable = true; - } diff --git a/justfile b/justfile index 36b0eaf..c6478cc 100644 --- a/justfile +++ b/justfile @@ -65,12 +65,12 @@ bootstrap-vps target: --debug bump-meli: - nix-update -F --version=branch=master meli-teto + nix-update -F --version=branch=master meli-teto # urn:schemas-upnp-org:device:MediaRenderer:1 discover-upnp-renderers: - gssdp-discover --timeout=5 \ - --target=urn:schemas-upnp-org:device:MediaRenderer:1 + gssdp-discover --timeout=5 \ + --target=urn:schemas-upnp-org:device:MediaRenderer:1 # just to save the command @@ -326,7 +326,6 @@ inspect-current-generation: flash-ulanzi-tc001: esptool --chip esp32 --port /dev/ttyUSB0 --baud 460800 write-flash 0x0 usb-awtrix-ng-4mb.bin - # check dlna servers on the network scan-upnp: nmap --script=broadcast-upnp-info 192.168.0.0/16 diff --git a/nixos/modules/minidlna.nix b/nixos/modules/minidlna.nix index c73a06e..5448ba8 100644 --- a/nixos/modules/minidlna.nix +++ b/nixos/modules/minidlna.nix @@ -1,7 +1,8 @@ { config, lib, ... }: let cfg = config.services.minidlna; - mediaDirs = map (dir: + mediaDirs = map ( + dir: let prefix = builtins.match "^[A-Za-z]:(.*)$" dir; in diff --git a/nixos/modules/upnp.nix b/nixos/modules/upnp.nix index dd25744..86ddd25 100644 --- a/nixos/modules/upnp.nix +++ b/nixos/modules/upnp.nix @@ -1,7 +1,8 @@ { config, lib, ... }: let - cfg = config.programs.upnp; -in { + cfg = config.programs.upnp; +in +{ options = { programs.upnp = { enable = lib.mkEnableOption "upnp"; @@ -17,13 +18,12 @@ in { config = lib.mkIf cfg.enable { networking.firewall.allowedUDPPorts = lib.mkIf cfg.openFirewall [ 1900 ]; - networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [8200]; -# # SSDP multicast discovery port (UDP) -# sudo ufw allow 1900/udp comment 'DLNA SSDP' -# -# # MiniDLNA HTTP streaming & web status port (TCP) -# sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP' + networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 8200 ]; + # # SSDP multicast discovery port (UDP) + # sudo ufw allow 1900/udp comment 'DLNA SSDP' + # + # # MiniDLNA HTTP streaming & web status port (TCP) + # sudo ufw allow 8200/tcp comment 'MiniDLNA HTTP' }; } - diff --git a/nixos/profiles/adguardhome.nix b/nixos/profiles/adguardhome.nix index 3820510..e4bca1c 100644 --- a/nixos/profiles/adguardhome.nix +++ b/nixos/profiles/adguardhome.nix @@ -9,7 +9,6 @@ # mutableSettings = true; # openFirewall = false; - # mutableSettings = true; # extraArgs = []; diff --git a/nixos/profiles/avahi.nix b/nixos/profiles/avahi.nix index 9ceeefc..3835a79 100644 --- a/nixos/profiles/avahi.nix +++ b/nixos/profiles/avahi.nix @@ -1,9 +1,6 @@ /* - -guide: -avahi-browse-domains - - + guide: + avahi-browse-domains */ { config, @@ -23,7 +20,7 @@ avahi-browse-domains 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/default.nix b/nixos/profiles/desktop/default.nix index db4eb98..38e8c16 100644 --- a/nixos/profiles/desktop/default.nix +++ b/nixos/profiles/desktop/default.nix @@ -2,7 +2,6 @@ { fonts.enableDefaultPackages = true; - console = { # seems like a kernel bug resets it https://github.com/NixOS/nixpkgs/issues/413128 earlySetup = true; 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 = ; } diff --git a/nixos/profiles/desktop/users/default.nix b/nixos/profiles/desktop/users/default.nix index daadd3f..d3fc61c 100644 --- a/nixos/profiles/desktop/users/default.nix +++ b/nixos/profiles/desktop/users/default.nix @@ -1,3 +1,3 @@ { - groups.minidlna = {}; + groups.minidlna = { }; } diff --git a/nixos/profiles/home-assistant.nix b/nixos/profiles/home-assistant.nix index aac0d91..995a67c 100644 --- a/nixos/profiles/home-assistant.nix +++ b/nixos/profiles/home-assistant.nix @@ -17,13 +17,12 @@ # # "deconz" # interface for zigbee conbee II # ]; - package = pkgs.home-assistant.override { extraPackages = ps: [ ps.psycopg2 - # disabled because of ? - # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await + # disabled because of ? + # Detected that integration ‘cloud’ attempted to create another Zeroconf instance. Please use the shared Zeroconf via await # https://community.home-assistant.io/t/cloud-attempted-to-create-another-zeroconf-instance-when-adding-http-configuration/861908 # # enables several default components # ps.hass-nabucasa # to be able to login to cloud @@ -74,7 +73,7 @@ assist_pipeline = { }; # bluetooth = {}; # NO # # enables several default components. DO NOT REMOVE (?) - default_config = { }; + default_config = { }; # map = {}; # show a local map network = { }; homeassistant = { diff --git a/nixos/profiles/pixiecore.nix b/nixos/profiles/pixiecore.nix index c6a5355..141a4f8 100644 --- a/nixos/profiles/pixiecore.nix +++ b/nixos/profiles/pixiecore.nix @@ -117,7 +117,7 @@ in # one of “api”, “boot”, “quick” package = pkgs.pixiecore-arm64; mode = "boot"; -# enp1s0f0 + # enp1s0f0 # extraArguments = ; # listen # cmdLine = ;