Skip to content

Instantly share code, notes, and snippets.

@PerchunPak
Created March 20, 2024 17:57
Show Gist options
  • Save PerchunPak/0df4fa9117dfb036b0564a9f058f539c to your computer and use it in GitHub Desktop.
Save PerchunPak/0df4fa9117dfb036b0564a9f058f539c to your computer and use it in GitHub Desktop.
diff --git a/modules/nixos/disko.nix b/modules/nixos/disko.nix
index 2c49e4a..2528d1f 100644
--- a/modules/nixos/disko.nix
+++ b/modules/nixos/disko.nix
@@ -22,18 +22,22 @@
};
};
swap = {
- size = "4G";
+ size = "8G";
content = {
type = "swap";
resumeDevice = true;
};
};
- root = {
- name = "root";
+ luks = {
size = "100%";
content = {
- type = "lvm_pv";
- vg = "root_vg";
+ type = "luks";
+ name = "crypted";
+ settings.allowDiscards = true;
+ content = {
+ type = "lvm_pv";
+ vg = "root_vg";
+ };
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment