I am relatively new in linux world and I treat it generally like a hobby. I tried couple of distros. I hope that’s my last distro I use:) I am fan of Qtile.
When I successfully installed NixOS the problem appear - Qtile widgets don’t work. For example, the widget showing the CPU load shows Import Error: CPU. Similar situation is with others widget connected to hardware (memory, network adapter). Date widget works fine
I am looking for packages I should install but so far I haven’t found a solution. As I see Qtile isn’t very popular and maybe that’s why it’s not that easy to find example config;)
On Arch and Debian distros my Qtile config file worked.
Here is what programs I included in my `configuration.nix’:
neovim
ranger
ueberzug
gnome3.gnome-keyring
gnome3.seahorse
tk
jupyter
gcc
exercism
vscode
arduino>
jetbrains.pycharm-community
texlive.combined.scheme-full
texstudio
docker-compose
zoom-us
teams
blender
darktable
gimp
krita
dotnet-sdk_3
bmon
htop
nvtop
iotop
lm_sensors
alacritty
vim
zsh
fzf
xsel # for copying
clipmenu # for copying
mc
pciutils
unzip
firefox
geckodriver
firmwareLinuxNonfree
microcodeIntel
wget
curl
git
rsync
tree
feh # picture viewer
mpv # video player
libdvdcss # plugin to play cd/dvd in mpv
# for qtile?
python37Packages.dbus-python
python37Packages.xlib
psutils
python37Packages.psutil
python37Packages.xcffib
python37Packages.cairocffi
#python37Packages.python-dbusmock
python37Packages.pip
python37Packages.autopep8
python37Packages.flake8
doas
Thanks in advance for help in finding missing packages or other solution
So because of the way nix installs python packages you have to explicitly add those dependencies to the qtile package. Adding them to with systemPackages or other ways won’t give qtile access to them.
What nixos version are you on? Can you post the output of nixos-version here. Because I think a lot of the optional dependencies were added in this pr: https://github.com/NixOS/nixpkgs/pull/99538.
So your problem might already be fixed with a nix channel update.
But if some are still missing, you can use this code in your configuration.nix to add more: