eww: Make icons work standalone

This commit is contained in:
Donovan Glover 2024-04-07 11:05:15 -04:00
parent 713589f646
commit c1eed0c69d
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,8 @@ let
inherit (config.home) homeDirectory;
inherit (config.xdg.userDirs) download documents music pictures videos;
inherit (pkgs) eww;
fluent-icons = pkgs.callPackage ../packages/fluent-icons.nix { };
in
{
home.packages = [ eww ];
@ -20,7 +22,7 @@ in
(defwidget icon [img exec]
(eventbox :cursor "pointer" :onclick "lnch thunar ''${exec}" :tooltip "''${exec}"
(image :path "/run/current-system/sw/share/eww/Fluent-Icons/''${img}.png" :image-width 128)))
(image :path "${fluent-icons}/''${img}.png" :image-width 128)))
(defwindow desktop-icons
:monitor 0

View File

@ -213,7 +213,6 @@ in
environment.pathsToLink = [
"/share/backgrounds"
"/share/eww"
];
environment.systemPackages = with pkgs; [