1 | ;; This is GUIX system that I use on day-to-day basis.
|
---|
2 | ;; I use it on my libreboot'ed thinkpad X200T
|
---|
3 | ;;
|
---|
4 | ;; Feel free to use it
|
---|
5 | ;; https://w96k.com
|
---|
6 |
|
---|
7 | (use-modules (gnu) (gnu system nss)
|
---|
8 | (srfi srfi-1))
|
---|
9 |
|
---|
10 | (use-service-modules xorg
|
---|
11 | networking
|
---|
12 | desktop
|
---|
13 | databases
|
---|
14 | web
|
---|
15 | docker)
|
---|
16 |
|
---|
17 | (use-package-modules geo linux)
|
---|
18 |
|
---|
19 | ;; Run powertop --autotune on boot
|
---|
20 | (define %powertop-service
|
---|
21 | (simple-service 'powertop activation-service-type
|
---|
22 | #~(zero? (system* #$(file-append powertop "/sbin/powertop")
|
---|
23 | "--auto-tune"))))
|
---|
24 |
|
---|
25 | ;; My modification of %desktop-services
|
---|
26 | (define %my-services
|
---|
27 | (cons*
|
---|
28 | (service slim-service-type)
|
---|
29 |
|
---|
30 | ;; Wacom tablet support
|
---|
31 | (service inputattach-service-type
|
---|
32 | (inputattach-configuration
|
---|
33 | (device "/dev/ttyS4")
|
---|
34 | (device-type "wacom")))
|
---|
35 |
|
---|
36 | (postgresql-service #:extension-packages (list postgis))
|
---|
37 | (service docker-service-type)
|
---|
38 | (service tor-service-type)
|
---|
39 | ;; Fix unavailable /usr/bin/env
|
---|
40 | ;; It's needed by many bash scripts
|
---|
41 | (extra-special-file "/usr/bin/env"
|
---|
42 | (file-append coreutils "/bin/env"))
|
---|
43 | ;;%powertop-service
|
---|
44 | %desktop-services))
|
---|
45 |
|
---|
46 | ;; Remove gdm (gdm is default in guix)
|
---|
47 | (set! %my-services
|
---|
48 | (remove (lambda (service)
|
---|
49 | (eq? (service-kind service) gdm-service-type))
|
---|
50 | %my-services))
|
---|
51 |
|
---|
52 | (operating-system
|
---|
53 | (host-name "Libreboot")
|
---|
54 | (timezone "Europe/Moscow")
|
---|
55 | (locale "ru_RU.utf8")
|
---|
56 | (kernel linux-libre-4.19)
|
---|
57 | (kernel-arguments '("processor.max_cstate=1" ;Disable power savings
|
---|
58 | "intel_idle.max_cstate=0" ;(cstate 3-4 provides
|
---|
59 | ;high freq cpu noice)
|
---|
60 | "intremap=off" ;Fix for failed to map dmar2
|
---|
61 | "acpi=strict"
|
---|
62 | "splash"
|
---|
63 | "intel_iommu=on"
|
---|
64 | "i915.enable_dc=0"
|
---|
65 | "i915.modeset=1"
|
---|
66 | "i915.enable_psr=0"
|
---|
67 | "i915.enable_fbc=0"
|
---|
68 | "i915.fastboot=1"
|
---|
69 | "intel_agp"))
|
---|
70 | (initrd-modules (append '("i915")
|
---|
71 | %base-initrd-modules))
|
---|
72 | (bootloader (bootloader-configuration
|
---|
73 | (bootloader grub-bootloader)
|
---|
74 | (target "/dev/sda")))
|
---|
75 |
|
---|
76 | (file-systems (cons* (file-system
|
---|
77 | (device (file-system-label "root"))
|
---|
78 | (mount-point "/")
|
---|
79 | (type "ext4"))
|
---|
80 | %base-file-systems))
|
---|
81 |
|
---|
82 | (swap-devices `("/dev/sda5"))
|
---|
83 |
|
---|
84 | (users (cons (user-account
|
---|
85 | (name "w96k")
|
---|
86 | (group "users")
|
---|
87 | (supplementary-groups '("wheel" "netdev"
|
---|
88 | "audio" "video"
|
---|
89 | "docker"))
|
---|
90 | (home-directory "/home/w96k"))
|
---|
91 | %base-user-accounts))
|
---|
92 |
|
---|
93 | (packages
|
---|
94 | (append
|
---|
95 | (map specification->package
|
---|
96 | '(
|
---|
97 | "libva"
|
---|
98 | "libva-utils"
|
---|
99 | "intel-vaapi-driver"
|
---|
100 | "curl"
|
---|
101 | "mesa"
|
---|
102 | "mesa-headers"
|
---|
103 | "xorg-server"
|
---|
104 | "xf86-video-intel"
|
---|
105 | "libdrm"
|
---|
106 | "patchelf"
|
---|
107 | "binutils"
|
---|
108 | "glibc"
|
---|
109 | "stow"
|
---|
110 | "icecat"
|
---|
111 | "next"
|
---|
112 | "ratpoison"
|
---|
113 | "stumpwm"
|
---|
114 | "i3-wm"
|
---|
115 | "inputattach"
|
---|
116 | "font-dejavu"
|
---|
117 | "mailutils"
|
---|
118 | "font-terminus"
|
---|
119 | "emacs-no-x-toolkit"
|
---|
120 | "emacs-use-package"
|
---|
121 | "emacs-guix"
|
---|
122 | "emacs-pdf-tools"
|
---|
123 | "lilypond"
|
---|
124 | "fontconfig"
|
---|
125 | "git"
|
---|
126 | "darcs"
|
---|
127 | "htop"
|
---|
128 | "netcat"
|
---|
129 | "nss-certs"
|
---|
130 | "openssh"
|
---|
131 | "vim"
|
---|
132 | "xinit"
|
---|
133 | "xterm"
|
---|
134 | "xinit"
|
---|
135 | "rxvt-unicode"
|
---|
136 | "node"
|
---|
137 | "ruby"
|
---|
138 | "bundler"
|
---|
139 | "sbcl"
|
---|
140 | "docker"
|
---|
141 | "docker-cli"
|
---|
142 | "nix"
|
---|
143 | "postgresql"
|
---|
144 | "ghc"
|
---|
145 | "cabal-install"
|
---|
146 | "php"
|
---|
147 | "alsa-utils"
|
---|
148 | "mc"
|
---|
149 | "dmidecode"
|
---|
150 | "wayland"
|
---|
151 | "gnunet"
|
---|
152 | "adwaita-icon-theme"
|
---|
153 | "glibc-utf8-locales"))
|
---|
154 | %base-packages))
|
---|
155 |
|
---|
156 | ;; Use the "desktop" services, which include the X11
|
---|
157 | ;; log-in service, networking with NetworkManager, and more.
|
---|
158 |
|
---|
159 | (services %my-services)
|
---|
160 |
|
---|
161 | ;; Allow resolution of '.local' host names with mDNS.
|
---|
162 | (name-service-switch %mdns-host-lookup-nss))
|
---|