From dcb228a362669564469228f2ec7fb3627c6a4eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 7 Dec 2022 10:00:08 -0300 Subject: [PATCH] add qt6ct --- flake.lock | 17 +++++++++++++++++ flake.nix | 1 + overlays/default.nix | 2 ++ user/theme.nix | 4 +++- user/waybar.nix | 2 +- 5 files changed, 24 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index f9a8e48..a6c13a3 100644 --- a/flake.lock +++ b/flake.lock @@ -229,6 +229,22 @@ "type": "github" } }, + "qt6ct": { + "locked": { + "lastModified": 1670384565, + "narHash": "sha256-9HktCvTs3UdeLHCmGW2ZG7OIdinZCcaf4lHSjmc+yMY=", + "owner": "lelgenio", + "repo": "nixpkgs", + "rev": "9661d5a8ca7e0a5eab3090f0f597f595b8e120b9", + "type": "github" + }, + "original": { + "owner": "lelgenio", + "ref": "qt6ct-0.7", + "repo": "nixpkgs", + "type": "github" + } + }, "ranger-icons": { "flake": false, "locked": { @@ -273,6 +289,7 @@ "nixpkgs": "nixpkgs_2", "nixpkgs-unstable": "nixpkgs-unstable", "nur": "nur", + "qt6ct": "qt6ct", "ranger-icons": "ranger-icons", "ranger-sixel": "ranger-sixel", "sea-orm-cli": "sea-orm-cli", diff --git a/flake.nix b/flake.nix index 4689792..6cb4a21 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,7 @@ sea-orm-cli.url = "github:lucperkins/nixpkgs/lperkins/sea-orm-cli"; webcord.url = "github:huantianad/nixpkgs/webcord"; + qt6ct.url = "github:lelgenio/nixpkgs/qt6ct-0.7"; nil-lsp.url = "github:oxalica/nil"; nil-lsp.inputs.nixpkgs.follows = "nixpkgs-unstable"; diff --git a/overlays/default.nix b/overlays/default.nix index 89d5344..d89da59 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -15,6 +15,8 @@ inputs.sea-orm-cli.legacyPackages.${prev.system}.sea-orm-cli; webcord = inputs.webcord.legacyPackages.${prev.system}.webcord; + qt6ct = + inputs.qt6ct.legacyPackages.${prev.system}.qt6Packages.qt6ct; nil-lsp = inputs.nil-lsp.packages.${prev.system}.nil; alacritty = (prev.unstable.alacritty.overrideAttrs (old-alacritty: rec { src = inputs.alacritty-sixel; diff --git a/user/theme.nix b/user/theme.nix index 95c6089..cc9bbaa 100644 --- a/user/theme.nix +++ b/user/theme.nix @@ -55,11 +55,13 @@ with pkgs.uservars; { }; }; - home.sessionVariables = { QT_QPA_PLATFORMTHEME = "gtk3"; }; + home.sessionVariables = { QT_QPA_PLATFORMTHEME = "qt6ct"; }; home.packages = with pkgs; [ libsForQt5.qt5ct libsForQt5.qtstyleplugin-kvantum + qt6ct + pkgs.capitaine-cursors pkgs.orchis_theme_compact pkgs.papirus_red diff --git a/user/waybar.nix b/user/waybar.nix index c82f73b..83fe2cc 100644 --- a/user/waybar.nix +++ b/user/waybar.nix @@ -13,7 +13,7 @@ in { modules-right = [ "sway/language" "mpd" - # "tray" + "tray" "custom/caffeine" "pulseaudio" "network"