Created
March 20, 2024 17:57
-
-
Save PerchunPak/0df4fa9117dfb036b0564a9f058f539c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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