about summary refs log tree commit diff stats
path: root/home-manager/config/yambar/default.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-04 17:16:04 +0100
committerene <ene@sils.li>2023-03-04 17:16:04 +0100
commitdd25b46418cad215f6d01ff571121161a62b486c (patch)
tree78eb602a9ef52a49e0eef71a25c6d353af12cb2d /home-manager/config/yambar/default.nix
parentFix: Add grades to packages (diff)
downloadnixos-config-dd25b46418cad215f6d01ff571121161a62b486c.tar.gz
nixos-config-dd25b46418cad215f6d01ff571121161a62b486c.zip
Fix(hm/conf/yambar): Update the deps
Diffstat (limited to 'home-manager/config/yambar/default.nix')
-rw-r--r--home-manager/config/yambar/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/home-manager/config/yambar/default.nix b/home-manager/config/yambar/default.nix
index 75f2afdc..46a19f0d 100644
--- a/home-manager/config/yambar/default.nix
+++ b/home-manager/config/yambar/default.nix
@@ -1,6 +1,7 @@
 {
   config,
   sysLib,
+  system,
   pkgs,
   grades,
   yambar_cpu,
@@ -19,15 +20,17 @@
     }
     + "/bin/${builtins.baseNameOf file}";
 in {
-  xdg.configFile."yambar/config.yml".source = builtins.substitueAll {
+  xdg.configFile."yambar/config.yml".source = pkgs.substituteAll {
     src = ./config/config.yml;
 
     volume_script = makeScript {
-      dependencies = builtins.attrValues {inherit (pkgs) pactl gawk;};
+      dependencies = builtins.attrValues {inherit (pkgs) pulseaudio gawk;};
       file = ./scripts/sound-volume.sh;
     };
     grade_average_script = makeScript {
-      dependencies = [grades];
+      dependencies = [
+        grades.outputs.packages.${system}.default
+      ];
       file = ./scripts/grades-average.sh;
     };
     cpu_script = yambar_cpu;