From f28835626ff85371668d1c1a86d74d1550074cdc Mon Sep 17 00:00:00 2001 From: "c0co.channel" Date: Sat, 6 Sep 2025 18:54:31 +0100 Subject: Initial commit --- dom0/system.scm | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 dom0/system.scm (limited to 'dom0/system.scm') diff --git a/dom0/system.scm b/dom0/system.scm new file mode 100644 index 0000000..e009309 --- /dev/null +++ b/dom0/system.scm @@ -0,0 +1,159 @@ +;; Modules to import to access variables used. +(define-module (dom0 system) + #:use-module (gnu) + #:use-module (nongnu packages linux) + #:use-module (nongnu system linux-initrd) + #:use-module (nongnu packages nvidia) + #:use-module (nongnu services nvidia)) + +(use-service-modules linux guix desktop pm audio virtualization + networking dbus xorg avahi) +(use-package-modules linux audio libusb wm fonts + freedesktop vim cryptsetup version-control) + +(operating-system + (locale "en_GB.utf8") + (timezone "Europe/London") + (keyboard-layout (keyboard-layout "gb")) + (host-name "cc") + + ;; Users ('root' is implicit). + (users (cons* (user-account + (name "dom0") + (comment "dom0") + (group "users") + (home-directory "/home/dom0") + (supplementary-groups '("wheel" "libvirt" "kvm" + "netdev" "audio" "video"))) + %base-user-accounts)) + + (bootloader (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + + ;; replace post-install + (swap-devices (list (swap-space + (target (uuid + "49cbaf9f-82ba-4e90-8701-0613f8500b9a"))))) + ;; luks setup - uncomment post-install + ;; and provide source UUID once known + ;;(mapped-devices (list (mapped-device + ;; (source (uuid "")) + ;; (target "