From 11e6c1b17f8dffed47be4a2ac10df97f45312b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 3 Sep 2024 10:11:03 +0200 Subject: [PATCH] don't put hostnames into into disko labels I believe there are length limits on this. It's also very surprising if the system no longer boot after changing the hostname. --- templates/flake-parts/modules/disko.nix | 6 +++--- templates/new-clan/modules/disko.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/flake-parts/modules/disko.nix b/templates/flake-parts/modules/disko.nix index 34a989f02..474a31c39 100644 --- a/templates/flake-parts/modules/disko.nix +++ b/templates/flake-parts/modules/disko.nix @@ -11,12 +11,12 @@ content = { type = "gpt"; partitions = { - "${config.networking.hostName}-boot" = { + "boot" = { size = "1M"; type = "EF02"; # for grub MBR priority = 1; }; - "${config.networking.hostName}-ESP" = { + "ESP" = { size = "512M"; type = "EF00"; content = { @@ -25,7 +25,7 @@ mountpoint = "/boot"; }; }; - "${config.networking.hostName}-root" = { + "root" = { size = "100%"; content = { type = "filesystem"; diff --git a/templates/new-clan/modules/disko.nix b/templates/new-clan/modules/disko.nix index 52fce9c4c..b98423bc5 100644 --- a/templates/new-clan/modules/disko.nix +++ b/templates/new-clan/modules/disko.nix @@ -13,12 +13,12 @@ content = { type = "gpt"; partitions = { - "${config.networking.hostName}-boot" = { + "boot" = { size = "1M"; type = "EF02"; # for grub MBR priority = 1; }; - "${config.networking.hostName}-ESP" = { + "ESP" = { size = "512M"; type = "EF00"; content = { @@ -28,7 +28,7 @@ mountOptions = [ "nofail" ]; }; }; - "${config.networking.hostName}-root" = { + "root" = { size = "100%"; content = { type = "filesystem";