all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: 68169@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#68169] [PATCH 5/9] system: Export default nanorc.
Date: Sun, 31 Dec 2023 13:39:44 +0200	[thread overview]
Message-ID: <edf6700d0d6ae3a403a826dd08507916eb284f6e.1704021933.git.efraim@flashner.co.il> (raw)
In-Reply-To: <cover.1704021933.git.efraim@flashner.co.il>

* gnu/system/shadow.scm (%default-nanorc): Extract from
default-skeletons, export.
(default-skeletons): Use %default-nanorc.

Change-Id: I0d07b13ed4894b1152a08b96d9ef8527dde073ce
---
 gnu/system/shadow.scm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index e1dd31262a..a8bc2d9567 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -68,6 +68,7 @@ (define-module (gnu system shadow)
             %default-zprofile
             %default-xdefaults
             %default-gdbinit
+            %default-nanorc
             default-skeletons
             skeleton-directory
             %base-groups
@@ -211,6 +212,11 @@ (define %default-gdbinit
 # pretty-printers of libstdc++.
 set auto-load safe-path /gnu/store/*/lib\n"))
 
+(define %default-nanorc
+  (plain-file "nanorc"
+              "# Include all the syntax highlighting modules.
+include /run/current-system/profile/share/nano/*.nanorc\n"))
+
 (define (default-skeletons)
   "Return the default skeleton files for /etc/skel.  These files are copied by
 'useradd' in the home directory of newly created user accounts."
@@ -226,9 +232,7 @@ (define (default-skeletons)
       ;; after ~/.zshrc.  To avoid interfering with any customizations a user
       ;; may have made in their ~/.zshrc, put this in .zprofile, not .zlogin.
       (".zprofile" ,zprofile)
-      (".nanorc" ,(plain-file "nanorc" "\
-# Include all the syntax highlighting modules.
-include /run/current-system/profile/share/nano/*.nanorc\n"))
+      (".nanorc" ,%default-nanorc)
       (".Xdefaults" ,xdefaults)
       (".guile" ,(plain-file "dot-guile"
                              "(cond ((false-if-exception (resolve-interface '(ice-9 readline)))
-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted





  parent reply	other threads:[~2023-12-31 11:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-31 11:34 [bug#68169] [PATCH 0/9] Add guix-home config to /etc/skel Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 1/9] system: Export default bash-profile Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 2/9] system: Export default zprofile Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 3/9] system: Export default xdefaults Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 4/9] system: Export default gdbinit Efraim Flashner
2023-12-31 11:39 ` Efraim Flashner [this message]
2023-12-31 11:39 ` [bug#68169] [PATCH 6/9] system: Export default guile config Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 7/9] system: Add default guix-home-config Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 8/9] system: default-zprofile: Sync with home zprofile Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 9/9] home: services: zsh: Use unified zprofile Efraim Flashner
2024-01-17  9:19 ` bug#68169: [PATCH 0/9] Add guix-home config to /etc/skel Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=edf6700d0d6ae3a403a826dd08507916eb284f6e.1704021933.git.efraim@flashner.co.il \
    --to=efraim@flashner.co.il \
    --cc=68169@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.