Do not install the launch keyboard configurator on neelix or non-graphical installs.

This commit is contained in:
Tom Alexander 2025-01-23 20:42:22 -05:00
parent 88a6d046b8
commit ea7bf809fc
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 36 additions and 22 deletions

View File

@ -43,5 +43,6 @@
me.kanshi.enable = true; me.kanshi.enable = true;
me.kubernetes.enable = true; me.kubernetes.enable = true;
me.latex.enable = true; me.latex.enable = true;
me.launch_keyboard.enable = true;
me.sway.enable = true; me.sway.enable = true;
} }

View File

@ -8,7 +8,18 @@
{ {
imports = [ ]; imports = [ ];
config = lib.mkIf config.me.graphical { options.me = {
launch_keyboard.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install launch_keyboard.";
};
};
config = lib.mkIf config.me.launch_keyboard.enable (
lib.mkMerge [
(lib.mkIf config.me.graphical {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
system76-keyboard-configurator system76-keyboard-configurator
dfu-programmer # For flashing keyboard https://support.system76.com/articles/launch_2-firmware-update/ dfu-programmer # For flashing keyboard https://support.system76.com/articles/launch_2-firmware-update/
@ -31,5 +42,7 @@
}; };
}; };
}; };
}; })
]
);
} }