mirror of
https://github.com/BigfootACA/arch-image-builder.git
synced 2024-11-11 07:57:53 +08:00
21 lines
469 B
YAML
21 lines
469 B
YAML
# 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
|