mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 16:10:14 +00:00
try different disko config without lvm
This commit is contained in:
@ -90,53 +90,30 @@ rec {
|
|||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
# Example to create a bios compatible gpt partition
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.disk1 = {
|
disk = {
|
||||||
device = "/dev/sda";
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
device = "/dev/sda";
|
||||||
type = "gpt";
|
content = {
|
||||||
partitions = {
|
type = "gpt";
|
||||||
boot = {
|
partitions = {
|
||||||
name = "boot";
|
boot = {
|
||||||
size = "1M";
|
size = "512M";
|
||||||
type = "EF02";
|
type = "EF00";
|
||||||
};
|
content = {
|
||||||
esp = {
|
type = "filesystem";
|
||||||
name = "ESP";
|
format = "vfat";
|
||||||
size = "500M";
|
mountpoint = "/boot";
|
||||||
type = "EF00";
|
};
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
};
|
||||||
};
|
root = {
|
||||||
root = {
|
size = "100%";
|
||||||
name = "root";
|
content = {
|
||||||
size = "100%";
|
type = "filesystem";
|
||||||
content = {
|
format = "ext4";
|
||||||
type = "lvm_pv";
|
mountpoint = "/";
|
||||||
vg = "pool";
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
lvm_vg = {
|
|
||||||
pool = {
|
|
||||||
type = "lvm_vg";
|
|
||||||
lvs = {
|
|
||||||
root = {
|
|
||||||
size = "100%FREE";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/";
|
|
||||||
mountOptions = [
|
|
||||||
"defaults"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user