summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/ryan-config/deploy-templates/HostTemplate.scm19
-rw-r--r--modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm24
2 files changed, 43 insertions, 0 deletions
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 @@
1(use-modules (ryan-config base-system)
2 (gnu))
3
4(operating-system
5 (inherit base-operating-system)
6 (host-name "ChangeMe_HOST")
7 (file-systems (cons* (file-system
8 (mount-point "/")
9 (device (uuid "ChangeMe_ROOT"
10 'ext4))
11 (type "ext4"))
12 (file-system
13 (mount-point "/boot/efi")
14 (device (uuid "ChangeMe_BOOTEFI"
15 'fat32))
16 (type "vfat")) %base-file-systems))
17 (swap-devices
18 (list
19 (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 @@
1(use-modules (ryan-config base-system)
2 (gnu))
3
4(operating-system
5 (inherit base-operating-system)
6 (host-name "ChangeMe_HOST")
7 (mapped-devices (list (mapped-device
8 (source (uuid
9 "ChangeMe_ROOT"))
10 (target "sysroot")
11 (type luks-device-mapping))))
12 (file-systems (cons* (file-system
13 (mount-point "/")
14 (device "/dev/mapper/sysroot")
15 (type "ext4")
16 (dependencies mapped-devices))
17 (file-system
18 (mount-point "/boot/efi")
19 (device (uuid "ChangeMe_BOOTEFI"
20 'fat32))
21 (type "vfat")) %base-file-systems))
22 (swap-devices
23 (list
24 (swap-space (target (uuid "ChangeMe_SWAP"))))))