From 2dff9d2b61244fed49136028d0e0f6ae3ae759cf Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 16 Jan 2025 00:13:06 -0800 Subject: modules about done --- nix/modules/sda-simple.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 nix/modules/sda-simple.nix (limited to 'nix/modules/sda-simple.nix') diff --git a/nix/modules/sda-simple.nix b/nix/modules/sda-simple.nix new file mode 100644 index 0000000..f4d6e0e --- /dev/null +++ b/nix/modules/sda-simple.nix @@ -0,0 +1,36 @@ +{ config, ... }: +{ + disko.devices = { + disk = { + my-disk = { + device = config.monorepo.vars.disk; + 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 = "/"; + }; + }; + }; + }; + }; + }; + }; +} -- cgit