Skip to content
rewine edited this page Apr 1, 2022 · 13 revisions

for system dependencies

Edit /etc/nixos/configuration.nix

environment.systemPackages = with pkgs; [
   git nodejs wmctrl xdotool
   # eaf-browser
   aria 
   # eaf-file-manager
   fd
];

You can also use nix-env to install,for example nix-env -iA nixos.fd

for python dependencies

let 
  my-python-packages = python3Packages: with python3Packages; [
      # for eaf
      pyqt5 sip
      pyqtwebengine
      epc lxml
      # eaf-file-browser
      qrcode
      # eaf-browser
      pysocks
      # eaf-pdf-viewer
      pymupdf
      # eaf-file-manager
      pypinyin
      # eaf-system-monitor
      psutil
      # eaf-markdown-previewer
      retry
      markdown
  ]; 
  python-with-my-packages = python3.withPackages my-python-packages;
in
[
    environment.systemPackages = with pkgs; [
        # ...
        python-with-my-packages
    ];
]

pyqtwebengine in 20.09 channel seems broken,upgrading the system or add unstable channel can solve the problem if you use NixOS 20.09

For error: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "",it's not necessary to install qt5Full, just set environment variables in configuration.nix

   environment.variables = {
     QT_QPA_PLATFORM_PLUGIN_PATH = "${pkgs.qt5.qtbase.bin.outPath}/lib/qt-${pkgs.qt5.qtbase.version}/plugins";
   };

Install/Update EAF applications

./install-eaf.py --ignore-core-deps
Clone this wiki locally