Compare commits

...

3 Commits

Author SHA1 Message Date
Collin J. Doering a64c66e96a
desktop: noop - fix typo in comment 2024-04-13 22:24:01 -04:00
Collin J. Doering a330acbd4f
desktop: Enable resume from swap
* .guix/rekahsoft/guix-config/desktop.scm: Prior to this commit, resume did not function.
2024-04-13 22:23:14 -04:00
Collin J. Doering 5f71b375fd
desktop: configure libvirt/qemu
* .guix/rekahsoft/guix-config/desktop.scm: Use tianocore firmware from ovmf package in
the (gnu packages firmware) module in order to generate libvirt/qemu.conf to enable booting
using uefi firmware. Additionally, stdio_handler is set to file, as without it vm's could not
e created.
2024-04-13 22:15:37 -04:00
1 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#:use-module (gnu system nss)
#:use-module (gnu packages gnome)
#:use-module (gnu packages linux)
#:use-module (gnu packages firmware)
#:use-module (gnu packages wm)
#:use-module (gnu packages shells)
#:use-module (gnu services virtualization)
@ -41,12 +42,20 @@
(service qemu-binfmt-service-type
(qemu-binfmt-configuration
(platforms (lookup-qemu-platforms "arm" "aarch64"))))
(simple-service 'libvirt-configuration etc-service-type
(list `("libvirt/qemu.conf" ,(mixed-text-file "qemu.conf"
"stdio_handler=\"file\"\n"
"nvram = [\n"
" \"" ovmf "/share/firmware/ovmf_x64.bin:" ovmf "/share/firmware/ovmf_vars_x64.bin\"\n"
"]\n"))))
(service screen-locker-service-type
(screen-locker-configuration
(name "i3lock")
(program (file-append i3lock "/bin/i3lock")))))
(modify-services %desktop-services
;; Enable network-manager-open plugin
;; Enable network-manager-openvpn plugin
(network-manager-service-type config =>
(network-manager-configuration
(inherit config)
@ -94,6 +103,9 @@
;; Use non-free kernel, intel microcode and proprietary firmware
(kernel linux)
(kernel-arguments
(cons* "resume=/dev/mapper/vg0-swap"
%default-kernel-arguments))
(initrd microcode-initrd)
(firmware (list linux-firmware))