diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-08 01:43:23 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-08 01:43:23 +0200 |
| commit | 3f47fe86cd4fa8b225c19ac29fdacc52e0b63255 (patch) | |
| tree | 31c7eb2d5dfe8476c5a685a0aa021d4542392f25 /modules/by-name/bo/boot/tails_iso.nix | |
| parent | modules/lf/keymaps: Avoid overriding the default `G` keymap (diff) | |
| download | nixos-config-3f47fe86cd4fa8b225c19ac29fdacc52e0b63255.zip | |
modules/boot/iso_entry: Correct the boot options
I've taken these directly from the grub.cfg and the /usr/init-tools/init
files.
Diffstat (limited to 'modules/by-name/bo/boot/tails_iso.nix')
| -rw-r--r-- | modules/by-name/bo/boot/tails_iso.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/by-name/bo/boot/tails_iso.nix b/modules/by-name/bo/boot/tails_iso.nix index ec2b740b..03f97577 100644 --- a/modules/by-name/bo/boot/tails_iso.nix +++ b/modules/by-name/bo/boot/tails_iso.nix @@ -8,9 +8,10 @@ # You should have received a copy of the License along with this program. # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. {pkgs ? (builtins.getFlake "nixpkgs").legacyPackages."x86_64-linux"}: let + version = "7.8"; checked_iso = pkgs.stdenv.mkDerivation (finalAttrs: { pname = "tails-iso"; - version = "amd64-7.8"; + version = "amd64-${version}"; srcs = [ (pkgs.fetchurl { @@ -69,10 +70,13 @@ in bsdtar -xf "$src" -C iso ''; - installPhase = '' - install -D ./iso/live/initrd.img "$out/live/initramfs-linux.img" - install -D ./iso/live/vmlinuz "$out/live/vmlinuz-linux" + passthru = { + inherit version; + }; - install -D "$src" "$out/tails.iso" + installPhase = '' + install -D ./iso/live/initrd.img "$out/live/initrd.img" + install -D ./iso/live/vmlinuz "$out/live/vmlinuz" + install -D ./iso/live/filesystem.squashfs "$out/live/filesystem.squashfs" ''; } |
