summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Guix.org94
1 files changed, 51 insertions, 43 deletions
diff --git a/Guix.org b/Guix.org
index db42d91..e2c9ef8 100644
--- a/Guix.org
+++ b/Guix.org
@@ -100,29 +100,25 @@ Source: [[https://github.com/daviwil/dotfiles/blob/master/Systems.org#profile-ma
100 "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) 100 "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))))
101#+end_src 101#+end_src
102 102
103* Machines 103* Systems
104** Base 104** Base
105 105
106#+begin_src scheme :tangle .config/guix/machines/base-system.scm 106#+begin_src scheme :tangle .config/guix/systems/base-system.scm
107 107
108 (define-module (base-system) 108 (define-module (base-system)
109 #:use-module (gnu) 109 #:use-module (gnu)
110 #:use-module (gnu system nss)
111 #:use-module (gnu services pm) 110 #:use-module (gnu services pm)
112 #:use-module (gnu services desktop)
113 #:use-module (gnu services docker) 111 #:use-module (gnu services docker)
114 #:use-module (gnu services networking) 112 #:use-module (gnu services networking)
115 #:use-module (gnu services virtualization) 113 #:use-module (gnu services virtualization) ; todo make
116 #:use-module (gnu packages wm)
117 #:use-module (gnu packages vim) 114 #:use-module (gnu packages vim)
118 #:use-module (gnu packages gtk) 115 #:use-module (gnu services desktop)
119 #:use-module (gnu packages xorg) 116 #:use-module (gnu packages xorg)
120 #:use-module (gnu packages emacs) 117 #:use-module (gnu packages emacs)
121 #:use-module (gnu packages file-systems) 118 #:use-module (gnu packages file-systems)
122 #:use-module (gnu packages linux) 119 #:use-module (gnu packages linux)
123 #:use-module (gnu packages audio) 120 #:use-module (gnu packages audio)
124 #:use-module (gnu packages pulseaudio) 121 #:use-module (gnu packages pulseaudio)
125 #:use-module (gnu packages web-browsers)
126 #:use-module (gnu packages version-control) 122 #:use-module (gnu packages version-control)
127 #:use-module (gnu packages package-management)) 123 #:use-module (gnu packages package-management))
128 ; #:use-module (nongnu packages linux) 124 ; #:use-module (nongnu packages linux)
@@ -148,6 +144,7 @@ Source: [[https://github.com/daviwil/dotfiles/blob/master/Systems.org#profile-ma
148 bluez-alsa 144 bluez-alsa
149 pulseaudio 145 pulseaudio
150 tlp 146 tlp
147 ncurses
151 xf86-input-libinput 148 xf86-input-libinput
152 nss-certs) ;; For https connection 149 nss-certs) ;; For https connection
153 %base-packages)) 150 %base-packages))
@@ -161,14 +158,26 @@ Source: [[https://github.com/daviwil/dotfiles/blob/master/Systems.org#profile-ma
161 (services 158 (services
162 (append 159 (append
163 (list 160 (list
161
164 (service elogind-service-type) 162 (service elogind-service-type)
165 (service openssh-service-type) 163 (service openssh-service-type)
166 (service network-manager-service-type) 164 (service network-manager-service-type)
167 (service slim-service-type) 165 (service slim-service-type)
168 (service tlp-service-type) 166 (service tlp-service-type
167 (tlp-configuration
168 (cpu-boost-on-ac? #t)
169 (wifi-pwr-on-bat? #t)))
169 (bluetooth-service #:auto-enable? #t) 170 (bluetooth-service #:auto-enable? #t)
170 (service docker-service-type) 171 (service docker-service-type)
171 (service wpa-supplicant-service-type)) 172 (service wpa-supplicant-service-type))
173 (service libvirt-service-type
174 (libvirt-configuration
175 (unix-sock-group "libvirt")
176 (tls-port "16555")))
177 (set-xorg-configuration
178 (xorg-configuration
179 (keyboard-layout keyboard-layout)))
180
172 %base-services)) 181 %base-services))
173 182
174 #+end_src 183 #+end_src
@@ -197,13 +206,14 @@ Source: [[https://github.com/daviwil/dotfiles/blob/master/Systems.org#profile-ma
197#+end_src 206#+end_src
198 207
199*Base operating system* 208*Base operating system*
200#+begin_src scheme :tangle .config/guix/machines/base-system.scm :noweb yes 209#+begin_src scheme :tangle .config/guix/systems/base-system.scm :noweb yes
201 210
202 (define-public base-operating-system 211 (define-public base-operating-system
203 (operating-system 212 (operating-system
204 (host-name "base") 213 (host-name "base")
205 (timezone "Europe/Warsaw") 214 (timezone "Europe/Warsaw")
206 (locale "en_US.utf8") 215 (locale "en_US.utf8")
216 (keyboard-layout (keyboard-layout "pl"))
207 217
208 ;; Use non-free Linux and firmware 218 ;; Use non-free Linux and firmware
209 ;; (kernel linux) 219 ;; (kernel linux)
@@ -232,37 +242,35 @@ Source: [[https://github.com/daviwil/dotfiles/blob/master/Systems.org#profile-ma
232 242
233#+end_src 243#+end_src
234 244
235 245** Systems
236** Viking 246*** Viking
237 247
238#+begin_src scheme :tangle .config/guix/machines/viking.scm 248#+begin_src scheme :tangle .config/guix/systems/viking.scm
239 (define-module (viking) 249 (define-module (viking)
240 #:use-module (base-system) 250 #:use-module (base-system)
241 #:use-module (gnu)) 251 #:use-module (gnu))
242 (use-modules (base-system)) 252
243 (operating-system 253 (operating-system
244 (inherit base-operating-system) 254 (inherit base-operating-system)
245 (host-name "viking") 255 (host-name "viking")
246 256
247 (keyboard-layout (keyboard-layout "pl")) 257 (bootloader
248 258 (bootloader-configuration
249 (bootloader 259 (bootloader grub-bootloader)
250 (bootloader-configuration 260 (target "/dev/sda")))
251 (bootloader grub-bootloader) 261
252 (target "/dev/sda"))) 262 (mapped-devices
253 263 (list (mapped-device
254 (mapped-devices 264 (source
255 (list (mapped-device 265 (uuid "75a1ebd7-13c2-442f-80ff-1b5e59522e29"))
256 (source 266 (target "cryptroot")
257 (uuid "75a1ebd7-13c2-442f-80ff-1b5e59522e29")) 267 (type luks-device-mapping))))
258 (target "cryptroot") 268
259 (type luks-device-mapping)))) 269 (file-systems
260 270 (cons* (file-system
261 (file-systems 271 (mount-point "/")
262 (cons* (file-system 272 (device "/dev/mapper/cryptroot")
263 (mount-point "/") 273 (type "ext4")
264 (device "/dev/mapper/cryptroot") 274 (dependencies mapped-devices))
265 (type "ext4") 275 %base-file-systems)))
266 (dependencies mapped-devices))
267 %base-file-systems)))
268#+end_src 276#+end_src