Update disko
This commit is contained in:
parent
f0dd60eca4
commit
36e509ee4c
3 changed files with 52 additions and 63 deletions
|
|
@ -1,36 +1,29 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
# Partition the physical disk
|
# Partition the physical disk
|
||||||
disk = {
|
disk.storage = {
|
||||||
storage = {
|
type = "disk";
|
||||||
type = "disk";
|
device = "/dev/nvme0n1";
|
||||||
device = "/dev/nvme0n1";
|
content = {
|
||||||
content = {
|
type = "gpt";
|
||||||
type = "table";
|
partitions = {
|
||||||
format = "gpt";
|
ESP = {
|
||||||
partitions = [
|
start = "2MiB";
|
||||||
{
|
end = "2GiB";
|
||||||
name = "esp";
|
type = "EF00";
|
||||||
start = "2MiB";
|
content = {
|
||||||
end = "2GiB";
|
type = "filesystem";
|
||||||
fs-type = "fat32";
|
format = "vfat";
|
||||||
bootable = true;
|
mountpoint = "/boot";
|
||||||
content = {
|
};
|
||||||
type = "filesystem";
|
};
|
||||||
format = "vfat";
|
zfs = {
|
||||||
mountpoint = "/boot";
|
size = "100%";
|
||||||
};
|
content = {
|
||||||
}
|
type = "zfs";
|
||||||
{
|
pool = "zroot";
|
||||||
name = "zfs";
|
};
|
||||||
start = "2GiB";
|
};
|
||||||
end = "100%";
|
|
||||||
content = {
|
|
||||||
type = "zfs";
|
|
||||||
pool = "zroot";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "uas" "sd_mod" "sdhci_acpi" ];
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "uas" "sd_mod" "sdhci_acpi" ];
|
||||||
|
|
@ -14,12 +15,14 @@
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/9f65c4b3-1c87-42a0-8c1d-f3c1ff2e71b1";
|
{
|
||||||
|
device = "/dev/disk/by-uuid/9f65c4b3-1c87-42a0-8c1d-f3c1ff2e71b1";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/1C5A-E5B5";
|
{
|
||||||
|
device = "/dev/disk/by-uuid/1C5A-E5B5";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,36 +1,29 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
# Partition the physical disk
|
# Partition the physical disk
|
||||||
disk = {
|
disk.storage = {
|
||||||
storage = {
|
type = "disk";
|
||||||
type = "disk";
|
device = "/dev/nvme0n1";
|
||||||
device = "/dev/nvme0n1";
|
content = {
|
||||||
content = {
|
type = "gpt";
|
||||||
type = "table";
|
partitions = {
|
||||||
format = "gpt";
|
ESP = {
|
||||||
partitions = [
|
start = "1MiB";
|
||||||
{
|
end = "1GiB";
|
||||||
name = "esp";
|
type = "EF00";
|
||||||
start = "1MiB";
|
content = {
|
||||||
end = "1GiB";
|
type = "filesystem";
|
||||||
fs-type = "fat32";
|
format = "vfat";
|
||||||
bootable = true;
|
mountpoint = "/boot";
|
||||||
content = {
|
};
|
||||||
type = "filesystem";
|
};
|
||||||
format = "vfat";
|
zfs = {
|
||||||
mountpoint = "/boot";
|
size = "100%";
|
||||||
};
|
content = {
|
||||||
}
|
type = "zfs";
|
||||||
{
|
pool = "zroot";
|
||||||
name = "zfs";
|
};
|
||||||
start = "1GiB";
|
};
|
||||||
end = "100%";
|
|
||||||
content = {
|
|
||||||
type = "zfs";
|
|
||||||
pool = "zroot";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue