clanCore: init machine_id.nix with clan.core.machine.{id,diskId}

This commit is contained in:
Qubasa
2024-09-06 18:05:40 +02:00
parent 0d83a59d8e
commit b16a53f510
28 changed files with 219 additions and 48 deletions

View File

@@ -1,4 +1,8 @@
{ lib, ... }:
let
suffix = config.clan.core.machine.diskIdShort;
in
{
boot.loader.grub.efiSupport = lib.mkDefault true;
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
@@ -11,12 +15,12 @@
content = {
type = "gpt";
partitions = {
"boot" = {
"boot-${suffix}" = {
size = "1M";
type = "EF02"; # for grub MBR
priority = 1;
};
"ESP" = {
"ESP-${suffix}" = {
size = "512M";
type = "EF00";
content = {
@@ -25,7 +29,7 @@
mountpoint = "/boot";
};
};
"root" = {
"root-${suffix}" = {
size = "100%";
content = {
type = "filesystem";

View File

@@ -1,4 +1,8 @@
{ lib, ... }:
let
suffix = config.clan.core.machine.diskIdShort;
in
{
# TO NOT EDIT THIS FILE AFTER INSTALLATION of a machine
# Otherwise your system might not boot because of missing partitions / filesystems
@@ -13,12 +17,12 @@
content = {
type = "gpt";
partitions = {
"boot" = {
"boot-${suffix}" = {
size = "1M";
type = "EF02"; # for grub MBR
priority = 1;
};
"ESP" = {
"ESP-${suffix}" = {
size = "512M";
type = "EF00";
content = {
@@ -28,7 +32,7 @@
mountOptions = [ "nofail" ];
};
};
"root" = {
"root-${suffix}" = {
size = "100%";
content = {
type = "filesystem";