···1diff -ruN a/src/config.py b/src/config.py
2---- a/src/config.py 2014-03-20 22:27:05.000000000 +0100
3-+++ b/src/config.py 2015-07-10 21:24:37.583136078 +0200
4-@@ -18,6 +18,7 @@
506 import os
7- import logging
8+import stat
00910- from configparser import RawConfigParser, NoOptionError, NoSectionError
11- from os import environ, makedirs, path, remove
12-@@ -279,6 +280,13 @@
13- copy2(default, options.filename)
14- elif path.isfile(other):
15- copy2(other, options.filename)
16+
17-+ # Inside the nixstore, the reference file is readonly, so is the copy.
18-+ # Make it writable by the user who just created it.
19-+ if os.path.exists(options.filename):
20-+ os.chmod(options.filename,
21-+ os.stat(options.filename).st_mode | stat.S_IWUSR)
22+
23- firstrun = True
02425- try:
···1diff -ruN a/src/config.py b/src/config.py
2+--- a/src/config.py 2015-07-31 19:35:37.000000000 +0000
3++++ b/src/config.py 2015-08-03 09:23:34.322098081 +0000
4+@@ -14,6 +14,7 @@
56+ import logging.config
7 import os
08+import stat
9+ import sys
10+ import pkg_resources
1112+@@ -563,6 +564,13 @@
13+ copy2(default, options.filename)
14+ elif path.isfile(other):
15+ copy2(other, options.filename)
0016+
17++ # Inside the nixstore, the reference file is readonly, so is the copy.
18++ # Make it writable by the user who just created it.
19++ if os.path.exists(options.filename):
20++ os.chmod(options.filename,
21++ os.stat(options.filename).st_mode | stat.S_IWUSR)
22+
23+ global firstrun
24+ firstrun = True
250