From e8a0a59457808b224522d85b73405573aa4fd546 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 27 Apr 2024 08:11:01 +0900 Subject: [PATCH] test --- nixos/hosts/steamdeck/disks.nix | 34 ++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/nixos/hosts/steamdeck/disks.nix b/nixos/hosts/steamdeck/disks.nix index 32ce1d06..50a049aa 100644 --- a/nixos/hosts/steamdeck/disks.nix +++ b/nixos/hosts/steamdeck/disks.nix @@ -2,7 +2,7 @@ services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly"; - disko.devices.disk = { + disko.devices = { nvme0 = { type = "disk"; device = "/dev/nvme0n1"; @@ -12,8 +12,8 @@ BOOT = { priority = 1; name = "BOOT"; - start = "0"; - end = "550MB"; + start = "0%"; + end = "550MiB"; type = "EF00"; content = { type = "filesystem"; @@ -24,8 +24,8 @@ }; }; # partition 1 (ESP) ROOT = { - start = "550MB"; - end = "0"; + start = "550MiB"; + end = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; @@ -48,5 +48,29 @@ }; # partitions }; # content }; # disko.devices.disk.nvme0 + + mmcblk0 = { + type = "disk"; + device = "/dev/mmcblk0"; + content = { + type = "gpt"; + partitions = { + SD_CARD = { + start = "0%"; + end = "100%"; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; + subvolumes = { + "/sd_card" = { + mountpoint = "/sd_card"; + mountOptions = [ "compress=none" "noatime" ]; + }; # sd_card + }; # subvolumes + }; # content + }; # partition 2 (SD_CARD BTRFS) + }; # partitions + }; # content + }; # disko.devices.disk.mmcblk0 }; # disko.devices } # root