agate: added
This commit is contained in:
parent
37c29252a3
commit
6f1ae9dcba
10 changed files with 284 additions and 56 deletions
91
machines/agate/disk-config.nix
Normal file
91
machines/agate/disk-config.nix
Normal file
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
ssd1 = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-path/pci-0004:49:00.0-sas-exp0x500e004aaaaaaa1f-phy1-lun-0";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
BOOT = {
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
ESP = {
|
||||
size = "500M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot0";
|
||||
};
|
||||
};
|
||||
system_p1 = {
|
||||
size = "100%";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
ssd2 = {
|
||||
type = "disk";
|
||||
device = "/dev/disk/by-path/pci-0004:49:00.0-sas-exp0x500e004aaaaaaa1f-phy2-lun-0";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
BOOT = {
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
ESP = {
|
||||
size = "500M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot1";
|
||||
};
|
||||
};
|
||||
system_p2 = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [
|
||||
"-f"
|
||||
"-d raid1"
|
||||
"/dev/disk/by-partlabel/disk-ssd1-system_p1"
|
||||
];
|
||||
subvolumes = {
|
||||
# Subvolume name is different from mountpoint
|
||||
"/rootfs" = {
|
||||
mountpoint = "/";
|
||||
};
|
||||
# Subvolume name is the same as the mountpoint
|
||||
"/home" = {
|
||||
mountOptions = [ "compress=zstd" ];
|
||||
mountpoint = "/home";
|
||||
};
|
||||
# Parent is not mounted so the mountpoint must be set
|
||||
"/nix" = {
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
"/persistent" = {
|
||||
mountOptions = [
|
||||
"noatime"
|
||||
# Lots of dbs in /var/lib, let's disable cow
|
||||
"nodatacow"
|
||||
];
|
||||
mountpoint = "/var/lib";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue