1. 🏠主页
  2. 1. 📔README.md
  3. 🌏全局配置
  4. 2. config.nix
  5. 3. TODO: nix/nix.conf
  6. 4. opt.nix
  7. 🖥️系统配置(需sudo,用于NixOS)
  8. 5. system.nix
  9. 6. sys/
    1. 6.1. cachix-push.nix.md
    2. 6.2. cli/
      1. 6.2.1. build-machines.nix.md
      2. 6.2.2. sys/cli
    3. 6.3. sys/default.nix
    4. 6.4. gui/
      1. 6.4.1. default.nix.md
      2. 6.4.2. xingyao-audio/
        1. 6.4.2.1. default.nix.md
        2. 6.4.2.2. test.nix.md
  10. 😺用户配置(无需sudo,用于Nix/NixOS)
  11. 7. home.nix
  12. 8. usr/
    1. 8.1. ai/
      1. 8.1.1. default.nix.md
      2. 8.1.2. Models.dev API catalog
        1. 8.1.2.1. default.nix.md
        2. 8.1.2.2. test.nix.md
      3. 8.1.3. Run with nix-instantiate --eval --strict --read-write-mode global-args/ai/test.nix.
    2. 8.2. cachix-push.nix.md
    3. 8.3. cachix-push.test.nix.md
    4. 8.4. cli/
      1. 8.4.1. basic/
        1. 8.4.1.1. clash/
          1. 8.4.1.1.1. default.nix.md
          2. 8.4.1.1.2. test.nix.md
          3. 8.4.1.1.3. tui/
            1. 8.4.1.1.3.1. default.nix.md
            2. 8.4.1.1.3.2. package.nix.md
        2. 8.4.1.2. default.nix.md
        3. 8.4.1.3. git/
          1. 8.4.1.3.1. compact-graph/
            1. 8.4.1.3.1.1. default.nix.md
          2. 8.4.1.3.2. default.nix.md
          3. 8.4.1.3.3. gh.nix.md
          4. 8.4.1.3.4. lazygit/
            1. 8.4.1.3.4.1. Co-author display
              1. 8.4.1.3.4.1.1. default.nix.md
            2. 8.4.1.3.4.2. default.nix.md
        4. 8.4.1.4. 📑neovim
          1. 8.4.1.4.1. auto sessions management
          2. 8.4.1.4.2. completion
          3. 8.4.1.4.3. key bindings of closing windows
          4. 8.4.1.4.4. TODO: sonokai does not support light theme.
          5. 8.4.1.4.5. conform-nvim: formatter
          6. 8.4.1.4.6. default.nix.md
          7. 8.4.1.4.7. fold
          8. 8.4.1.4.8. git-wip: auto wip branch
          9. 8.4.1.4.9. Replacing lazygit with Snacks git pickers + gitsigns
          10. 8.4.1.4.10. gitsigns/
            1. 8.4.1.4.10.1. gitsigns-nvim: git support
          11. 8.4.1.4.11. hbac-nvim.nix.md
          12. 8.4.1.4.12. leap-nvim.nix.md
          13. 8.4.1.4.13. lspconfig/
            1. 8.4.1.4.13.1. lspconfig for C/C++ language
            2. 8.4.1.4.13.2. ctags.nix.md
            3. 8.4.1.4.13.3. nvim-lspconfig
            4. 8.4.1.4.13.4. lua.nix.md
            5. 8.4.1.4.13.5. rust/
              1. 8.4.1.4.13.5.1. default.nix.md
              2. 8.4.1.4.13.5.2. Rust-Analyzer Go-to-Definition Quirks with Operators
            6. 8.4.1.4.13.6. If metals throw errors, check /.metals/metals.log
            7. 8.4.1.4.13.7. typst.nix.md
            8. 8.4.1.4.13.8. vue.nix.md
          14. 8.4.1.4.14. lualine.nix.md
          15. 8.4.1.4.15. lz-n/
            1. 8.4.1.4.15.1. # lz.n vs lazy.nvim:
            2. 8.4.1.4.15.2. module/
              1. 8.4.1.4.15.2.1. default.nix.md
              2. 8.4.1.4.15.2.2. test.nix.md
          16. 8.4.1.4.16. markdown-preview.nix.md
          17. 8.4.1.4.17. mini-nvim: a nvim distro
          18. 8.4.1.4.18. minuet-ai-nvim.nix.md
          19. 8.4.1.4.19. nvim-config-local: secure load local vim config
          20. 8.4.1.4.20. nvim-nav.nix.md
          21. 8.4.1.4.21. nvim-treesitter-context.nix.md
          22. 8.4.1.4.22. nvim-treesitter.nix.md
          23. 8.4.1.4.23. nvim-window-picker
          24. 8.4.1.4.24. outline-nvim.nix.md
          25. 8.4.1.4.25. rich-paste.nix.md
          26. 8.4.1.4.26. rustowl.nix.md
          27. 8.4.1.4.27. smartyank-nvim: smart yank to clipboard
          28. 8.4.1.4.28. snacks/
            1. 8.4.1.4.28.1. default.nix.md
            2. 8.4.1.4.28.2. Why Snacks image rendering uses Chromium
              1. 8.4.1.4.28.2.1. image-nvim vs snacks-nvim问题
            3. 8.4.1.4.28.3. picker/
              1. 8.4.1.4.28.3.1. Telescope Alternatives Comparison
              2. 8.4.1.4.28.3.2. commit-message/
                1. 8.4.1.4.28.3.2.1. default.nix.md
              3. 8.4.1.4.28.3.3. default.nix.md
              4. 8.4.1.4.28.3.4. git/
                1. 8.4.1.4.28.3.4.1. default.nix.md
                2. 8.4.1.4.28.3.4.2. log/
                  1. 8.4.1.4.28.3.4.2.1. default.nix.md
                3. 8.4.1.4.28.3.4.3. restore.nix.md
                4. 8.4.1.4.28.3.4.4. status.nix.md
              5. 8.4.1.4.28.3.5. insert_file_path.nix.md
            4. 8.4.1.4.28.4. Comparisons:
            5. 8.4.1.4.28.5. terminal.nix.md
          29. 8.4.1.4.29. todo-comments.nix.md
          30. 8.4.1.4.30. treesitter-injections/
            1. 8.4.1.4.30.1. default.nix.md
          31. 8.4.1.4.31. DrawIt vs venn-nvim
          32. 8.4.1.4.32. vim-easy-align: A simple, easy-to-use Vim alignment plugin.
          33. 8.4.1.4.33. vim-mark/
            1. 8.4.1.4.33.1. vim-mark: multi-color highlight
          34. 8.4.1.4.34. vim-matchup.nix.md
          35. 8.4.1.4.35. winshift-nvim: rearrange windows
        5. 8.4.1.5. pi/
          1. 8.4.1.5.1. Agents Comparisons
          2. 8.4.1.5.2. default.nix.md
          3. 8.4.1.5.3. extensions/
            1. 8.4.1.5.3.1. default.nix.md
            2. 8.4.1.5.3.2. heuristic-notify.nix.md
            3. 8.4.1.5.3.3. pi-co-authored-by.nix.md
            4. 8.4.1.5.3.4. pi-co-authored-by.test.nix.md
            5. 8.4.1.5.3.5. pi-context-view/
              1. 8.4.1.5.3.5.1. default.nix.md
            6. 8.4.1.5.3.6. pi-hermes-memory/
              1. 8.4.1.5.3.6.1. default.nix.md
            7. 8.4.1.5.3.7. pi-language-tutor/
              1. 8.4.1.5.3.7.1. default.nix.md
            8. 8.4.1.5.3.8. pi-math/
              1. 8.4.1.5.3.8.1. default.nix.md
            9. 8.4.1.5.3.9. pi-model-fallback/
              1. 8.4.1.5.3.9.1. default.nix.md
            10. 8.4.1.5.3.10. pi-model-project.nix.md
            11. 8.4.1.5.3.11. Pi read aloud
              1. 8.4.1.5.3.11.1. check.nix.md
              2. 8.4.1.5.3.11.2. default.nix.md
              3. 8.4.1.5.3.11.3. model.nix.md
              4. 8.4.1.5.3.11.4. package.nix.md
              5. 8.4.1.5.3.11.5. test.nix.md
            12. 8.4.1.5.3.12. pi-skill-usage.nix.md
            13. 8.4.1.5.3.13. pi-subagents/
              1. 8.4.1.5.3.13.1. default.nix.md
            14. 8.4.1.5.3.14. pi-title/
              1. 8.4.1.5.3.14.1. default.nix.md
              2. 8.4.1.5.3.14.2. test.nix.md
            15. 8.4.1.5.3.15. pi-web-access/
              1. 8.4.1.5.3.15.1. default.nix.md
            16. 8.4.1.5.3.16. ponytail/
              1. 8.4.1.5.3.16.1. default.nix.md
            17. 8.4.1.5.3.17. rpiv-ask-user-question.nix.md
            18. 8.4.1.5.3.18. rpiv-todo/
              1. 8.4.1.5.3.18.1. default.nix.md
          4. 8.4.1.5.4. native-retry/
            1. 8.4.1.5.4.1. check.nix.md
          5. 8.4.1.5.5. pi-web/
            1. 8.4.1.5.5.1. Pi Web UI Comparison
            2. 8.4.1.5.5.2. default.nix.md
            3. 8.4.1.5.5.3. test.nix.md
          6. 8.4.1.5.6. pkgs.nix.md
          7. 8.4.1.5.7. providers/
            1. 8.4.1.5.7.1. default.nix.md
            2. 8.4.1.5.7.2. models-dev-to-custom-provider/
              1. 8.4.1.5.7.2.1. default.nix.md
              2. 8.4.1.5.7.2.2. test.nix.md
        6. 8.4.1.6. ssh.nix.md
        7. 8.4.1.7. starship.nix.md
        8. 8.4.1.8. syncthing.nix.md
        9. 8.4.1.9. tailscale/
          1. 8.4.1.9.1. VPS firewall/security-group ports for the official Tailscale instance:
          2. 8.4.1.9.2. module/
            1. 8.4.1.9.2.1. default.nix.md
            2. 8.4.1.9.2.2. devices.nix.md
            3. 8.4.1.9.2.3. instances.nix.md
          3. 8.4.1.9.3. ssh.nix.md
        10. 8.4.1.10. zsh/
          1. 8.4.1.10.1. default.nix.md
      2. 8.4.2. default.nix.md
      3. 8.4.3. extended/
        1. 8.4.3.1. default.nix.md
        2. 8.4.3.2. cli-extra.nix: Extra CLI configs (added to minimal cli config)
        3. 8.4.3.3. fzf.nix.md
        4. 8.4.3.4. GDB configurations
        5. 8.4.3.5. tldr.nix.md
        6. 8.4.3.6. tmux
        7. 8.4.3.7. Pros:
      4. 8.4.4. binutils's ld and gcc's ld collsion
      5. 8.4.5. Nodejs packages (npm) in NixOS
      6. 8.4.6. Python in Nix/NixOS
      7. 8.4.7. server/
        1. 8.4.7.1. authelia/
          1. 8.4.7.1.1. default.nix.md
        2. 8.4.7.2. caddy/
          1. 8.4.7.2.1. cgit/
            1. 8.4.7.2.1.1. Caddy route fragment for cgit, included by ../default.nix.
            2. 8.4.7.2.1.2. config.nix.md
            3. 8.4.7.2.1.3. Shared by the cgit Caddy route fragment (./caddy.nix) and the fcgiwrap
            4. 8.4.7.2.1.4. The cgit this tree serves and installs.
            5. 8.4.7.2.1.5. ssh/
              1. 8.4.7.2.1.5.1. Root's SSH access for this server.
          2. 8.4.7.2.2. circle/
            1. 8.4.7.2.2.1. caddy.nix.md
          3. 8.4.7.2.3. default.nix.md
          4. 8.4.7.2.4. pi-web/
            1. 8.4.7.2.4.1. dell's pi-web (jmfederico) over the tailnet via the socat bridge (./config.nix).
            2. 8.4.7.2.4.2. config.nix.md
            3. 8.4.7.2.4.3. Shared by the Caddy route fragment (./caddy.nix) and the bridge service
          5. 8.4.7.2.5. sixu/
            1. 8.4.7.2.5.1. caddy.nix.md
          6. 8.4.7.2.6. syncthing/
            1. 8.4.7.2.6.1. caddy.nix.md
          7. 8.4.7.2.7. XingYao proxy and local deployment test
            1. 8.4.7.2.7.1. caddy.nix.md
            2. 8.4.7.2.7.2. Evaluate real deployment modules with a disposable HOME/registry, never activate.
        3. 8.4.7.3. circle/
          1. 8.4.7.3.1. default.nix.md
        4. 8.4.7.4. default.nix.md
        5. 8.4.7.5. Everything derived from the server's user registry:
        6. 8.4.7.6. Rustical base-path patch
          1. 8.4.7.6.1. package.nix.md
        7. 8.4.7.7. sixu/
          1. 8.4.7.7.1. default.nix.md
        8. 8.4.7.8. xingyao/
          1. 8.4.7.8.1. default.nix.md
      8. 8.4.8. 静态链接,以qemu为例
    5. 8.5. usr/default.nix
    6. 8.6. gui/
      1. 8.6.1. cheatsheet_edit.nix.md
      2. 8.6.2. de/
        1. 8.6.2.1. default.nix.md
        2. 8.6.2.2. dms/
          1. 8.6.2.2.1. COMPARISONS.md
          2. 8.6.2.2.2. avatar.nix.md
          3. 8.6.2.2.3. clsettings.nix.md
          4. 8.6.2.2.4. default-settings.nix.md
          5. 8.6.2.2.5. default.nix.md
          6. 8.6.2.2.6. plugins/
            1. 8.6.2.2.6.1. bing-wallpaper.nix.md
            2. 8.6.2.2.6.2. default.nix.md
            3. 8.6.2.2.6.3. unified-taskbar.nix.md
          7. 8.6.2.2.7. settings.nix.md
        3. 8.6.2.3. niri/
          1. 8.6.2.3.1. config/
            1. 8.6.2.3.1.1. Use wev to find out key name
            2. 8.6.2.3.1.2. default.nix.md
          2. 8.6.2.3.2. default.nix.md
          3. 8.6.2.3.3. focus-shrink/
            1. 8.6.2.3.3.1. default.nix.md
          4. 8.6.2.3.4. win_align.nix.md
        4. 8.6.2.4. noctalia/
          1. 8.6.2.4.1. calendar/
            1. 8.6.2.4.1.1. We want to edit the remote ICS files before feed them to Noctalia.
            2. 8.6.2.4.1.2. default.nix.md
            3. 8.6.2.4.1.3. event-titles/
              1. 8.6.2.4.1.3.1. default.nix.md
          2. 8.6.2.4.2. default.nix.md
          3. 8.6.2.4.3. plugins/
            1. 8.6.2.4.3.1. daily-wallpaper.nix.md
            2. 8.6.2.4.3.2. default.nix.md
            3. 8.6.2.4.3.3. niri-displays.nix.md
            4. 8.6.2.4.3.4. pi-noctalia/
              1. 8.6.2.4.3.4.1. default.nix.md
          4. 8.6.2.4.4. settings.nix.md
      3. 8.6.3. default.nix.md
      4. 8.6.4. dingtalk/
        1. 8.6.4.1. default.nix.md
      5. 8.6.5. drawio.nix.md
      6. 8.6.6. eww.md
      7. 8.6.7. fcitx5/
        1. 8.6.7.1. default.nix.md
        2. 8.6.7.2. module/
          1. 8.6.7.2.1. default.nix.md
          2. 8.6.7.2.2. tests/
            1. 8.6.7.2.2.1. test.nix.md
        3. 8.6.7.3. quick-phrase-fzf/
          1. 8.6.7.3.1. default.nix.md
          2. 8.6.7.3.2. package.nix.md
        4. 8.6.7.4. vinput/
          1. 8.6.7.4.1. default.nix.md
          2. 8.6.7.4.2. model.nix.md
          3. 8.6.7.4.3. test.nix.md
      8. 8.6.8. 安装deb包,以飞书为例
      9. 8.6.9. firefox/
        1. 8.6.9.1. apps/
          1. 8.6.9.1.1. firefox-apps
          2. 8.6.9.1.2. firefox module
          3. 8.6.9.1.3. single-tab.nix.md
        2. 8.6.9.2. firefox configurations
        3. 8.6.9.3. extensions/
          1. 8.6.9.3.1. chrome-mask.nix.md
          2. 8.6.9.3.2. darkreader.nix.md
          3. 8.6.9.3.3. default.nix.md
          4. 8.6.9.3.4. module.nix.md
          5. 8.6.9.3.5. TIPS (https://github.com/piroor/treestyletab/wiki/How-to-inspect-tree-of-tabs):
          6. 8.6.9.3.6. smart-toc.nix.md
          7. 8.6.9.3.7. vimium.nix.md
          8. 8.6.9.3.8. zeroomega.nix.md
      10. 8.6.10. flameshot.nix.md
      11. 8.6.11. fonts.nix.md
      12. 8.6.12. KDE Connect
      13. 8.6.13. low-battery-notify.nix.md
      14. 8.6.14. https://nixos.org/manual/nixos/stable/#sec-writing-modules
      15. 8.6.15. rustdesk, the remote desktop app
      16. 8.6.16. terminal/
        1. 8.6.16.1. Terminal Comparison
        2. 8.6.16.2. default.nix.md
        3. 8.6.16.3. ghostty/
          1. 8.6.16.3.1. default.nix.md
        4. 8.6.16.4. kitty/
          1. 8.6.16.4.1. kitty
          2. 8.6.16.4.2. kitty-scrollback-nvim.nix.md
          3. 8.6.16.4.3. search.nix.md
      17. 8.6.17. warpd.nix.md
      18. 8.6.18. Wayland
      19. 8.6.19. based on https://github.com/lucasew/nixcfg/blob/49d44c1a655f1c20d7354ecea942c78704067d50/pkgs/wrapWine.nix
      20. 8.6.20. XColor
      21. 8.6.21. xdot, the dot (graphviz) viewer
      22. 8.6.22. Xingyao 14 audio
        1. 8.6.22.1. default.nix.md
        2. 8.6.22.2. test.nix.md
    7. 8.7. syncthing-gist-ignore.nix.md
    8. 8.8. tests/
      1. 8.8.1. server/
        1. 8.8.1.1. home.nix.md
    9. 8.9. yq-merge/
      1. 8.9.1. default.nix.md
      2. 8.9.2. tests/
        1. 8.9.2.1. basic/
          1. 8.9.2.1.1. test.nix.md
        2. 8.9.2.2. key-value/
          1. 8.9.2.2.1. test.nix.md
        3. 8.9.2.3. multi-config/
          1. 8.9.2.3.1. test.nix.md
  13. 🤖安卓配置(无需sudo,复用"用户配置")
  14. 9. nix-on-droid.nix
  15. 🔩通用模块
  16. 📝文档和心得体会
  17. 10. docs/
    1. 10.1. explanation/
      1. 10.1.1. buildtime-deps-runtime-deps.md
      2. 10.1.2. Describing Dependency
      3. 10.1.3. lua-pkgs-callPackage.md
      4. 10.1.4. Module
      5. 10.1.5. Nixpkgs
      6. 10.1.6. Zsh Completion in NixOS
    2. 10.2. howto/
      1. 10.2.1. 打包/编译32位程序
      2. 10.2.2. Auto Push Packages to Cachix
        1. 10.2.2.1. cachixPackage
        2. 10.2.2.2. Example for cachixPackage
      3. 10.2.3. 备份binary cache
      4. 10.2.4. 交叉编译和安装跨平台程序
      5. 10.2.5. 安装NixOS
      6. 10.2.6. How To Config Linux Kernel in Nix
      7. 10.2.7. Lua LSP Not Auto-Attaching: Root Cause Analysis
    3. 10.3. slides/
      1. 10.3.1. Nix让你的团队成员不再受环境问题困扰
  18. 📃Nix脚本(nix-shell和打包)
  19. 11. scripts/
    1. 11.1. bootstrap/
      1. 11.1.1. Why do I need to enable home-manager systemd when username == root?
    2. 11.2. fhs-shell/
      1. 11.2.1. dynamorio.nix.md
      2. 11.2.2. hello.nix.md
      3. 11.2.3. pin.nix.md
      4. 11.2.4. spec.nix.md
      5. 11.2.5. x11.nix.md
      6. 11.2.6. xilinx.nix.md
    3. 11.3. pkgs/
      1. 11.3.1. TODO: 7z need dynamical link 7z.so
      2. 11.3.2. 在NixOS上使用Android程序
      3. 11.3.3. android.nix.md
      4. 11.3.4. appimage_runtime.nix.md
      5. 11.3.5. cachix_aarch64/
        1. 11.3.5.1. default.nix.md
      6. 11.3.6. coremarks.nix.md
      7. 11.3.7. cross_mips.nix.md
      8. 11.3.8. cross_static_hello.nix.md
      9. 11.3.9. etxlauncher.nix.md
      10. 11.3.10. fhs_helloworld.nix.md
      11. 11.3.11. fhs_spec2000_perl.nix.md
      12. 11.3.12. herdtools7.nix.md
      13. 11.3.13. nix-binary-tarballs-new.nix.md
      14. 11.3.14. nix-binary-tarballs.nix.md
      15. 11.3.15. nix-docker-isa/
        1. 11.3.15.1. 🐳Nix Docker🐋 for Multiple ISAs
        2. 11.3.15.2. dockers.nix.md
      16. 11.3.16. nvchad.nix.md
      17. 11.3.17. qemu-sys-static.nix.md
      18. 11.3.18. qemu-sys_riscv64_static.nix.md
      19. 11.3.19. qemu_riscv64_static.nix.md
      20. 11.3.20. qemu_static.nix.md
      21. 11.3.21. qemu_tests_tcg.nix.md
      22. 11.3.22. build by version
      23. 11.3.23. https://github.com/NixOS/nixpkgs/issues/185773
      24. 11.3.24. xiangshan.nix.md
    4. 11.4. shell/
      1. 11.4.1. LinkNan.nix.md
      2. 11.4.2. ccache.nix.md
      3. 11.4.3. chipyard.nix.md
      4. 11.4.4. cross_mips.nix.md
      5. 11.4.5. cross_platform.nix.md
      6. 11.4.6. devshell_hello.nix.md
      7. 11.4.7. gcc.nix.md
      8. 11.4.8. hello.nix.md
      9. 11.4.9. propagate/
        1. 11.4.9.1. child.nix.md
        2. 11.4.9.2. grandchild.nix.md
        3. 11.4.9.3. parent.nix.md
      10. 11.4.10. pygame.nix.md
      11. 11.4.11. https://nixos.wiki/wiki/Python
      12. 11.4.12. python_mach.nix.md
      13. 11.4.13. python_venv.nix.md
      14. 11.4.14. qemu_plugins.nix.md
      15. 11.4.15. qemu_tests_tcg.nix.md
      16. 11.4.16. riscv-tests.nix.md
      17. 11.4.17. spike.nix.md
      18. 11.4.18. texlive.nix.md
      19. 11.4.19. ucasproposal.nix.md
      20. 11.4.20. v8.nix.md
      21. 11.4.21. venv.nix.md
      22. 11.4.22. wine6.nix.md
  20. 📌其他
  21. 12. shell.nix

Xieby1's Nix/NixOS Config

system.nix