vm-image: Allow for password-less sudo.

* gnu/system/examples/vm-image.tmpl (sudoers-file): New field.
master
Ludovic Courtès 2019-04-27 15:07:31 +02:00
parent 68400dfafa
commit 6e0521eeed
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ accounts.\x1b[0m
"audio" "video")))
%base-user-accounts))
;; Our /etc/sudoers file. Since 'guest' initially has an empty password,
;; allow for password-less sudo.
(sudoers-file (plain-file "sudoers" "\
root ALL=(ALL) ALL
%wheel ALL=NOPASSWD: ALL\n"))
(packages (append (list font-bitstream-vera nvi wget)
%base-packages))