summaryrefslogtreecommitdiff
path: root/systems/shinji.scm
blob: 0b8378b6cf04043c1ff9c028e0855fb7849ea33e (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
(use-modules (freya system)
             (gnu))

(operating-system
    (inherit base-operating-system)
    (host-name "shinji")

    (kernel-arguments (append (list "intel_iommu=on")
                              %default-kernel-arguments))

    (initrd-modules (cons* "vfio_pci" "vfio" "vfio_iommu_type1"
                           %base-initrd-modules))

    (mapped-devices (list (mapped-device
                (source (uuid
                      "5c5dcb22-62b1-41af-9116-b8fdfba83ca2"))
                (target "cryptroot")
                (type luks-device-mapping))))

    (file-systems (cons* (file-system
                            (mount-point "/")
                            (device "/dev/mapper/cryptroot")
                            (type "btrfs")
                            (dependencies mapped-devices))
                         (file-system
                            (mount-point "/boot/efi")
                            (device (uuid "AD5A-4DF3"
                                  'fat32))
                            (type "vfat")) %base-file-systems)))