Get nvidia driver working

master
noah metz 2023-12-07 17:36:10 -07:00
parent c3aaf17949
commit 8be3977ccb
1 changed files with 20 additions and 13 deletions

@ -1,6 +1,8 @@
(use-modules (gnu) (use-modules (gnu)
(nongnu packages linux) (nongnu packages linux)
(nongnu system linux-initrd) (nongnu system linux-initrd)
(nongnu packages nvidia)
(nongnu services nvidia)
(metznet system base-system) (metznet system base-system)
(gnu packages vim) (gnu packages vim)
(gnu packages version-control) (gnu packages version-control)
@ -10,31 +12,36 @@
(inherit %metznet-base-desktop-system) (inherit %metznet-base-desktop-system)
;; Requires nonfree kernel for intel wifi support ;; Requires nonfree kernel for intel wifi support
(kernel linux) (kernel linux-6.1)
(initrd microcode-initrd) (initrd microcode-initrd)
(firmware (list linux-firmware)) (firmware (list linux-firmware))
(host-name "otto") (host-name "otto")
(bootloader (bootloader-configuration (bootloader (bootloader-configuration
(bootloader grub-efi-bootloader) (bootloader grub-efi-bootloader)
(targets '("/boot/efi")))) (targets '("/boot/efi"))))
(services (services
(modify-services %metznet-desktop-services (append (list (service nvidia-service-type
(guix-service-type config => (nvidia-configuration (modules (list "nvidia"
(guix-configuration (inherit config) "nvidia_uvm"
(substitute-urls (append (list "nvidia_drm"
"https://substitutes.nonguix.org") "nvidia_modeset")))))
%default-substitute-urls)) (modify-services %metznet-desktop-services
(authorized-keys (append (list (plain-file (guix-service-type config =>
"nonguix-signing-key.pub" (guix-configuration (inherit config)
"(public-key (substitute-urls (append (list
"https://substitutes.nonguix.org")
%default-substitute-urls))
(authorized-keys (append (list
(plain-file
"nonguix-signing-key.pub"
"(public-key
(ecc (ecc
(curve Ed25519) (curve Ed25519)
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#) (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)
) )
) )
")) "))
%default-authorized-guix-keys)))))) %default-authorized-guix-keys)))))))
(swap-devices (list (swap-space (swap-devices (list (swap-space
(target (file-system-label "otto-swap"))))) (target (file-system-label "otto-swap")))))
(file-systems (cons* (file-system (file-systems (cons* (file-system
@ -50,4 +57,4 @@
"root ALL=(ALL:ALL) NOPASSWD:ALL" "root ALL=(ALL:ALL) NOPASSWD:ALL"
"%admin ALL=(ALL:ALL) ALL" "") "\n"))) "%admin ALL=(ALL:ALL) ALL" "") "\n")))
(packages (cons* git neovim %metznet-desktop-packages))) (packages (cons* nvidia-driver git neovim %metznet-desktop-packages)))