mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
update system
This commit is contained in:
36
modules/nixos/shell/grimblast.nix
Normal file
36
modules/nixos/shell/grimblast.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
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 = [
|
||||
"SUPER_SHIFT,V,exec,uwsm app -- ${lib.getExe pkgs.grimblast} --freeze copy area"
|
||||
];
|
||||
};
|
||||
};
|
||||
home = {
|
||||
# bugged, freezes
|
||||
sessionVariables.GRIMBLAST_EDITOR = "${lib.getExe pkgs.annotator}";
|
||||
packages = with pkgs; [
|
||||
grimblast
|
||||
annotator
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user