From c1eed0c69df9cccdbcbc4ca3824885efca9dd0ec Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 7 Apr 2024 11:05:15 -0400 Subject: [PATCH] eww: Make icons work standalone --- home/eww.nix | 4 +++- modules/system.nix | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/home/eww.nix b/home/eww.nix index a93f9c08..18c1ac0c 100644 --- a/home/eww.nix +++ b/home/eww.nix @@ -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 diff --git a/modules/system.nix b/modules/system.nix index ff2d9f03..870b1ee8 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -213,7 +213,6 @@ in environment.pathsToLink = [ "/share/backgrounds" - "/share/eww" ]; environment.systemPackages = with pkgs; [