mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
nixos/services.ratbagd: remove with lib;
This commit is contained in:
parent
439cb745b0
commit
e2a4b6715f
@ -1,7 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.ratbagd;
|
||||
in
|
||||
@ -10,15 +7,15 @@ in
|
||||
|
||||
options = {
|
||||
services.ratbagd = {
|
||||
enable = mkEnableOption "ratbagd for configuring gaming mice";
|
||||
enable = lib.mkEnableOption "ratbagd for configuring gaming mice";
|
||||
|
||||
package = mkPackageOption pkgs "libratbag" { };
|
||||
package = lib.mkPackageOption pkgs "libratbag" { };
|
||||
};
|
||||
};
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Give users access to the "ratbagctl" tool
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user