Commit | Line | Data |
---|---|---|
4a72cb41 AB |
1 | (use-modules (gnu) (gnu packages linux)) |
2 | (use-service-modules admin desktop mail networking pm ssh xorg) | |
2fd6955d AB |
3 | |
4 | (operating-system | |
f6e0f564 | 5 | (host-name "chaman") |
2fd6955d AB |
6 | (locale "en_CA.utf8") |
7 | (timezone "America/Toronto") | |
8 | (keyboard-layout | |
a4c7bd3e | 9 | (keyboard-layout "us" "basic")) |
2fd6955d | 10 | (bootloader |
a4c7bd3e AB |
11 | (bootloader-configuration |
12 | (bootloader grub-bootloader) | |
13 | (target "/dev/sda") | |
14 | (keyboard-layout keyboard-layout))) | |
2fd6955d | 15 | (mapped-devices |
a4c7bd3e AB |
16 | (list (mapped-device |
17 | (source | |
18 | (uuid "3d9d579d-3626-4fb2-9c16-beae804f1cf9")) | |
19 | (target "groot") | |
20 | (type luks-device-mapping)))) | |
2fd6955d | 21 | (file-systems |
a4c7bd3e AB |
22 | (cons* (file-system |
23 | (mount-point "/") | |
24 | (device "/dev/mapper/groot") | |
25 | (type "ext4") | |
26 | (dependencies mapped-devices)) | |
27 | %base-file-systems)) | |
2fd6955d | 28 | (users (cons* (user-account |
a4c7bd3e AB |
29 | (name "bandali") |
30 | (group "users") | |
31 | (home-directory "/home/bandali") | |
32 | (supplementary-groups | |
33 | '("wheel" "netdev" "audio" "video"))) | |
2fd6955d AB |
34 | %base-user-accounts)) |
35 | (packages | |
a4c7bd3e AB |
36 | (append |
37 | (list (specification->package "nss-certs")) | |
38 | %base-packages)) | |
2fd6955d | 39 | (services |
a4c7bd3e AB |
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") | |
4a72cb41 AB |
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) | |
ce4f9366 AB |
71 | ;; (usb-blacklist "0e8f:00a8") ;for some reason doesn't seem to work |
72 | (usb-autosuspend? #f))) | |
4a72cb41 AB |
73 | (simple-service 'my-powertop-auto-tune activation-service-type |
74 | #~(zero? (system* #$(file-append powertop "/sbin/powertop") | |
75 | "--auto-tune")))) | |
a4c7bd3e | 76 | %desktop-services))) |