hosts/hijiri/yabai: no need for ifd workaround
This commit is contained in:
parent
cb7c81fff8
commit
6181587fc3
1 changed files with 0 additions and 9 deletions
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
|
@ -28,12 +27,4 @@
|
|||
|| yabai -m window $YABAI_WINDOW_ID --toggle float'
|
||||
'';
|
||||
};
|
||||
|
||||
environment.etc."sudoers.d/yabai".source = pkgs.runCommand "sudoers-yabai" {} ''
|
||||
YABAI_BIN="${config.services.yabai.package}/bin/yabai"
|
||||
SHASUM=$(sha256sum "$YABAI_BIN" | cut -d' ' -f1)
|
||||
cat <<EOF >"$out"
|
||||
%admin ALL=(root) NOPASSWD: sha256:$SHASUM $YABAI_BIN --load-sa
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue