arch-image-builder/configs/common/wheel-nopasswd.yaml

21 lines
469 B
YAML
Raw Normal View History

# Users in wheel group can run root commands without password
filesystem:
files:
# polkit
- path: /etc/polkit-1/rules.d/99-wheel.rules
mode: 0640
content: |
polkit.addRule(function(action,subject){
if(subject.isInGroup("wheel"))
return polkit.Result.YES;
});
# sudo
- path: /etc/sudoers.d/wheel
mode: 0640
content: |
%wheel ALL=(ALL:ALL) NOPASSWD: ALL
# Ensure sudo is installed
pacman:
install:
- sudo