beddfa6a0bf924bda9fec7d9686980eb0b039336
[~bandali/configs] / .config / guix / system / chaman.scm
1 (use-modules (gnu))
2 (use-service-modules desktop mail networking ssh xorg)
3
4 (operating-system
5 (host-name "chaman")
6 (locale "en_CA.utf8")
7 (timezone "America/Toronto")
8 (keyboard-layout
9 (keyboard-layout "us" "basic"))
10 (bootloader
11 (bootloader-configuration
12 (bootloader grub-bootloader)
13 (target "/dev/sda")
14 (keyboard-layout keyboard-layout)))
15 (mapped-devices
16 (list (mapped-device
17 (source
18 (uuid "3d9d579d-3626-4fb2-9c16-beae804f1cf9"))
19 (target "groot")
20 (type luks-device-mapping))))
21 (file-systems
22 (cons* (file-system
23 (mount-point "/")
24 (device "/dev/mapper/groot")
25 (type "ext4")
26 (dependencies mapped-devices))
27 %base-file-systems))
28 (users (cons* (user-account
29 (name "bandali")
30 (group "users")
31 (home-directory "/home/bandali")
32 (supplementary-groups
33 '("wheel" "netdev" "audio" "video")))
34 %base-user-accounts))
35 (packages
36 (append
37 (list (specification->package "nss-certs"))
38 %base-packages))
39 (services
40 (append
41 (list (service xfce-desktop-service-type)
42 (service openssh-service-type)
43 (set-xorg-configuration
44 (xorg-configuration
45 (keyboard-layout keyboard-layout)))
46 (dovecot-service #:config
47 (dovecot-configuration
48 ;; (log-path "/dev/stderr")
49 (protocols (list (protocol-configuration
50 (name "imap"))))
51 (ssl? "no")
52 (listen '("127.0.0.1"))
53 (disable-plaintext-auth? #f)
54 (auth-mechanisms '("plain"))
55 (postmaster-address "bandali@gnu.local")
56 (mail-location "maildir:/home/bandali/mail/%d/%n/mail")
57 (userdbs (list (userdb-configuration
58 (driver "static")
59 (args (list "uid=bandali" "gid=users" "home=/home/bandali/mail/%d/%n")))))
60 (passdbs (list (passdb-configuration
61 (driver "passwd-file")
62 (args (list "/home/bandali/.config/dovecot/passwd"))))))))
63 %desktop-services)))