Skip to content

Commit

Permalink
fix(home-manager): use string interpolation for gtk directory
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzioKam committed Apr 17, 2024
1 parent fbdfaba commit 7719fa3
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions modules/home-manager/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ in
};

config = lib.mkIf enable {
assertions = [
(lib.ctp.assertXdgEnabled "gtk")
];

gtk = {
theme =
let
Expand Down Expand Up @@ -64,14 +68,14 @@ in
};
};

assertions = [
(lib.ctp.assertXdgEnabled "gtk")
];

xdg.configFile = {
"gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
xdg.configFile =
let
gtk4Dir = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0";
in
{
"gtk-4.0/assets".source = "${gtk4Dir}/assets";
"gtk-4.0/gtk.css".source = "${gtk4Dir}/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${gtk4Dir}/gtk-dark.css";
};
};
}

0 comments on commit 7719fa3

Please sign in to comment.