summaryrefslogtreecommitdiff
path: root/hardware/snorlax-disks.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hardware/snorlax-disks.nix')
-rw-r--r--hardware/snorlax-disks.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/hardware/snorlax-disks.nix b/hardware/snorlax-disks.nix
new file mode 100644
index 0000000..aa789a3
--- /dev/null
+++ b/hardware/snorlax-disks.nix
@@ -0,0 +1,38 @@
+{
+ disko.devices = {
+ disk = {
+ sda = {
+ device = "/dev/sda";
+ type = "disk";
+ content = {
+ type = "gpt";
+ partitions = {
+ MBR = {
+ type = "EF02"; # for grub MBR
+ size = "1M";
+ priority = 1; # Needs to be first partition
+ };
+ ESP = {
+ type = "EF00";
+ size = "500M";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ mountOptions = [ "umask=0077" ];
+ };
+ };
+ root = {
+ size = "100%";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}