bcachefs
This commit is contained in:
parent
f561177af5
commit
8d086ffcca
10 changed files with 5545 additions and 37 deletions
49
systems/disk-config.nix
Normal file
49
systems/disk-config.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{lib, ...}: {
|
||||
disko.devices = {
|
||||
disk.disk1 = {
|
||||
device = lib.mkDefault "/dev/disk/by-diskseq/1";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
esp = {
|
||||
name = "ESP";
|
||||
size = "500M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
};
|
||||
plainSwap = {
|
||||
size = "32G";
|
||||
content = {
|
||||
type = "swap";
|
||||
discardPolicy = "both";
|
||||
resumeDevice = true;
|
||||
};
|
||||
};
|
||||
root = {
|
||||
name = "root";
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
mountOptions = ["noatime"];
|
||||
extraArgs = [
|
||||
"--compression zstd"
|
||||
"--background_compression zstd"
|
||||
"--discard"
|
||||
];
|
||||
subvolumes = {
|
||||
"/home" = {};
|
||||
"/nix" = {};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue