From 1bb96ebf8b93b856de64d7bb02c8fb47254932cb Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sat, 3 Jun 2023 23:59:17 +0200 Subject: Indent *-file functions more conveniently Files with potentially long or complex contents shouldn't be indented quite as far. --- tw/system/cern.scm | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'tw/system/cern.scm') diff --git a/tw/system/cern.scm b/tw/system/cern.scm index 508a7691..7ca6eab2 100644 --- a/tw/system/cern.scm +++ b/tw/system/cern.scm @@ -95,22 +95,21 @@ %base-user-accounts)) (sudoers-file - (plain-file - "sudoers" - (string-append - ;; We need to preserve $TERMINFO so that programs under sudo can - ;; find kitty's terminfo files. This is possibly unsafe; sudo - ;; explicitly deletes this variable by default. - "Defaults env_keep += \"TERMINFO\"\n" - (plain-file-content %sudoers-specification) - ;; In addition to the default rules, allow admins to power off - ;; the computer. They'll have to use the system binaries, not - ;; those from their user profile, as /etc/sudoers requires - ;; absolute paths to commands. - "%wheel ALL=(ALL) NOPASSWD: " - "/run/current-system/profile/sbin/halt, " - "/run/current-system/profile/sbin/reboot, " - "/run/current-system/profile/sbin/shutdown\n"))) + (plain-file "sudoers" + (string-append + ;; We need to preserve $TERMINFO so that programs under sudo can + ;; find kitty's terminfo files. This is possibly unsafe; sudo + ;; explicitly deletes this variable by default. + "Defaults env_keep += \"TERMINFO\"\n" + (plain-file-content %sudoers-specification) + ;; In addition to the default rules, allow admins to power off + ;; the computer. They'll have to use the system binaries, not + ;; those from their user profile, as /etc/sudoers requires + ;; absolute paths to commands. + "%wheel ALL=(ALL) NOPASSWD: " + "/run/current-system/profile/sbin/halt, " + "/run/current-system/profile/sbin/reboot, " + "/run/current-system/profile/sbin/shutdown\n"))) ;; This is where we specify system-wide packages. (packages -- cgit v1.2.3