summaryrefslogtreecommitdiffstats
path: root/guix/jd/desktops/berserker.scm
blob: 37135dccd6180c3b5992c6040ad34c07eb3c3254 (plain)
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
(define-module (jd desktops berserker)
  #:use-module (jd desktops base)
  #:use-module (gnu)
  #:use-module (gnu home))

(define home
  (home-environment
   (services %jd-base-home-services)))

(define system
  (operating-system
   (inherit odin-non-free)
   (host-name "berserker")

   (bootloader (bootloader-configuration
		(bootloader grub-efi-bootloader)
		(targets (list "/boot/efi"))))
   
   (mapped-devices (list (mapped-device
                          (source (uuid
                                   "ef754148-6f23-4d7e-92b4-7abbfe0ae201"))
                          (target "cryptroot")
                          (type luks-device-mapping))))

   (file-systems (cons* (file-system
			 (mount-point "/boot/efi")
			 (device (uuid "695E-FE22"
                                       'fat32))
			 (type "vfat"))
			(file-system
			 (mount-point "/")
			 (device "/dev/mapper/cryptroot")
			 (type "ext4")
			 (dependencies mapped-devices)) %base-file-systems))))


(if (getenv "JD_HOME") home system)