nixos/services.joycond: remove with lib;
This commit is contained in:
parent
d71be6eda5
commit
f5c96d88c1
@ -1,19 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.joycond;
|
||||
in
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.services.joycond = {
|
||||
enable = mkEnableOption "support for Nintendo Pro Controllers and Joycons";
|
||||
enable = lib.mkEnableOption "support for Nintendo Pro Controllers and Joycons";
|
||||
|
||||
package = mkPackageOption pkgs "joycond" { };
|
||||
package = lib.mkPackageOption pkgs "joycond" { };
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
services.udev.packages = [ cfg.package ];
|
||||
|
Loading…
Reference in New Issue
Block a user