home-manager purged

This commit is contained in:
Charlie Root 2024-11-19 14:20:00 +01:00
commit 6755222762
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
14 changed files with 54 additions and 583 deletions

View file

@ -20,6 +20,8 @@ in {
defaultFonts = let
common = [
"Iosevka Nerd Font"
"Roboto Mono Nerd Font"
"Fira Code Nerd Font"
"Symbols Nerd Font"
"Noto Color Emoji"
];

View file

@ -5,21 +5,8 @@
}:
with lib; let
cfg = config.modules.usrEnv.style.gtk;
inherit (config.modules.other.system) username;
inherit (config.modules.usrEnv.style.gtk) theme iconTheme;
in {
config = mkIf cfg.enable {
programs.dconf.enable = true; # NOTE: we need this or gtk breaks
home-manager.users.${username} = {
gtk = {
enable = true;
theme = {
inherit (theme) name package;
};
iconTheme = {
inherit (iconTheme) name package;
};
};
};
};
}

View file

@ -1,24 +1,6 @@
{config, ...}: let
inherit (config.modules.style.cursor) package name size;
inherit (config.modules.other.system) username;
in {
_: {
imports = [
./qt.nix
# ./gtk.nix
./colors.nix
./fonts.nix
];
# home-manager.users.${username} = {
# home.pointerCursor = {
# # inherit the default values set in the options,
# # since these are the once I need on all my systems.
# inherit package name size;
# # make gtk follow the cursor choices
# # gtk.enable = true;
# # ditto
# x11.enable = true;
# };
# };
}

View file

@ -10,7 +10,6 @@ with lib; let
name = "Gruvbox-Dark-BL";
};
cfg = config.modules.usrEnv.style.qt;
inherit (config.modules.other.system) username;
in {
config = mkIf cfg.enable {
environment.sessionVariables = {QT_QPA_PLATFORMTHEME = "qt5ct";};
@ -19,44 +18,5 @@ in {
QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
GTK_THEME = theme.name;
};
# home-manager.users.${username} = {
# # This is taken from jacekpoz, thanks a lot!
# qt = {
# enable = true;
# style = {
# inherit (cfg) name;
# package = cfg.package.override {
# flavour = [cfg.variant];
# accents = [cfg.accentColor];
# };
# };
# };
# home = {
# packages = with pkgs; [
# qt5.qttools
# qt6Packages.qtstyleplugin-kvantum
# libsForQt5.qtstyleplugin-kvantum
# libsForQt5.qt5ct
# ];
# sessionVariables = {
# # Scaling factor for QT applications
# QT_AUTO_SCREEN_SCALE_FACTOR = "1";
# # Use wayland as the default backend.
# QT_QPA_PLATFORM = "wayland";
# # Disable window decorations for qt applications.
# QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
# # Remain compatible with QT5 whenever possible.
# DISABLE_QT_COMPAT = "0";
# # Tell Calibre to use the dark theme.
# CALIBRE_USE_DARK_PALETTE = "1";
# };
# };
# };
};
}