c576209942b775b3eee10d4f0dea0e67193bd30a
[~bandali/configs] / .config / guix / system / chaman.scm
1 (use-modules (gnu) (gnu packages linux))
2 (use-service-modules admin desktop mail networking pm 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 (service rottlog-service-type
64 (rottlog-configuration))
65 (service thermald-service-type)
66 (service tlp-service-type
67 (tlp-configuration
68 (cpu-boost-on-ac? #t)
69 (sound-power-save-on-bat 0)
70 (sound-power-save-controller? #f)
71 (usb-blacklist "0e8f:00a8")))
72 (simple-service 'my-powertop-auto-tune activation-service-type
73 #~(zero? (system* #$(file-append powertop "/sbin/powertop")
74 "--auto-tune"))))
75 %desktop-services)))