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