diff options
Diffstat (limited to 'nix/disko')
-rw-r--r-- | nix/disko/nvme-simple.nix | 35 | ||||
-rw-r--r-- | nix/disko/sda-simple.nix | 35 | ||||
-rw-r--r-- | nix/disko/vda-simple.nix | 27 |
3 files changed, 97 insertions, 0 deletions
diff --git a/nix/disko/nvme-simple.nix b/nix/disko/nvme-simple.nix new file mode 100644 index 0000000..665c17e --- /dev/null +++ b/nix/disko/nvme-simple.nix @@ -0,0 +1,35 @@ +{ + disko.devices = { + disk = { + my-disk = { + device = "/dev/nvme0n1"; + 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 = "/"; + }; + }; + }; + }; + }; + }; + }; +} diff --git a/nix/disko/sda-simple.nix b/nix/disko/sda-simple.nix new file mode 100644 index 0000000..fdf6556 --- /dev/null +++ b/nix/disko/sda-simple.nix @@ -0,0 +1,35 @@ +{ + disko.devices = { + disk = { + my-disk = { + device = "/dev/sda"; + 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 = "/"; + }; + }; + }; + }; + }; + }; + }; +} diff --git a/nix/disko/vda-simple.nix b/nix/disko/vda-simple.nix new file mode 100644 index 0000000..32fa28d --- /dev/null +++ b/nix/disko/vda-simple.nix @@ -0,0 +1,27 @@ +{ + disko.devices = { + disk = { + main = { + device = "/dev/vda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +} |