aboutsummaryrefslogtreecommitdiff
path: root/tw/system/cern.scm
diff options
context:
space:
mode:
authorTimo Wilken2023-06-03 23:59:17 +0200
committerTimo Wilken2023-06-03 23:59:17 +0200
commit1bb96ebf8b93b856de64d7bb02c8fb47254932cb (patch)
treec7159da346a3179333c72d36248b2a4620758c22 /tw/system/cern.scm
parentbb169097d97e9ff20e56d7d1a950866c6b25f007 (diff)
Indent *-file functions more conveniently
Files with potentially long or complex contents shouldn't be indented quite as far.
Diffstat (limited to 'tw/system/cern.scm')
-rw-r--r--tw/system/cern.scm31
1 files changed, 15 insertions, 16 deletions
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