feat(hosts): update disko config.
This commit is contained in:
parent
35a1ef77cc
commit
5aa2be1ea8
1 changed files with 52 additions and 45 deletions
|
@ -1,50 +1,57 @@
|
||||||
{lib, ...}: {
|
{
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.disk1 = {
|
disk = {
|
||||||
device = lib.mkDefault "/dev/vda";
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
device = "/dev/nvme0n1";
|
||||||
type = "gpt";
|
content = {
|
||||||
partitions = {
|
type = "gpt";
|
||||||
boot = {
|
partitions = {
|
||||||
name = "boot";
|
ESP = {
|
||||||
size = "1M";
|
size = "512M";
|
||||||
type = "EF02";
|
type = "EF00";
|
||||||
};
|
content = {
|
||||||
esp = {
|
type = "filesystem";
|
||||||
name = "ESP";
|
format = "vfat";
|
||||||
size = "500M";
|
mountpoint = "/boot";
|
||||||
type = "EF00";
|
mountOptions = ["umask=0077"];
|
||||||
content = {
|
};
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
};
|
||||||
};
|
luks = {
|
||||||
root = {
|
size = "100%";
|
||||||
name = "root";
|
content = {
|
||||||
size = "100%";
|
type = "luks";
|
||||||
content = {
|
name = "crypted";
|
||||||
type = "lvm_pv";
|
settings.allowDiscards = true;
|
||||||
vg = "pool";
|
passwordFile = "/tmp/secret.key";
|
||||||
};
|
content = {
|
||||||
};
|
type = "btrfs";
|
||||||
};
|
extraArgs = ["-f"];
|
||||||
};
|
subvolumes = {
|
||||||
};
|
"@" = {
|
||||||
lvm_vg = {
|
mountpoint = "/";
|
||||||
pool = {
|
mountOptions = [
|
||||||
type = "lvm_vg";
|
"compress=zstd"
|
||||||
lvs = {
|
"noatime"
|
||||||
root = {
|
];
|
||||||
size = "100%FREE";
|
};
|
||||||
content = {
|
"@home" = {
|
||||||
type = "filesystem";
|
mountpoint = "/home";
|
||||||
format = "ext4";
|
mountOptions = [
|
||||||
mountpoint = "/";
|
"compress=zstd"
|
||||||
mountOptions = [
|
"noatime"
|
||||||
"defaults"
|
];
|
||||||
];
|
};
|
||||||
|
"@nix" = {
|
||||||
|
mountpoint = "/nix";
|
||||||
|
mountOptions = [
|
||||||
|
"compress=zstd"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue