all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#40309] [PATCH] system: Move nanorc to XDG_CONFIG_HOME.
@ 2020-03-29  7:22 Efraim Flashner
  2020-03-30 11:55 ` Marius Bakke
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Efraim Flashner @ 2020-03-29  7:22 UTC (permalink / raw)
  To: 40309; +Cc: Efraim Flashner

* gnu/system/shadow.scm (default-skeletons): Move .nanorc to
.config/nano/nanorc.
---
 gnu/system/shadow.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 46efdfddab..9bee3d1693 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -172,7 +173,7 @@ set auto-load safe-path /gnu/store/*/lib\n")))
       ;; 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" "\
+      (".config/nano/nanorc" ,(plain-file "nanorc" "\
 # Include all the syntax highlighting modules.
 include /run/current-system/profile/share/nano/*.nanorc\n"))
       (".Xdefaults" ,xdefaults)
-- 
2.26.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#40309] [PATCH] system: Move nanorc to XDG_CONFIG_HOME.
  2020-03-29  7:22 [bug#40309] [PATCH] system: Move nanorc to XDG_CONFIG_HOME Efraim Flashner
@ 2020-03-30 11:55 ` Marius Bakke
  2020-03-30 12:42   ` bug#40309: " Efraim Flashner
  2020-03-30 20:06 ` [bug#40309] " Leo Famulari
  2020-03-31 18:18 ` [bug#40309] [PATCH v2] " Efraim Flashner
  2 siblings, 1 reply; 7+ messages in thread
From: Marius Bakke @ 2020-03-30 11:55 UTC (permalink / raw)
  To: Efraim Flashner, 40309

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Efraim Flashner <efraim@flashner.co.il> writes:

> * gnu/system/shadow.scm (default-skeletons): Move .nanorc to
> .config/nano/nanorc.

LGTM.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#40309: [PATCH] system: Move nanorc to XDG_CONFIG_HOME.
  2020-03-30 11:55 ` Marius Bakke
@ 2020-03-30 12:42   ` Efraim Flashner
  0 siblings, 0 replies; 7+ messages in thread
From: Efraim Flashner @ 2020-03-30 12:42 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 40309-done

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

Patch pushed

-- 
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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#40309] [PATCH] system: Move nanorc to XDG_CONFIG_HOME.
  2020-03-29  7:22 [bug#40309] [PATCH] system: Move nanorc to XDG_CONFIG_HOME Efraim Flashner
  2020-03-30 11:55 ` Marius Bakke
@ 2020-03-30 20:06 ` Leo Famulari
  2020-03-31 18:18 ` [bug#40309] [PATCH v2] " Efraim Flashner
  2 siblings, 0 replies; 7+ messages in thread
From: Leo Famulari @ 2020-03-30 20:06 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 40309

On Sun, Mar 29, 2020 at 10:22:38AM +0300, Efraim Flashner wrote:
> * gnu/system/shadow.scm (default-skeletons): Move .nanorc to
> .config/nano/nanorc.

Unfortunately it caused reconfiguration to fail so I reverted this
change in commit 49d20d51e9f0b2944b0e13366d042950554ca931

------
building /gnu/store/y1x8asbzw624ywgkpin35p1i4bqnyfy2-skel.drv...
Backtrace:
           4 (primitive-load "/gnu/store/2x7d0jsbgf2ndb5fsk0nj07rhsx?")
In ice-9/eval.scm:
    619:8  3 (_ #f)
In ice-9/boot-9.scm:
   260:13  2 (for-each #<procedure 7ffff6ad8100 at ice-9/eval.scm:3?> ?)
In guix/build/utils.scm:
   343:27  1 (_ "/gnu/store/ajrgkj1s9vdcq00drn703f4zj9dvfrsv-nanorc" ?)
In unknown file:
           0 (copy-file "/gnu/store/ajrgkj1s9vdcq00drn703f4zj9dvfrs?" ?)

ERROR: In procedure copy-file:
In procedure copy-file: No such file or directory
`/gnu/store/v1grsca743phw41lyf63dzmh9nz5jlpn-bash_profile' -> `.bash_profile'
`/gnu/store/xdsaw0mj6axj427hyi6ysrnsxi21n7d5-bashrc' -> `.bashrc'
`/gnu/store/6i0b236dyar78zc5k5hrj5dv3vr4zb9w-zprofile' -> `.zprofile'
`/gnu/store/ajrgkj1s9vdcq00drn703f4zj9dvfrsv-nanorc' -> `.config/nano/nanorc'
builder for `/gnu/store/y1x8asbzw624ywgkpin35p1i4bqnyfy2-skel.drv' failed with exit code 1
build of /gnu/store/y1x8asbzw624ywgkpin35p1i4bqnyfy2-skel.drv failed
------

https://git.savannah.gnu.org/cgit/guix.git/commit/?id=49d20d51e9f0b2944b0e13366d042950554ca931

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#40309] [PATCH v2] system: Move nanorc to XDG_CONFIG_HOME.
  2020-03-29  7:22 [bug#40309] [PATCH] system: Move nanorc to XDG_CONFIG_HOME Efraim Flashner
  2020-03-30 11:55 ` Marius Bakke
  2020-03-30 20:06 ` [bug#40309] " Leo Famulari
@ 2020-03-31 18:18 ` Efraim Flashner
  2020-03-31 19:00   ` Leo Famulari
  2 siblings, 1 reply; 7+ messages in thread
From: Efraim Flashner @ 2020-03-31 18:18 UTC (permalink / raw)
  To: 40309; +Cc: Efraim Flashner, leo

* gnu/system/shadow.scm (skeleton-directory): Move .nanorc to
.config/nano/nanorc.
---

This time I've tested the patch by running './pre-inst-env guix system
build --no-grafts gnu/system/examples/bare-bones.tmpl' as-is and with
(gnu system shadow) edited to remove .nanorc completely from
default-skeletons.

---
 gnu/system/shadow.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 46efdfddab..42480e823c 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -215,6 +216,10 @@ for a colorful Guile experience.\\n\\n\"))))\n"))
                                    ((target source)
                                     (copy-recursively source target)))
                                  '#$skeletons)
+                       ;; Make nanorc respect XDG_CONFIG_HOME.
+                       (when (file-exists? ".nanorc")
+                         (mkdir-p ".config/nano")
+                         (rename-file ".nanorc" ".config/nano/nanorc"))
                        #t))))
 
 (define (assert-valid-users/groups users groups)
-- 
2.26.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#40309] [PATCH v2] system: Move nanorc to XDG_CONFIG_HOME.
  2020-03-31 18:18 ` [bug#40309] [PATCH v2] " Efraim Flashner
@ 2020-03-31 19:00   ` Leo Famulari
  2020-04-01  4:51     ` Efraim Flashner
  0 siblings, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2020-03-31 19:00 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 40309

On Tue, Mar 31, 2020 at 09:18:36PM +0300, Efraim Flashner wrote:
> * gnu/system/shadow.scm (skeleton-directory): Move .nanorc to
> .config/nano/nanorc.

Works for me, thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#40309] [PATCH v2] system: Move nanorc to XDG_CONFIG_HOME.
  2020-03-31 19:00   ` Leo Famulari
@ 2020-04-01  4:51     ` Efraim Flashner
  0 siblings, 0 replies; 7+ messages in thread
From: Efraim Flashner @ 2020-04-01  4:51 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 40309-done

[-- Attachment #1: Type: text/plain, Size: 482 bytes --]

On Tue, Mar 31, 2020 at 03:00:31PM -0400, Leo Famulari wrote:
> On Tue, Mar 31, 2020 at 09:18:36PM +0300, Efraim Flashner wrote:
> > * gnu/system/shadow.scm (skeleton-directory): Move .nanorc to
> > .config/nano/nanorc.
> 
> Works for me, thanks!

Patch pushed

-- 
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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-01  4:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-29  7:22 [bug#40309] [PATCH] system: Move nanorc to XDG_CONFIG_HOME Efraim Flashner
2020-03-30 11:55 ` Marius Bakke
2020-03-30 12:42   ` bug#40309: " Efraim Flashner
2020-03-30 20:06 ` [bug#40309] " Leo Famulari
2020-03-31 18:18 ` [bug#40309] [PATCH v2] " Efraim Flashner
2020-03-31 19:00   ` Leo Famulari
2020-04-01  4:51     ` Efraim Flashner

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.