mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 15:45:39 +00:00
feat: refactor home-manager configuration for multi-host support
This commit is contained in:
parent
f20c875a48
commit
6d1fd47bea
47 changed files with 51 additions and 14 deletions
18
home/modules/graphical/mouse-actions/default.nix
Normal file
18
home/modules/graphical/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