From f022bc0649205d46f17510aa9069ec6e7920e1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 2 Dec 2024 20:23:43 +0200 Subject: [PATCH] rename vm iso --- hosts/vm/configuration.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index 5fcd2d7..fa77cef 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -1,8 +1,8 @@ { lib, - self, modulesPath, pkgs, + config, ... }: { @@ -28,13 +28,17 @@ boot.kernelPackages = pkgs.linuxPackages_latest; - isoImage = { - isoName = "toolshed-${self.lastModifiedDate}.iso"; - squashfsCompression = "zstd"; - appendToMenuLabel = " Toolshed ${self.lastModifiedDate}"; - makeEfiBootable = true; # EFI booting - makeUsbBootable = true; # USB booting - }; + isoImage = + let + vsn = "${config.system.nixos.release}${lib.trivial.versionSuffix}"; + in + { + isoName = "toolshed-${vsn}.iso"; + squashfsCompression = "zstd"; + appendToMenuLabel = " Toolshed ${vsn}"; + makeEfiBootable = true; # EFI booting + makeUsbBootable = true; # USB booting + }; swapDevices = [ ];