mirror of
https://codeberg.org/privacy1st/nixos-anywhere-example
synced 2024-11-20 21:58:06 +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
|
||||
{ lib, config, ... }: {
|
||||
{ lib, ... }: {
|
||||
disko.devices.disk = {
|
||||
one = {
|
||||
# Change this device name match your block device.
|
||||
@ -8,14 +8,12 @@
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = lib.optionalAttrs config.boot.loader.grub.enable
|
||||
{
|
||||
partitions = {
|
||||
boot = {
|
||||
name = "boot";
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
} // {
|
||||
ESP = {
|
||||
size = "500M";
|
||||
type = "EF00";
|
||||
|
Loading…
Reference in New Issue
Block a user