summaryrefslogtreecommitdiff
path: root/configuration/snorlax/disk-config.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-03 21:56:21 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-03 21:58:17 +0100
commitfa83bdc5067417e3407241b17116a560c9d86b61 (patch)
tree187fe6802049fceeadb3e6fe3bf4c33579625530 /configuration/snorlax/disk-config.nix
parent91bd5252699ca471fa33defda502558864cdaff0 (diff)
move around alot of stuff
Diffstat (limited to 'configuration/snorlax/disk-config.nix')
-rw-r--r--configuration/snorlax/disk-config.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/configuration/snorlax/disk-config.nix b/configuration/snorlax/disk-config.nix
new file mode 100644
index 0000000..aa789a3
--- /dev/null
+++ b/configuration/snorlax/disk-config.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 = "/";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}