home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 88fd857013ce1a1b7778cd6b56ae9fcdd07ba5a9
parent d22098bf6ec601855f676aedc18579488cb8d696
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu,  2 Jun 2022 10:24:25 +0200

profiles/desktop: use fullpath for nmcli and grep

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/modules/profiles/desktop.nix | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/systems/modules/profiles/desktop.nix b/systems/modules/profiles/desktop.nix @@ -71,11 +71,11 @@ in enable_disable_wifi () { - result=$(nmcli dev | grep "ethernet" | grep -w "connected") + result=$(${pkgs.networkmanager}/bin/nmcli dev | ${pkgs.gnugrep}/bin/grep "ethernet" | ${pkgs.gnugrep}/bin/grep -w "connected") if [ -n "$result" ]; then - nmcli radio wifi off + ${pkgs.networkmanager}/bin/nmcli radio wifi off else - nmcli radio wifi on + ${pkgs.networkmanager}/bin/nmcli radio wifi on fi }