i probably fixed gtk idk
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user