Launch a terminal at boot in the live ISO.

This commit is contained in:
Tom Alexander 2025-01-18 11:55:12 -05:00
parent 8ac235cb8c
commit 308206d1cc
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 26 additions and 0 deletions

View File

@ -258,6 +258,7 @@ in
{ {
imports = [ imports = [
./graphical_session_target.nix ./graphical_session_target.nix
./iso.nix
]; ];
options.me.swayIncludes = lib.mkOption { options.me.swayIncludes = lib.mkOption {

View File

@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
...
}:
let
launch_terminal = pkgs.writeTextFile {
name = "launch_terminal.conf";
text = ''
exec ${pkgs.alacritty}/bin/alacritty
'';
};
in
{
imports = [ ];
config = lib.mkIf (config.me.buildingIso) {
# Launch a terminal at boot in the live ISO for when hotkeys don't work.
me.swayIncludes = [
launch_terminal
];
};
}