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.wshowkeys.enable = true;
|
||||||
programs.sway.enable = true;
|
programs.sway.enable = true;
|
||||||
|
programs.dconf.enable = true;
|
||||||
services.dbus.packages = with pkgs; [ dconf ];
|
services.dbus.packages = with pkgs; [ dconf ];
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -73,8 +74,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland = true;
|
xwayland = true;
|
||||||
wrapperFeatures = {
|
wrapperFeatures = {
|
||||||
base = false;
|
base = true;
|
||||||
gtk = false;
|
gtk = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''workspace 1'';
|
extraConfig = ''workspace 1'';
|
||||||
config =
|
config =
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
mods,
|
mods,
|
||||||
|
@ -24,7 +23,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.pulseaudio = true;
|
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
programs.thunar.enable = true;
|
programs.thunar.enable = true;
|
||||||
programs.thunar.plugins = with pkgs.xfce; [
|
programs.thunar.plugins = with pkgs.xfce; [
|
||||||
|
@ -83,7 +81,19 @@
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = {
|
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";
|
name = "Arc-Dark";
|
||||||
};
|
};
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
|
|
Loading…
Reference in a new issue