summaryrefslogtreecommitdiff
path: root/gnu/system/shadow.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-03-31 21:10:47 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-04-01 07:50:48 +0300
commitf12bd0bedde4fb6476064c5e2b32642c49857510 (patch)
tree584ff39d211c0354cd827d4784f559b2806bc7a8 /gnu/system/shadow.scm
parent92dae7a6050a6998ecfd6cadfbc3efffe6e80927 (diff)
system: Move nanorc to XDG_CONFIG_HOME.
* gnu/system/shadow.scm (skeleton-directory): Move .nanorc to .config/nano/nanorc.
Diffstat (limited to 'gnu/system/shadow.scm')
-rw-r--r--gnu/system/shadow.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 46efdfddab5..42480e823c5 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -2,6 +2,7 @@
2;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2016 Alex Griffin <a@ajgrf.com> 3;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
4;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> 4;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
5;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
5;;; 6;;;
6;;; This file is part of GNU Guix. 7;;; This file is part of GNU Guix.
7;;; 8;;;
@@ -215,6 +216,10 @@ for a colorful Guile experience.\\n\\n\"))))\n"))
215 ((target source) 216 ((target source)
216 (copy-recursively source target))) 217 (copy-recursively source target)))
217 '#$skeletons) 218 '#$skeletons)
219 ;; Make nanorc respect XDG_CONFIG_HOME.
220 (when (file-exists? ".nanorc")
221 (mkdir-p ".config/nano")
222 (rename-file ".nanorc" ".config/nano/nanorc"))
218 #t)))) 223 #t))))
219 224
220(define (assert-valid-users/groups users groups) 225(define (assert-valid-users/groups users groups)