remove diskId from existing templates

we don't have a replacement yet, but at least this will work.
This commit is contained in:
Jörg Thalheim
2025-08-27 15:22:41 +02:00
parent 5479c767c1
commit 00f9d08a4b
3 changed files with 4 additions and 12 deletions

View File

@@ -1,13 +1,11 @@
{ {
lib, lib,
config,
... ...
}: }:
let let
suffix = config.clan.core.vars.generators.disk-id.files.diskId.value;
mirrorBoot = idx: { mirrorBoot = idx: {
# suffix is to prevent disk name collisions # suffix is to prevent disk name collisions
name = idx + suffix; name = idx;
type = "disk"; type = "disk";
device = "/dev/disk/by-id/${idx}"; device = "/dev/disk/by-id/${idx}";
content = { content = {

View File

@@ -1,13 +1,11 @@
{ {
lib, lib,
config,
... ...
}: }:
let let
suffix = config.clan.core.vars.generators.disk-id.files.diskId.value;
mirrorBoot = idx: { mirrorBoot = idx: {
# suffix is to prevent disk name collisions # suffix is to prevent disk name collisions
name = idx + suffix; name = idx;
type = "disk"; type = "disk";
device = "/dev/disk/by-id/${idx}"; device = "/dev/disk/by-id/${idx}";
content = { content = {

View File

@@ -1,15 +1,11 @@
{ config, lib, ... }: { lib, ... }:
let
suffix = config.clan.core.vars.generators.disk-id.files.diskId.value;
in
{ {
boot.loader.grub.efiSupport = lib.mkDefault true; boot.loader.grub.efiSupport = lib.mkDefault true;
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true; boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
disko.devices = { disko.devices = {
disk = { disk = {
"main" = { "main" = {
name = "main-" + suffix; name = "main";
type = "disk"; type = "disk";
device = lib.mkDefault "/dev/null"; device = lib.mkDefault "/dev/null";
content = { content = {