source: dotfiles/guix/config.scm@ e6db78d

Last change on this file since e6db78d was e6db78d, checked in by Mikhail Kirillov <w96k@…>, on Jan 6, 2020 at 1:58:46 PM

Add intel-driver related stuff

  • Property mode set to 100644
File size: 4.4 KB
Line 
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 "stow"
107 "icecat"
108 "next"
109 "ratpoison"
110 "stumpwm"
111 "i3-wm"
112 "inputattach"
113 "font-dejavu"
114 "mailutils"
115 "font-terminus"
116 "emacs-no-x-toolkit"
117 "emacs-use-package"
118 "emacs-guix"
119 "emacs-pdf-tools"
120 "lilypond"
121 "fontconfig"
122 "git"
123 "darcs"
124 "htop"
125 "netcat"
126 "nss-certs"
127 "openssh"
128 "vim"
129 "xinit"
130 "xterm"
131 "xinit"
132 "rxvt-unicode"
133 "node"
134 "ruby"
135 "bundler"
136 "sbcl"
137 "docker"
138 "docker-cli"
139 "nix"
140 "postgresql"
141 "ghc"
142 "cabal-install"
143 "php"
144 "alsa-utils"
145 "mc"
146 "dmidecode"
147 "wayland"
148 "gnunet"
149 "adwaita-icon-theme"
150 "glibc-utf8-locales"))
151 %base-packages))
152
153 ;; Use the "desktop" services, which include the X11
154 ;; log-in service, networking with NetworkManager, and more.
155
156 (services %my-services)
157
158 ;; Allow resolution of '.local' host names with mDNS.
159 (name-service-switch %mdns-host-lookup-nss))
Note: See TracBrowser for help on using the repository browser.