aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-02-03 15:41:35 -0800
committerPreston Pan <ret2pop@gmail.com>2025-02-03 15:41:35 -0800
commit66c78fdb55211cc071b87761635284f17b7c7c4c (patch)
treed9f59b74896c582ef4ac1c7ea1e0a6f2b44396d1 /nix
parent8e5d3a8fcd6893bcd4903cc9b7bfe96f6486d7c6 (diff)
add some files
Diffstat (limited to 'nix')
-rw-r--r--nix/modules/vda-simple.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/nix/modules/vda-simple.nix b/nix/modules/vda-simple.nix
new file mode 100644
index 0000000..f18b1c3
--- /dev/null
+++ b/nix/modules/vda-simple.nix
@@ -0,0 +1,35 @@
+{
+ disko.devices = {
+ disk = {
+ my-disk = {
+ device = "/dev/vda";
+ type = "disk";
+ content = {
+ type = "gpt";
+ partitions = {
+ ESP = {
+ type = "EF00";
+ size = "500M";
+ priority = 1;
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ mountOptions = [ "umask=0077" ];
+ };
+ };
+ root = {
+ size = "100%";
+ priority = 2;
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}