diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-02-03 11:59:53 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-02-03 13:45:14 +0100 |
commit | 77d77f11021d6a7f0927a3d37bf1ff25ba14d504 (patch) | |
tree | 4a705d08118166fdfd9c4bf0a60a74aa03a88731 /hardware/snorlax-disks.nix | |
parent | f69cba0bba9e0067b58902f31c545456dc190cc6 (diff) |
Snorlax nixos-anywhere?
Diffstat (limited to 'hardware/snorlax-disks.nix')
-rw-r--r-- | hardware/snorlax-disks.nix | 38 |
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 = "/"; + }; + }; + }; + }; + }; + }; + }; +} |