-
Notifications
You must be signed in to change notification settings - Fork 0
/
birtha-system.scm
75 lines (74 loc) · 2.26 KB
/
birtha-system.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
(add-to-load-path (dirname (current-filename)))
(use-modules (gnu)
(gnu services)
(gnu packages shells)
(utilities)
(system)
(gnu services xorg)
(nongnu packages linux)
(nongnu packages nvidia)
(nongnu services nvidia))
(make-system
"birtha"
(list (swap-space (target (file-system-label "HDD-SWAP"))))
(cons* (file-system
(mount-point "/boot/efi")
(device (file-system-label "SSD-EFI"))
(type "vfat"))
(file-system
(mount-point "/")
(device (file-system-label "SSD-GUIX-ROOT"))
(type "ext4"))
(let ((hdd
(file-system
(mount-point "/hdd")
(device (file-system-label "HDD"))
(type "ext4")))
(arch
(file-system
(mount-point "/arch")
(device (file-system-label "SSD-ARCH-ROOT"))
(type "ext4")))
(bind (lambda (to from in)
(file-system
(mount-point to)
(device from)
(type "none")
(flags '(bind-mount))
(dependencies (list in))))))
(list
hdd
arch
(bind "/ssd" "/arch/ssd" arch)
(bind "/home" "/hdd/home" hdd))))
(cons* (service nvidia-service-type) system-services)
(using-nvidia system-packages)
#:extra-users
(list
(user-account
(name "steam")
(comment "Steam")
(group "users")
(shell (file-append zsh "/bin/zsh"))
(home-directory "/home/steam")
(supplementary-groups '("wheel" "netdev" "audio" "video" "realtime"))))
#:grub-theme (grub-theme
(inherit (grub-theme))
(gfxmode '("1920x1080x32" "1024x786x32" "auto")))
#:kernel linux-lts
#:kernel-arguments
(cons*
"modprobe.blacklist=nouveau"
;; Set this if the card is not used for displaying or
;; you're using Wayland:
"nvidia_drm.modeset=1"
%default-kernel-arguments)
#:grub-entries
(list
(menu-entry
(label "Arch")
;; I think there is a bug that stops this from working, so must qualify (hd0,4) below.
(device "SSDARCHEFI")
;; Could have put these both in the same partition with a different label.
;; I think I did this by accident anyway at some point.
(chain-loader "(hd0,4)/EFI/GRUB/grubx64.efi"))))