mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
19 lines
310 B
Nix
19 lines
310 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.hardware.gkraken;
|
||
|
in
|
||
|
{
|
||
|
options.hardware.gkraken = {
|
||
|
enable = mkEnableOption (lib.mdDoc "gkraken's udev rules for NZXT AIO liquid coolers");
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
services.udev.packages = with pkgs; [
|
||
|
gkraken
|
||
|
];
|
||
|
};
|
||
|
}
|