summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-06-12 21:05:04 +0200
committermakefu <github@syntax-fehler.de>2023-06-12 21:05:04 +0200
commit19582674abb689629a00da038a8c86eee3a8a446 (patch)
treed13cc0b5cf777f8085d346dc75a9b516ab2dc763
parentac112d6c21fa692c64afc9b27c4af4ea552f2d4d (diff)
fs: add disko single-disk partitioning
-rw-r--r--2configs/fs/disko/single-disk-bcachefs.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/2configs/fs/disko/single-disk-bcachefs.nix b/2configs/fs/disko/single-disk-bcachefs.nix
new file mode 100644
index 000000000..cd73afd0d
--- /dev/null
+++ b/2configs/fs/disko/single-disk-bcachefs.nix
@@ -0,0 +1,38 @@
+{ disks ? [ "/dev/sda" ], ... }: {
+ disko.devices = {
+ disk = {
+ vdb = {
+ device = builtins.elemAt disks 0;
+ type = "disk";
+ content = {
+ type = "table";
+ format = "gpt";
+ partitions = [
+ {
+ name = "ESP";
+ start = "1MiB";
+ end = "500MiB";
+ bootable = true;
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ };
+ }
+ {
+ name = "root";
+ start = "500MiB";
+ end = "100%";
+ part-type = "primary";
+ content = {
+ type = "filesystem";
+ format = "bcachefs";
+ mountpoint = "/";
+ };
+ }
+ ];
+ };
+ };
+ };
+ };
+}