From 9b667bab5a91e6fc964fea7da59cbeafdfffde8d Mon Sep 17 00:00:00 2001 From: andrey_varnavskiy Date: Sun, 15 Dec 2024 06:26:49 +0500 Subject: [PATCH] add qt configuration --- nixos/modules/default.nix | 3 ++- nixos/modules/qt.nix | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 nixos/modules/qt.nix diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix index 24e6427..c13af4b 100644 --- a/nixos/modules/default.nix +++ b/nixos/modules/default.nix @@ -10,7 +10,8 @@ ./net.nix ./nh.nix ./nix.nix - ./stylix.nix + # ./qt.nix + # ./stylix.nix ./timezone.nix ./user.nix ./zram.nix diff --git a/nixos/modules/qt.nix b/nixos/modules/qt.nix new file mode 100644 index 0000000..a89b925 --- /dev/null +++ b/nixos/modules/qt.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: { + environment.variables.QT_QPA_PLATFORMTHEME = "qt5ct"; + + environment.systemPackages = with pkgs; + [ + libsForQt5.qtstyleplugin-kvantum + libsForQt5.qt5ct + ]; + nixpkgs.config.qt5 = { + enable = true; + platformTheme = "qt5ct"; + style = { + package = pkgs.utterly-nord-plasma; + name = "Utterly Nord Plasma"; + }; + }; +}