refactor: move theme.nix to modules
This commit is contained in:
parent
108b4088c4
commit
ac302abab7
4 changed files with 4 additions and 3 deletions
hosts
|
@ -35,6 +35,7 @@
|
|||
../../modules/alacritty.nix
|
||||
../../modules/dconf.nix
|
||||
../../modules/firefox
|
||||
../../modules/theme.nix
|
||||
];
|
||||
|
||||
# No touchy
|
|
@ -34,13 +34,13 @@
|
|||
home-manager.users = {
|
||||
matt = {
|
||||
imports = [
|
||||
./home/theme.nix
|
||||
./home/hyprland.nix
|
||||
./home/packages.nix
|
||||
|
||||
../../modules/alacritty.nix
|
||||
../../modules/dconf.nix
|
||||
../../modules/firefox
|
||||
../../modules/theme.nix
|
||||
../../modules/wofi
|
||||
|
||||
./modules/dotfiles.nix
|
|
@ -1,71 +0,0 @@
|
|||
{ pkgs, lib, config, ... }: let
|
||||
fontSize = config.services.hostvars.fontSize;
|
||||
dracula-xresources = pkgs.fetchFromGitHub {
|
||||
owner = "dracula";
|
||||
repo = "xresources";
|
||||
rev = "539ef24e9b0c5498a82d59bfa2bad9b618d832a3";
|
||||
sha256 = "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY=";
|
||||
};
|
||||
in
|
||||
{
|
||||
home.pointerCursor = {
|
||||
name = "Dracula-cursors";
|
||||
package = pkgs.dracula-theme;
|
||||
size = 24;
|
||||
|
||||
gtk.enable = true;
|
||||
|
||||
x11 = {
|
||||
enable = true;
|
||||
defaultCursor = "Dracula-cursors";
|
||||
};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Dracula";
|
||||
package = pkgs.dracula-theme;
|
||||
};
|
||||
|
||||
iconTheme = {
|
||||
name = "Flat-Remix-Violet-Dark";
|
||||
package = pkgs.flat-remix-icon-theme;
|
||||
};
|
||||
|
||||
font = {
|
||||
name = "Sans Serif";
|
||||
size = fontSize;
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
libsForQt5.qtstyleplugin-kvantum
|
||||
qt6Packages.qtstyleplugin-kvantum #FIXME: doesn't work with qt6ct
|
||||
];
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "qtct";
|
||||
};
|
||||
|
||||
xresources.extraConfig = builtins.readFile("${dracula-xresources}/Xresources");
|
||||
|
||||
xdg.configFile = let
|
||||
qtconf = ''
|
||||
[Fonts]
|
||||
fixed="Sans Serif,${lib.strings.floatToString fontSize},-1,5,50,0,0,0,0,0"
|
||||
general="Sans Serif,${lib.strings.floatToString fontSize},-1,5,50,0,0,0,0,0"
|
||||
|
||||
[Appearance]
|
||||
icon_theme=Flat-Remix-Violet-Dark
|
||||
style=''
|
||||
;
|
||||
in
|
||||
{
|
||||
"Kvantum/Dracula/Dracula.kvconfig".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.kvconfig";
|
||||
"Kvantum/Dracula/Dracula.svg".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid/Dracula-purple-solid.svg";
|
||||
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Dracula";
|
||||
|
||||
"qt5ct/qt5ct.conf".text = qtconf + "kvantum";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue