mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
19 lines
298 B
Nix
19 lines
298 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.hardware.gkraken;
|
||
|
in
|
||
|
{
|
||
|
options.hardware.gkraken = {
|
||
|
enable = mkEnableOption "gkraken's udev rules for NZXT AIO liquid coolers";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
services.udev.packages = with pkgs; [
|
||
|
gkraken
|
||
|
];
|
||
|
};
|
||
|
}
|