From 313cd57bf3ed044061ccdd7d0109b1b4578e21f0 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sun, 22 May 2022 05:02:06 +0200 Subject: [PATCH] hardcode uquota binary path since, its not available in the PATH of the systemd unit --- machines/pvv-terminal.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/pvv-terminal.nix b/machines/pvv-terminal.nix index d5c3353..626a9c9 100644 --- a/machines/pvv-terminal.nix +++ b/machines/pvv-terminal.nix @@ -20,9 +20,9 @@ services.polybar.config."module/uquota" = { type = "custom/script"; - exec-if = "which uquota"; + exec-if = "test -f /usr/local/bin/uquota"; exec = "" + pkgs.writers.writePerl "parse_uquota" { } '' - my $raw = `uquota`; + my $raw = `/usr/local/bin/uquota`; if ( $raw =~ /Du har brukt (\d+(?:[KMGT]iB)) av (\d+(?:[KMGT]iB)), eller (\d+)/ ) { print $3 . "%\n";