i probably fixed gtk idk

This commit is contained in:
TheCrazyInsanity
2026-04-14 08:33:27 -04:00
parent 302a4fe136
commit 497a318d0b
3 changed files with 41 additions and 6 deletions

View File

@@ -5,6 +5,23 @@
inputs,
...
}:
let
configure-gtk = pkgs.writeTextFile {
name = "configure-gtk";
destination = "/bin/configure-gtk";
executable = true;
text =
let
schema = pkgs.gsettings-desktop-schemas;
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
in
''
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
gnome_schema=org.gnome.desktop.interface
gsettings set $gnome_schema gtk-theme 'Dracula'
'';
};
in
{
environment.systemPackages = with pkgs; [
wl-clipboard # Copy/Paste functionality.
@@ -14,10 +31,20 @@
# Enables Gnome Keyring to store secrets for applications.
services.gnome.gnome-keyring.enable = true;
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-wlr
];
};
security.polkit.enable = true;
# Enable Sway.
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
wrapperFeatures.gtk = false;
extraPackages = [
pkgs.foot
pkgs.swayidle
@@ -32,7 +59,8 @@
pkgs.swaybg
pkgs.pulseaudioFull
pkgs.waybar
pkgs.twitter-color-emoji
pkgs.dracula-theme # gtk theme
configure-gtk
];
};