Add machine frues-surface3

This commit is contained in:
Pedro Rey Anca 2025-10-08 17:55:09 +02:00
parent 8fb1ec8330
commit a6a5402907
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
5 changed files with 2430 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/disk/by-id/mmc-064GEA_0x55da4659";
content = {
type = "gpt";
partitions = {
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["umask=0077"];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
settings.allowDiscards = true;
content = {
type = "filesystem";
format = "f2fs";
mountpoint = "/";
extraArgs = [
"-i"
"-O"
"extra_attr,inode_checksum,sb_checksum,compression"
];
mountOptions = [
"compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime,nodiscard"
];
};
};
};
encryptedSwap = {
size = "4G";
content = {
type = "swap";
randomEncryption = true;
};
};
};
};
};
};
};
}