aboutsummaryrefslogtreecommitdiffstats
path: root/system/disks
diff options
context:
space:
mode:
Diffstat (limited to 'system/disks')
-rw-r--r--system/disks/default.nix33
1 files changed, 19 insertions, 14 deletions
diff --git a/system/disks/default.nix b/system/disks/default.nix
index a560af4a..29b7d3cb 100644
--- a/system/disks/default.nix
+++ b/system/disks/default.nix
@@ -51,20 +51,25 @@ in {
size = "100%";
name = "root";
content = {
- type = "btrfs";
- extraArgs = ["-f"]; # Override existing partitions
- subvolumes = {
- "nix" = {
- mountpoint = "/nix";
- mountOptions = defaultMountOptions;
- };
- "persistent-storage" = {
- mountpoint = "/srv";
- mountOptions = defaultMountOptions;
- };
- "swap" = {
- mountpoint = "/swap";
- mountOptions = defaultMountOptions;
+ type = "luks";
+ name = "encrypted";
+ extraOpenArgs = ["--allow-discards"];
+ content = {
+ type = "btrfs";
+ extraArgs = ["-f"]; # Override existing partitions
+ subvolumes = {
+ "nix" = {
+ mountpoint = "/nix";
+ mountOptions = defaultMountOptions;
+ };
+ "persistent-storage" = {
+ mountpoint = "/srv";
+ mountOptions = defaultMountOptions;
+ };
+ "swap" = {
+ mountpoint = "/swap";
+ mountOptions = defaultMountOptions;
+ };
};
};
};