From 9e55b23c296bb744afe8686f7d073fc4f8c38eb2 Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Tue, 9 Jul 2024 12:04:33 +0200 Subject: [PATCH] . --- disko-nocrypt-config.nix | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 disko-nocrypt-config.nix diff --git a/disko-nocrypt-config.nix b/disko-nocrypt-config.nix new file mode 100644 index 0000000..0a93076 --- /dev/null +++ b/disko-nocrypt-config.nix @@ -0,0 +1,52 @@ +{ + disko.devices = { + disk = { + main = { + #device = builtins.elemAt disks 0; + device = "/dev/nvme0n1"; # DEVICE_NAME + type = "disk"; + content = { + type = "gpt"; + partitions = { + ESP = { + priority = 1; + name = "ESP"; + size = "500M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + size = "100%"; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; + subvolumes = { + "/rootfs" = { + mountOptions = [ "compress=zstd" ]; + mountpoint = "/"; + }; + "/home" = { + mountOptions = [ "compress=zstd" ]; + mountpoint = "/home"; + }; + "/nix" = { + mountOptions = [ "compress=zstd" "noatime" ]; + mountpoint = "/nix"; + }; + "/swap" = { + mountOptions = [ "subvol=swap" ]; + mountpoint = "/swap"; + }; + }; + }; + }; + }; + }; + }; + }; + }; +} \ No newline at end of file