fix(gtk): gtk-4 miss reading gresource
This commit is contained in:
parent
eb5ee9505e
commit
e4e4ae6155
2 changed files with 16 additions and 5 deletions
|
@ -7,6 +7,7 @@
|
|||
{
|
||||
programs.wshowkeys.enable = true;
|
||||
programs.sway.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
services.dbus.packages = with pkgs; [ dconf ];
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
|
@ -73,8 +74,8 @@
|
|||
enable = true;
|
||||
xwayland = true;
|
||||
wrapperFeatures = {
|
||||
base = false;
|
||||
gtk = false;
|
||||
base = true;
|
||||
gtk = true;
|
||||
};
|
||||
extraConfig = ''workspace 1'';
|
||||
config =
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
mods,
|
||||
|
@ -24,7 +23,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
nixpkgs.config.pulseaudio = true;
|
||||
services.gvfs.enable = true;
|
||||
programs.thunar.enable = true;
|
||||
programs.thunar.plugins = with pkgs.xfce; [
|
||||
|
@ -83,7 +81,19 @@
|
|||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
package = pkgs.arc-theme;
|
||||
package = pkgs.arc-theme.overrideAttrs (o: {
|
||||
postInstall =
|
||||
(o.postInstall or "")
|
||||
+ ''
|
||||
pushd $out/share/themes/Arc-Dark/gtk-4.0/
|
||||
. <(gresource list gtk.gresource |\
|
||||
sed 's/^\(.*\/arc-theme\/\)\(.*\)$/mkdir -p $(dirname ".\/\2");\
|
||||
gresource extract gtk.gresource \"\1\2\" > \2/')
|
||||
substituteInPlace gtk.css\
|
||||
--replace-fail 'resource:///org/gnome/arc-theme' "file://$(realpath .)"
|
||||
popd
|
||||
'';
|
||||
});
|
||||
name = "Arc-Dark";
|
||||
};
|
||||
iconTheme = {
|
||||
|
|
Loading…
Reference in a new issue