From 6cbd439f400b891b6d559a306b71369b2fd8fd2d Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sun, 28 May 2023 15:29:13 -0400 Subject: [PATCH] nit(global/shell): only add mnt/umnt if sudo is enabled --- modules/global/shell.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/global/shell.nix b/modules/global/shell.nix index abcfc46..c1dcfee 100644 --- a/modules/global/shell.nix +++ b/modules/global/shell.nix @@ -72,8 +72,8 @@ in lsdisk = "lsblk -o name,size,mountpoints,fstype,label,uuid,fsavail,fsuse%"; - mnt = "s mount"; - umnt = "s umount"; + mnt = ifSudo "s mount"; + umnt = ifSudo "s umount"; mktmp = "cd $(mktemp -d)";