added qt again
This commit is contained in:
parent
283d1de8e0
commit
9d332191ea
2 changed files with 31 additions and 52 deletions
|
@ -1,25 +1,30 @@
|
||||||
{ config, inputs, pkgs, lib, ... }:
|
{ config, inputs, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
|
# allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
# Time Zone
|
# Time Zone
|
||||||
time.timeZone = "Europe/Zurich";
|
time.timeZone = "Europe/Zurich";
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
# enable flakes
|
nix = {
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
settings = {
|
||||||
|
# enable flakes
|
||||||
# reduce file size used & automatic garbage collector
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
nix.settings.auto-optimise-store = true;
|
# reduce file size used & automatic garbage collector
|
||||||
nix.gc = {
|
auto-optimise-store = true;
|
||||||
automatic = true;
|
};
|
||||||
options = "--delete-older-than 14d";
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 14d";
|
||||||
|
};
|
||||||
|
# required for nix-direnv to work and have environments not garbage collected
|
||||||
|
extraOptions = ''
|
||||||
|
keep-outputs = true
|
||||||
|
keep-derivations = true
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
# required for nix-direnv to work and have environments not garbage collected
|
|
||||||
nix.extraOptions = ''
|
|
||||||
keep-outputs = true
|
|
||||||
keep-derivations = true
|
|
||||||
'';
|
|
||||||
security.sudo.package = pkgs.sudo.override { withInsults = true; };
|
security.sudo.package = pkgs.sudo.override { withInsults = true; };
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
@ -45,11 +50,6 @@
|
||||||
awesome.enable = true;
|
awesome.enable = true;
|
||||||
newsboat.enable = true;
|
newsboat.enable = true;
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
#git = {
|
|
||||||
# enable = true;
|
|
||||||
# userName = "vali"; userEmail = "valentin@kaas.cc";
|
|
||||||
# defaultBranch = "main";
|
|
||||||
#};
|
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: with lib; let
|
}: with lib; let
|
||||||
|
theme = {
|
||||||
|
package = pkgs.gruvbox-gtk-theme;
|
||||||
|
name = "Gruvbox-Dark-BL";
|
||||||
|
};
|
||||||
cfg = config.modules.themes.qt;
|
cfg = config.modules.themes.qt;
|
||||||
username = config.modules.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
in {
|
in {
|
||||||
|
@ -31,51 +35,26 @@ in {
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||||
};
|
};
|
||||||
|
environment.variables = {
|
||||||
|
QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
|
||||||
|
GTK_THEME = theme.name;
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
platformTheme.name = "qtct";
|
platformTheme.name = "qt5ct";
|
||||||
style = {
|
# style = {
|
||||||
inherit (cfg) name package;
|
# inherit (cfg) name package;
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
qt5.qttools
|
qt5.qttools
|
||||||
qt6Packages.qtstyleplugin-kvantum
|
|
||||||
libsForQt5.qtstyleplugin-kvantum
|
|
||||||
libsForQt5.qt5ct
|
libsForQt5.qt5ct
|
||||||
|
libsForQt5.qtstyleplugin-kvantum
|
||||||
breeze-icons
|
breeze-icons
|
||||||
];
|
];
|
||||||
|
|
||||||
sessionVariables = {
|
|
||||||
#QT_STYLE_OVERRIDE = "kvantum";
|
|
||||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
|
||||||
# QT_QPA_PLATFORM = "wayland;xcb";
|
|
||||||
# QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
||||||
DISABLE_QT_COMPAT = "0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO somehow make this configurable IDK
|
|
||||||
xdg.configFile = {
|
|
||||||
"Kvantum/catppuccin/catppuccin.kvconfig".source = pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/catppuccin/Kvantum/main/src/Catppuccin-Mocha-Green/Catppuccin-Mocha-Green.kvconfig";
|
|
||||||
sha256 = "16ry4k09nf5w1gyawwz2ny14zn6infqk40l35lqlg30lhgbdmr5f";
|
|
||||||
};
|
|
||||||
"Kvantum/catppuccin/catppuccin.svg".source = pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/catppuccin/Kvantum/main/src/Catppuccin-Mocha-Green/Catppuccin-Mocha-Green.svg";
|
|
||||||
sha256 = "1djh625qag34rjsp7y67nzbi9nbmiwgq63ydfizsh65n3fyfakf1";
|
|
||||||
};
|
|
||||||
"Kvantum/kvantum.kvconfig".text = ''
|
|
||||||
[General]
|
|
||||||
theme=catppuccin
|
|
||||||
|
|
||||||
[Applications]
|
|
||||||
catppuccin=qt5ct, org.qbittorrent.qBittorrent, hyprland-share-picker
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue