aboutsummaryrefslogtreecommitdiff
path: root/nixos/laptop/disk-config.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/laptop/disk-config.nix')
-rw-r--r--nixos/laptop/disk-config.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixos/laptop/disk-config.nix b/nixos/laptop/disk-config.nix
new file mode 100644
index 0000000..825a147
--- /dev/null
+++ b/nixos/laptop/disk-config.nix
@@ -0,0 +1,37 @@
+{
+ disko.devices = {
+ disk = {
+ main = {
+ device = "/dev/nvme0n1";
+ type = "disk";
+ content = {
+ type = "gpt";
+ partitions = {
+ boot = {
+ size = "1M";
+ type = "EF02";
+ };
+ ESP = {
+ size = "1G";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ mountOptions = [ "umask=0077" ];
+ };
+ };
+ root = {
+ size = "100%";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}