liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d36312c535745750e8a430125ab1841dcc0f5b9c
parent c814a8782b5281eeca92303d6648ae92ed074108
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 29 Nov 2026 20:57:40 +0000

extlinux: don't make /boot a pseudofile

yes it needs to be in the toplevel closure, no it doesn't need to
replace the actual /boot directory that bin/install (systemconfig)
copies into

Diffstat:
Mmodules/outputs/boot-extlinux.nix | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/outputs/boot-extlinux.nix b/modules/outputs/boot-extlinux.nix @@ -15,6 +15,10 @@ let o = config.system.outputs; cmdline = concatStringsSep " " config.boot.commandLine; wantsDtb = config.hardware.dts ? src && config.hardware.dts.src != null; + bootFilesName = builtins.unsafeDiscardStringContext + # in this situation, perfectly safe to discard the context as the + # attrset _value_ names the same derivation + (builtins.baseNameOf config.system.outputs.bootfiles); in { options.boot.loader.extlinux.enable = mkEnableOption "extlinux"; @@ -38,7 +42,7 @@ in _EOF ''; filesystem = dir { - boot = symlink config.system.outputs.bootfiles; + "${bootFilesName}" = symlink config.system.outputs.bootfiles; }; }; }