Skip to content

Commit

Permalink
installer,flake: fix iso image name
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyinstarlight committed Jan 11, 2025
1 parent 20cb2ce commit 32617ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
in {
installerSystem = installerConfiguration;
installer = let
isoName = installerConfiguration.config.isoImage.isoName;
isoName = "${installerConfiguration.config.image.baseName}.iso";
isoPath = "${installerConfiguration.config.system.build.isoImage}/iso/${isoName}";
in pkgs.runCommandLocal isoName { inherit isoPath; } ''ln -s "$isoPath" $out'';
};
Expand Down
4 changes: 2 additions & 2 deletions installer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
boot.initrd.systemd.enable = lib.mkImageMediaOverride false;
boot.initrd.systemd.emergencyAccess = lib.mkImageMediaOverride true;

isoImage.isoName = lib.mkImageMediaOverride
"foosteros-${config.system.build.installHostname}-${config.system.nixos.release}-${self.shortRev or "dirty"}-${pkgs.stdenv.hostPlatform.uname.processor}.iso";
image.baseName = lib.mkImageMediaOverride
"foosteros-${config.system.build.installHostname}-${config.system.nixos.release}-${self.shortRev or "dirty"}-${pkgs.stdenv.hostPlatform.uname.processor}";
isoImage.volumeID = "foosteros-${config.system.nixos.release}-${self.shortRev or "dirty"}-${pkgs.stdenv.hostPlatform.uname.processor}";

networking.hostName = lib.mkImageMediaOverride "${config.system.build.installHostname}-installer";
Expand Down

0 comments on commit 32617ee

Please sign in to comment.