summaryrefslogtreecommitdiffstats
path: root/.config/guix/systems/viking.scm
blob: 00b279e6f2b518fa94afc2abcdfdf1557f893580 (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
(define-module (viking)
  #:use-module (base-system)
  #:use-module (gnu))

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

 (bootloader
  (bootloader-configuration
   (bootloader grub-bootloader)
   (target "/dev/sda")))

 (mapped-devices
  (list (mapped-device
         (source
          (uuid "75a1ebd7-13c2-442f-80ff-1b5e59522e29"))
         (target "cryptroot")
         (type luks-device-mapping))))

 (file-systems
  (cons* (file-system
          (mount-point "/")
          (device "/dev/mapper/cryptroot")
          (type "ext4")
          (dependencies mapped-devices))
         %base-file-systems)))