From 0d0842cbb26d02892ee807e9cc1d7e1b2b0cddbb Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Wed, 29 May 2024 12:21:32 +0200 Subject: refactor %sudoers-specification for space --- commons/sudoers.scm | 12 +++++------- 1 file 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))) -- cgit v1.2.3