This commit is contained in:
albert 2024-04-27 08:11:01 +09:00
parent 904f11a4bb
commit e8a0a59457
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A

View file

@ -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