mv mouse's config software to module
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
{
|
||||
imports = [
|
||||
./gui-utilities.nix
|
||||
./mouse.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user