add deck base config

This commit is contained in:
Yan Lin 2025-10-28 18:37:44 +01:00
parent 9fd8cc2e0d
commit 9102264fcc
5 changed files with 254 additions and 1 deletions

View file

@ -0,0 +1,47 @@
# Disko configuration for Steam Deck
# Following the partitioning scheme from https://heywoodlh.io/nixos-steamdeck
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
# EFI System Partition
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "fmask=0077" "dmask=0077" ];
};
};
# Swap partition
swap = {
size = "8G";
content = {
type = "swap";
resumeDevice = true;
};
};
# Root partition - takes remaining space
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}