From 30d3909df7083fdbf8f8e1695f7811453b4a96e7 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 26 Apr 2024 23:23:16 +0900 Subject: [PATCH] test --- nixos/hosts/steamdeck/disks.nix | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/nixos/hosts/steamdeck/disks.nix b/nixos/hosts/steamdeck/disks.nix index 68ed7362..1b31c2e3 100644 --- a/nixos/hosts/steamdeck/disks.nix +++ b/nixos/hosts/steamdeck/disks.nix @@ -25,7 +25,7 @@ }; # partition 1 (ESP) ROOT = { start = "550MiB"; - end = "100%"; + size = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; @@ -48,5 +48,29 @@ }; # partitions }; # content }; # disko.devices.disk.nvme0 - }; # disko.devices.disk + + mmcblk0 = { + type = "disk"; + device = "/dev/mmcblk0"; + content = { + type = "gpt"; + partitions = { + MICROSD = { + name = "MICROSD"; + size = "100%"; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; + subvolumes = { + "/microsd" = { + mountpoint = "/microsd"; + mountOptions = [ "compress=none" "noatime" ]; + }; # sd_card + }; # subvolumes + }; # content + }; # partition 2 (MICROSD BTRFS) + }; # partitions + }; # content + }; # disko.devices.disk.mmcblk0 + }; # disko.devices } # root