From 33a7e1524d9134dab37e1ba812e0526a7fd72435 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Thu, 14 Sep 2023 13:36:03 -0400 Subject: preparing deploy script --- .../ryan-config/deploy-templates/HostTemplate.scm | 19 +++++++++++++++++ .../deploy-templates/HostTemplateEncrypted.scm | 24 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 modules/ryan-config/deploy-templates/HostTemplate.scm create mode 100644 modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm (limited to 'modules/ryan-config') diff --git a/modules/ryan-config/deploy-templates/HostTemplate.scm b/modules/ryan-config/deploy-templates/HostTemplate.scm new file mode 100644 index 0000000..9718c51 --- /dev/null +++ b/modules/ryan-config/deploy-templates/HostTemplate.scm @@ -0,0 +1,19 @@ +(use-modules (ryan-config base-system) + (gnu)) + +(operating-system + (inherit base-operating-system) + (host-name "ChangeMe_HOST") + (file-systems (cons* (file-system + (mount-point "/") + (device (uuid "ChangeMe_ROOT" + 'ext4)) + (type "ext4")) + (file-system + (mount-point "/boot/efi") + (device (uuid "ChangeMe_BOOTEFI" + 'fat32)) + (type "vfat")) %base-file-systems)) + (swap-devices + (list + (swap-space (target (uuid "ChangeMe_SWAP")))))) diff --git a/modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm b/modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm new file mode 100644 index 0000000..5d74aaa --- /dev/null +++ b/modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm @@ -0,0 +1,24 @@ +(use-modules (ryan-config base-system) + (gnu)) + +(operating-system + (inherit base-operating-system) + (host-name "ChangeMe_HOST") + (mapped-devices (list (mapped-device + (source (uuid + "ChangeMe_ROOT")) + (target "sysroot") + (type luks-device-mapping)))) + (file-systems (cons* (file-system + (mount-point "/") + (device "/dev/mapper/sysroot") + (type "ext4") + (dependencies mapped-devices)) + (file-system + (mount-point "/boot/efi") + (device (uuid "ChangeMe_BOOTEFI" + 'fat32)) + (type "vfat")) %base-file-systems)) + (swap-devices + (list + (swap-space (target (uuid "ChangeMe_SWAP")))))) -- cgit v1.2.3