mirror of
https://codeberg.org/privacy1st/nixos-anywhere-example
synced 2024-12-23 02:36:05 +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
|
||||
{
|
||||
boot = {
|
||||
name = "boot";
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
} // {
|
||||
partitions = {
|
||||
boot = {
|
||||
name = "boot";
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
ESP = {
|
||||
size = "500M";
|
||||
type = "EF00";
|
||||
|
Loading…
Reference in New Issue
Block a user