Move GTK theming to abstract to allow use with hyprland as well

This commit is contained in:
Evie Litherland-Smith 2023-04-11 13:01:23 +01:00
parent 0bdb0321ab
commit 456eaff23a
3 changed files with 24 additions and 6 deletions

14
nixos/home-manager/env/gtk.nix vendored Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
gtk = {
enable = true;
cursorTheme = {
package = pkgs.catppuccin-cursors.macchiatoDark;
name = "Catppuccin-Macchiato-Dark-Cursors";
};
theme = {
package = pkgs.catppuccin-gtk;
name = "Catppuccin-Frappe-Standard-Blue-Dark";
};
};
}

View file

@ -1,4 +1,4 @@
{ ... }:
{ pkgs, ... }:
let
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
@ -9,8 +9,16 @@ in
{
imports = [
hyprland.homeManagerModules.default
./gtk.nix
./dunst.nix
];
home.packages = with pkgs; [
hyprpaper
wofi
dolphin
swaybg
];
wayland.windowManager.hyprland = {
enable = true;
xwayland = {

View file

@ -2,6 +2,7 @@
{
imports = [
./xresources.nix
./gtk.nix
./bspwm.nix
./sxhkd.nix
./picom.nix
@ -9,8 +10,6 @@
./polybar.nix
];
home.packages = with pkgs; [
catppuccin-gtk
catppuccin-cursors.macchiatoDark
xfce.thunar
ranger
flameshot
@ -22,9 +21,6 @@
"general/LockCommand" = "i3lock-fancy";
};
xsettings = {
"Net/ThemeName" = "Catppuccin-Frappe-Standard-Blue-Dark";
"Gtk/CursorThemeName" = "Catppuccin-Macchiato-Dark-Cursors";
"Gtk/FontName" = "Sans 12";
"Gtk/MonospaceFontName" = "FiraCode Nerd Font 12";
};
};