aboutsummaryrefslogtreecommitdiff
path: root/hosts/limbo/disks.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2025-12-20 13:16:20 -0500
committerRosa <rosaontheweb@proton.me>2025-12-20 13:30:34 -0500
commitca9e1f1fb8126b34ca95fca78965c1d782a30102 (patch)
tree65b8e7e9125e3c9f2f4c72e15afa47fb6fe8c8ec /hosts/limbo/disks.nix
init
Diffstat (limited to 'hosts/limbo/disks.nix')
-rw-r--r--hosts/limbo/disks.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/hosts/limbo/disks.nix b/hosts/limbo/disks.nix
new file mode 100644
index 0000000..50fb894
--- /dev/null
+++ b/hosts/limbo/disks.nix
@@ -0,0 +1,56 @@
+{ config, ... }:
+{
+ disko.devices.disk.main = {
+ content = {
+ partitions = {
+ ESP = {
+ content = {
+ format = "vfat";
+ mountOptions = [ "umask=0077" ];
+ mountpoint = "/boot";
+ type = "filesystem";
+ };
+
+ size = "512M";
+ type = "EF00";
+ };
+
+ luks = {
+ content = {
+ content = {
+ extraArgs = [ "-f" ];
+ subvolumes = {
+ "/home" = {
+ mountOptions = [ "noatime" ];
+ mountpoint = "/home";
+ };
+
+ "/nix" = {
+ mountOptions = [ "noatime" ];
+ mountpoint = "/nix";
+ };
+
+ "/root" = {
+ mountOptions = [ "noatime" ];
+ mountpoint = "/";
+ };
+ };
+
+ type = "btrfs";
+ };
+
+ name = "root";
+ type = "luks";
+ };
+
+ size = "100%";
+ };
+ };
+
+ type = "gpt";
+ };
+
+ device = "/dev/nvme0n1";
+ type = "disk";
+ };
+}