From 5604d37d072a7bae7c3b8d0191bb4af14e3e2909 Mon Sep 17 00:00:00 2001 From: "Skylar \"The Cobra\" Widulski" Date: Fri, 26 Jan 2024 18:00:56 -0500 Subject: [PATCH] Add Sodium Signed-off-by: Skylar "The Cobra" Widulski --- etc/guix-config/sodium.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 etc/guix-config/sodium.scm diff --git a/etc/guix-config/sodium.scm b/etc/guix-config/sodium.scm new file mode 100644 index 0000000..ca0d6ac --- /dev/null +++ b/etc/guix-config/sodium.scm @@ -0,0 +1,28 @@ +(add-to-load-path (dirname (current-filename))) +(use-modules (gnu) (cobra os)) + +(operating-system + (inherit %base-guix-system) + (host-name "Sodium") + (mapped-devices (list + (mapped-device + (source (uuid "d07456c7-51a5-4ed8-b5b6-a409884c7ebd")) + (target "fde") + (type luks-device-mapping)) + (mapped-device + (source "matrix") + (targets (list "matrix-rootvol")) + (type lvm-device-mapping)))) + (file-systems (append (list + (file-system + (type "btrfs") + (mount-point "/") + (device (file-system-label "root")) + (flags '(no-atime)) + (options "space_cache=v2") + (needed-for-boot? #t) + (dependencies mapped-devices))) + %base-file-systems)) + (swap-devices (list (swap-space + (target "/swapfile"))))) +