Launch a terminal at boot in the live ISO.
This commit is contained in:
25
nix/configuration/roles/sway/iso.nix
Normal file
25
nix/configuration/roles/sway/iso.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user