clanCore: init machineId and diskId v2

This commit is contained in:
Qubasa
2024-09-09 15:51:31 +02:00
parent 208b71ac0e
commit 5c975a5eef
28 changed files with 543 additions and 252 deletions

View File

@@ -1,10 +1,15 @@
{ lib, ... }:
let
suffix = config.clan.core.machine.diskId;
in
{
boot.loader.grub.efiSupport = lib.mkDefault true;
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
disko.devices = {
disk = {
main = {
"main" = {
name = suffix;
type = "disk";
# Set the following in flake.nix for each maschine:
# device = <uuid>;

View File

@@ -1,4 +1,8 @@
{ lib, ... }:
let
suffix = config.clan.core.machine.diskId;
in
{
# TO NOT EDIT THIS FILE AFTER INSTALLATION of a machine
# Otherwise your system might not boot because of missing partitions / filesystems
@@ -6,7 +10,8 @@
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
disko.devices = {
disk = {
main = {
"main" = {
name = suffix;
type = "disk";
# Set the following in flake.nix for each maschine:
# device = <uuid>;