17 lines
364 B
Nix
17 lines
364 B
Nix
{ lib, config, pkgs, ... }:
|
|
let
|
|
inherit (lib) mkIf mkOption types;
|
|
in
|
|
{
|
|
options.smayzy.mouse.enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "mouse's config software : piper";
|
|
};
|
|
|
|
config = mkIf config.smayzy.mouse.enable {
|
|
environment.systemPackages = with pkgs; [ piper ];
|
|
services.ratbagd.enable = true;
|
|
};
|
|
}
|