diff options
Diffstat (limited to 'home-manager/config')
-rw-r--r-- | home-manager/config/yambar/default.nix | 9 |
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; |