Hi Felix, I added the Samba service type to my config.scm
1.
I tried to do a:
sudo guix system reconfigure /etc/config.scm
but there was a message:
Mistake: samba-service-type: not bound variable
here the debugger:
gfp@Tuxedo ~$ sudo guix system reconfigure /etc/config.scm
Passwort:
Backtrace:
18 (primitive-load "/home/gfp/.config/guix/current/bin/guix")
In guix/ui.scm:
2352:7 17 (run-guix . _)
2315:10 16 (run-guix-command _ . _)
In ice-9/boot-9.scm:
1752:10 15 (with-exception-handler _ _ #:unwind? _ # _)
In guix/status.scm:
859:3 14 (_)
839:4 13 (call-with-status-report _ _)
In guix/scripts/system.scm:
1332:4 12 (_)
In ice-9/boot-9.scm:
1752:10 11 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
690:37 10 (thunk)
1331:8 9 (call-with-build-handler #<procedure 7f60d492be10 at g…> …)
2212:25 8 (run-with-store #<store-connection 256.100 7f60d4915b90> …)
In guix/scripts/system.scm:
859:2 7 (_ _)
732:8 6 (_ #<store-connection 256.100 7f60d4915b90>)
In gnu/system.scm:
1338:19 5 (operating-system-derivation _)
884:11 4 (operating-system-services #<<operating-system> kernel:…>)
918:20 3 (services _)
In /etc/config.scm:
45:21 2 (services #<<operating-system> kernel: #<package linux-…>)
In ice-9/boot-9.scm:
1685:16 1 (raise-exception _ #:continuable? _)
1685:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Fehler: samba-service-type: Nicht gebundene Variable
(mistake: samba-service-type: Not bound variable)
What do I have to change?
here my config.scm:
(services
(append
(list (service mate-desktop-service-type)
(service plasma-desktop-service-type)
(service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions (list cups-filters hplip))))
(service openssh-service-type)
(service tor-service-type)
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout)))
(service libvirt-service-type
(libvirt-configuration
(unix-sock-group "libvirt")
(tls-port "16555")))
(service virtlog-service-type
(virtlog-configuration
(max-clients 1000)))
(service samba-service-type (samba-configuration
(enable-smbd? #t)
(config-file (plain-file "smb.conf" "\
[global]
map to guest = Bad User
logging = syslog@1
[public]
browsable = yes
path = /public
read only = no
guest ok = yes
guest only = yes\n")))))
2.
Do I have to create a folder /public?
or will it be created by
sudo guix system reconfigure /etc/config.scm?
3.
later I have to do a:
‘chmod -R 777 /public’
(if first the config.scm can be updated
and the "/public" folder is created)
thanks
Gottfried
Am 09.03.25 um 16:27 schrieb Felix Lechner:
Hi Gottfried, On Sat, Mar 08 2025, gfp wrote:can I copy that to my config.scm?I think so. I have something similar [1] except it also enables the older NT1 protocol---but haven't use the share in a while. Just make sure the /public folder exists and is writable as needed. Kind regards Felix [1] https://codeberg.org/lechner/system-config/src/commit/a7f8ef58d25401dba895e1cbd253cc01724c3793/host/wallace-server/operating-system.scm#L1460-L1475
OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
