mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 19:45:40 +00:00
refactor: rename programs folder to modules
This commit is contained in:
parent
e4f3540862
commit
0ccc095d6e
40 changed files with 17 additions and 17 deletions
18
home/toast/modules/mouse-actions/default.nix
Normal file
18
home/toast/modules/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