summaryrefslogtreecommitdiff
path: root/commons/sudoers.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-05-29 12:21:32 +0200
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-05-29 12:21:32 +0200
commit0d0842cbb26d02892ee807e9cc1d7e1b2b0cddbb (patch)
tree8327cbc03d211aa51bdb617edc3cf375d4e66188 /commons/sudoers.scm
parent850b457bfdb1303383630afefb5bc21661f0900f (diff)
refactor %sudoers-specification for space
Diffstat (limited to 'commons/sudoers.scm')
-rw-r--r--commons/sudoers.scm12
1 files changed, 5 insertions, 7 deletions
diff --git a/commons/sudoers.scm b/commons/sudoers.scm
index 6d73a34..b27b821 100644
--- a/commons/sudoers.scm
+++ b/commons/sudoers.scm
@@ -1,10 +1,8 @@
(define-module (commons sudoers)
#:use-module (guix gexp))
-(define sudoers-content
- (string-append "root ALL=(ALL) ALL \n"
- "%wheel ALL=(ALL) ALL \n"
- "Defaults passwd_timeout=0 \n"))
-
-(define-public sudoers-file
- (plain-file "sudoers" sudoers-content))
+(define-public %sudoers-specification*
+ (let ((content (string-append "root ALL=(ALL) ALL \n"
+ "%wheel ALL=(ALL) ALL \n"
+ "Defaults passwd_timeout=0 \n")))
+ (plain-file "sudoers" content)))