mirror of
https://codeberg.org/privacy1st/nixos-anywhere-example
synced 2024-11-21 22:03:19 +01:00
disko: fix infinite recursion error
This commit is contained in:
parent
d3ca5ce58b
commit
dc7a8e45a0
@ -1,5 +1,5 @@
|
|||||||
# Example to create a bios compatible gpt partition
|
# Example to create a bios compatible gpt partition
|
||||||
{ lib, config, ... }: {
|
{ lib, ... }: {
|
||||||
disko.devices.disk = {
|
disko.devices.disk = {
|
||||||
one = {
|
one = {
|
||||||
# Change this device name match your block device.
|
# Change this device name match your block device.
|
||||||
@ -8,14 +8,12 @@
|
|||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = lib.optionalAttrs config.boot.loader.grub.enable
|
partitions = {
|
||||||
{
|
|
||||||
boot = {
|
boot = {
|
||||||
name = "boot";
|
name = "boot";
|
||||||
size = "1M";
|
size = "1M";
|
||||||
type = "EF02";
|
type = "EF02";
|
||||||
};
|
};
|
||||||
} // {
|
|
||||||
ESP = {
|
ESP = {
|
||||||
size = "500M";
|
size = "500M";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
|
Loading…
Reference in New Issue
Block a user