mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 19:45:40 +00:00
feat: add mouse actions
Refs: 302185f6a873209ea51a26b314faa24c45cd03ac
This commit is contained in:
parent
b88d00fe40
commit
45a49b1529
12 changed files with 186 additions and 6 deletions
18
home/toast/programs/mouse-actions/default.nix
Normal file
18
home/toast/programs/mouse-actions/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
options.programs.mouse-actions.enable = lib.mkEnableOption "mouse-actions";
|
||||
config = lib.mkIf config.programs.mouse-actions.enable
|
||||
(let
|
||||
cfg = config.programs.mouse-actions;
|
||||
actions = import ./actions { inherit pkgs; };
|
||||
|
||||
cycle-script = import ./cycle.nix { inherit pkgs; };
|
||||
run-script = import ./run.nix { inherit pkgs; actions = actions; };
|
||||
in {
|
||||
home.packages = [
|
||||
cycle-script.package
|
||||
run-script.package
|
||||
];
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue