~ruther/guix-local

ref: be58d01a7e60601eb7b00a5fd3b724fdafb8dd29 guix-local/gnu/packages/patches/qemu-multiple-smb-shares.patch -rw-r--r-- 648 bytes
be58d01a — Ludovic Courtès build-system/gnu: Write debug files to the "debug" sub-derivation, if any. 12 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This file extends `-smb' to add a share for the Nix store, and changes
the name of the default share.

--- a/net/slirp.c
+++ b/net/slirp.c
@@ -515,8 +515,12 @@ static int slirp_smb(SlirpState* s, const char *exported_dir,
             "log file=%s/log.smbd\n"
             "smb passwd file=%s/smbpasswd\n"
             "security = share\n"
-            "[qemu]\n"
-            "path=%s\n"
+            "[store]\n"
+            "path=/nix/store\n"
+            "read only=yes\n"
+            "guest ok=yes\n"
+            "[xchg]\n"
+            "path=%s/xchg\n"
             "read only=no\n"
             "guest ok=yes\n",
             s->smb_dir,