From: Efraim Flashner <efraim@flashner.co.il>
To: 68169@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#68169] [PATCH 7/9] system: Add default guix-home-config.
Date: Sun, 31 Dec 2023 13:39:46 +0200 [thread overview]
Message-ID: <f47f86fa42f25a4e454de2626205b41347995c1c.1704021933.git.efraim@flashner.co.il> (raw)
In-Reply-To: <cover.1704021933.git.efraim@flashner.co.il>
* gnu/system/shadow.scm (%deafult-skeleton-home-config): New variable.
(default-skeletons): Add it.
Change-Id: Ida4cca8b1b3674491a4f18d94bc1b12d426575ba
---
gnu/system/shadow.scm | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index ca9c65e6d4..6c8e02953a 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -70,6 +70,7 @@ (define-module (gnu system shadow)
%default-gdbinit
%default-nanorc
%default-dotguile
+ %default-skeleton-home-config
default-skeletons
skeleton-directory
%base-groups
@@ -239,6 +240,37 @@ (define %default-dotguile
(display \"Consider installing the 'guile-colorized' package
for a colorful Guile experience.\\n\\n\"))))\n"))
+(define %default-skeleton-home-config
+ (plain-file "default-home-config" "\
+;; This is a sample Guix Home configuration which can help setup your
+;; home directory in the same declarative manner as Guix System.
+;; For more information, see the Home Configuration section of the manual.
+(define-module (guix-home-config)
+ #:use-module (gnu home)
+ #:use-module (gnu home services)
+ #:use-module (gnu home services shells)
+ #:use-module (gnu services)
+ #:use-module (gnu system shadow))
+
+(define home-config
+ (home-environment
+ (services
+ (list
+ ;; Uncomment the shell you wish to use for your user:
+ ;(service home-bash-service-type)
+ ;(service home-fish-service-type)
+ ;(service home-zsh-service-type)
+
+ (service home-files-service-type
+ `((\".guile\" ,%default-dotguile)
+ (\".Xdefaults\" ,%default-xdefaults)))
+
+ (service home-xdg-configuration-files-service-type
+ `((\"gdb/gdbinit\" ,%default-gdbinit)
+ (\"nano/nanorc\" ,%default-nanorc)))))))
+
+home-config"))
+
(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."
@@ -257,7 +289,8 @@ (define (default-skeletons)
(".nanorc" ,%default-nanorc)
(".Xdefaults" ,xdefaults)
(".guile" ,%default-dotguile)
- (".gdbinit" ,gdbinit))))
+ (".gdbinit" ,gdbinit)
+ ("guix-home-config.scm" ,%default-skeleton-home-config))))
(define (skeleton-directory skeletons)
"Return a directory containing SKELETONS, a list of name/derivation tuples."
--
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
next prev 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 ` [bug#68169] [PATCH 5/9] system: Export default nanorc Efraim Flashner
2023-12-31 11:39 ` [bug#68169] [PATCH 6/9] system: Export default guile config Efraim Flashner
2023-12-31 11:39 ` Efraim Flashner [this message]
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=f47f86fa42f25a4e454de2626205b41347995c1c.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.