args @ { pkgs, lib, config, ... }: lib.mkIf config.desktop.awesome.enable { home = { packages = with pkgs; [ mate.mate-polkit ]; sessionVariables = { QT_QPA_PLATFORMTHEME = "qt5ct"; }; file = { awesomewm-rc = { target = ".config/awesome/rc.lua"; text = import ./config/rc.nix args; }; awesomewm-theme = { target = ".config/awesome/theme.lua"; text = import ./config/theme.nix args; }; }; }; xsession = { windowManager.awesome = { enable = true; luaModules = with pkgs.luaPackages; [ luarocks vicious ]; }; }; }