git: update smtpuser, set transfer.fsckObjects
[~bandali/configs] / .config / guix / system / chaman.scm
1 (use-modules (gnu)
2 (gnu packages linux)) ; for powertop
3 (use-service-modules admin desktop mail networking pm ssh xorg)
4
5 (operating-system
6 (host-name "chaman")
7 (locale "en_CA.utf8")
8 (timezone "Canada/Eastern")
9 (keyboard-layout
10 (keyboard-layout "us" "basic"))
11 (bootloader
12 (bootloader-configuration
13 (bootloader grub-bootloader)
14 (target "/dev/sda")
15 (keyboard-layout keyboard-layout)))
16 (mapped-devices
17 (list (mapped-device
18 (source
19 (uuid "283da85e-2c84-47e6-a8ca-20f4e8efb806"))
20 (target "groot")
21 (type luks-device-mapping))
22 (mapped-device
23 (source
24 (uuid "017ddebc-c2c3-4a0a-bda4-d47ec0bc67f0"))
25 (target "data")
26 (type luks-device-mapping))))
27 (file-systems
28 (cons* (file-system
29 (mount-point "/")
30 (device "/dev/mapper/groot")
31 (type "ext4")
32 (dependencies mapped-devices))
33 (file-system
34 (mount-point "/data")
35 (device "/dev/mapper/data")
36 (type "ext4")
37 (dependencies mapped-devices))
38 %base-file-systems))
39 (users
40 (cons* (user-account
41 (name "mab")
42 (group "users")
43 (home-directory "/home/mab")
44 (supplementary-groups
45 '("wheel" "netdev" "audio" "video")))
46 %base-user-accounts))
47 (packages
48 (append
49 (list (specification->package "nss-certs"))
50 %base-packages))
51 (services
52 (cons*
53 (service xfce-desktop-service-type)
54 (set-xorg-configuration
55 (xorg-configuration
56 (keyboard-layout keyboard-layout)))
57 (dovecot-service
58 #:config
59 (dovecot-configuration
60 ;; (log-path "/dev/stderr")
61 (protocols (list (protocol-configuration
62 (name "imap"))))
63 (ssl? "no")
64 (listen '("127.0.0.1"))
65 (disable-plaintext-auth? #f)
66 (auth-mechanisms '("plain"))
67 (postmaster-address "mab@gnu.local")
68 (mail-location "maildir:/home/mab/mail/%d/%n/mail")
69 (userdbs (list (userdb-configuration
70 (driver "static")
71 (args (list "uid=mab" "gid=users" "home=/home/mab/mail/%d/%n")))))
72 (passdbs (list (passdb-configuration
73 (driver "passwd-file")
74 (args (list "/data/dovecot-passwd")))))))
75 (service rottlog-service-type)
76 (service thermald-service-type)
77 (service tlp-service-type
78 (tlp-configuration
79 (cpu-boost-on-ac? #t)
80 (sound-power-save-on-bat 0)
81 (sound-power-save-controller? #f)
82 ;; (usb-blacklist "0e8f:00a8") ;for some reason doesn't seem to work
83 (usb-autosuspend? #f)))
84 (simple-service 'my-powertop-auto-tune activation-service-type
85 #~(zero? (system* #$(file-append powertop "/sbin/powertop")
86 "--auto-tune")))
87 %desktop-services)))