mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-07-25 01:54:48 +00:00
42 lines
867 B
Nix
42 lines
867 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
username,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.shell.components.grimblast;
|
|
in
|
|
{
|
|
options.shell.components.grimblast = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "Enable pre-configured grimblast");
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home-manager.users.${username} = {
|
|
wayland.windowManager.hyprland = {
|
|
settings = {
|
|
bind = [
|
|
{
|
|
_args = [
|
|
"SUPER + SHIFT + V"
|
|
(lib.generators.mkLuaInline "hl.dsp.exec_cmd('uwsm app -- ${lib.getExe pkgs.grimblast} --freeze copy area')")
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
home = {
|
|
# bugged, freezes
|
|
sessionVariables.GRIMBLAST_EDITOR = "${lib.getExe pkgs.annotator}";
|
|
packages = with pkgs; [
|
|
grimblast
|
|
annotator
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|