summaryrefslogtreecommitdiffstats
path: root/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
diff options
context:
space:
mode:
authorVictor Fuentes <vmfuentes64@gmail.com>2022-12-17 18:00:58 -0500
committerVictor Fuentes <vmfuentes64@gmail.com>2023-01-14 16:19:06 -0500
commitd3528cdc3dbe82a0551707fe869aec02bba72956 (patch)
treea7d859d287043b45ccf110cb8eb79a30749d01e3 /nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
parentc9c4aea7ab0d137c62e09300d874be8a9a6820fc (diff)
nixos/version: add config.system.nixos.distroName and config.system.nixos.distroId
Diffstat (limited to 'nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py')
-rwxr-xr-xnixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
index ad7e2184d2a7..ea3577f138c2 100755
--- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
+++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
@@ -42,7 +42,7 @@ def system_dir(profile: Optional[str], generation: int, specialisation: Optional
else:
return d
-BOOT_ENTRY = """title NixOS{profile}{specialisation}
+BOOT_ENTRY = """title @distroName@{profile}{specialisation}
version Generation {generation} {description}
linux {kernel}
initrd {initrd}
@@ -99,7 +99,7 @@ def describe_generation(generation_dir: str) -> str:
build_time = int(os.path.getctime(generation_dir))
build_date = datetime.datetime.fromtimestamp(build_time).strftime('%F')
- description = "NixOS {}, Linux Kernel {}, Built on {}".format(
+ description = "@distroName@ {}, Linux Kernel {}, Built on {}".format(
nixos_version, kernel_version, build_date
)
@@ -206,8 +206,8 @@ def get_profiles() -> List[str]:
return []
def main() -> None:
- parser = argparse.ArgumentParser(description='Update NixOS-related systemd-boot files')
- parser.add_argument('default_config', metavar='DEFAULT-CONFIG', help='The default NixOS config to boot')
+ parser = argparse.ArgumentParser(description='Update @distroName@-related systemd-boot files')
+ parser.add_argument('default_config', metavar='DEFAULT-CONFIG', help='The default @distroName@ config to boot')
args = parser.parse_args()
try: