dotfiles-guix/files/base.scm.m4

52 lines
1.5 KiB
Text

divert(-1)
changecom(`//')
//
// This is the base system file for the installer.
//
// Macro definitions:
//
// Required:
// HOST: The systems hostname
// BOOT: Boot partition uuid
// ROOT: Root partition uuid
// FSYS: Root filesystem
//
// Optional:
// SWAP: Swap partition uuid
// CRYPT: If using luks (boolean)
//
divert(0)dnl
(use-modules (freya system)
(gnu))
(operating-system
(inherit %desktop-freya-operating-system)
(host-name "HOST")
ifdef(`CRYPT', `dnl
(mapped-devices (list (mapped-device
(source (uuid
"ROOT"))
(target "root")
(type luks-device-mapping))))
')dnl
ifdef(`SWAP', `dnl
(swap-devices (list (swap-space
(target (uuid
"SWAP")))))
')dnl
(file-systems (cons* (file-system
(mount-point "/")
ifdef(`CRYPT', `dnl
(device "/dev/mapper/root")
', `dnl
(device (uuid "ROOT"))
')dnl
(type "FSYS")
(dependencies mapped-devices))
(file-system
(mount-point "/boot/efi")
(device (uuid "BOOT"
'fat32))
(type "vfat"))
(operating-system-file-systems
%desktop-freya-operating-system))))