guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/12: installer: User can have a "real name".


From: guix-commits
Subject: 09/12: installer: User can have a "real name".
Date: Sun, 28 Apr 2019 16:57:17 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 43c1c44a1194579cd9e0149e41886762d9efc9dc
Author: Ludovic Court├Ęs <address@hidden>
Date:   Sun Apr 28 22:28:00 2019 +0200

    installer: User can have a "real name".
    
    * gnu/installer/user.scm (<user>)[real-name]: New field.
    (users->configuration)[use->sexp]: Turn it into a 'comment' field.
---
 gnu/installer/user.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/installer/user.scm b/gnu/installer/user.scm
index 29fab64..4e701e6 100644
--- a/gnu/installer/user.scm
+++ b/gnu/installer/user.scm
@@ -23,6 +23,7 @@
             user
             make-user
             user-name
+            user-real-name
             user-group
             user-home-directory
             user-password
@@ -33,6 +34,8 @@
   user make-user
   user?
   (name            user-name)
+  (real-name       user-real-name
+                   (default ""))
   (group           user-group
                    (default "users"))
   (password        user-password)
@@ -43,6 +46,7 @@
   (define (user->sexp user)
     `(user-account
       (name ,(user-name user))
+      (comment ,(user-real-name user))
       (group ,(user-group user))
       (home-directory ,(user-home-directory user))
       (supplementary-groups '("wheel" "netdev"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]