Launch a terminal at boot in the live ISO.
This commit is contained in:
parent
8ac235cb8c
commit
308206d1cc
@ -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 {
|
||||||
|
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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user