summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2021-10-03 11:13:19 +0200
committerOPNA2608 <christoph.neidahl@gmail.com>2021-10-03 12:42:55 +0200
commitbfd58f3cf3836274832d6c933d59911b1ab75a8f (patch)
treecadc1a2b2c0bb0ea964c5934ec6a92c4ac454c7b /nixos/modules/hardware
parent3d45f134ee89affdb1cfe393d11aab034c5dbd50 (diff)
downloadnixpkgs-bfd58f3cf3836274832d6c933d59911b1ab75a8f.tar
nixpkgs-bfd58f3cf3836274832d6c933d59911b1ab75a8f.tar.gz
nixpkgs-bfd58f3cf3836274832d6c933d59911b1ab75a8f.tar.bz2
nixpkgs-bfd58f3cf3836274832d6c933d59911b1ab75a8f.tar.lz
nixpkgs-bfd58f3cf3836274832d6c933d59911b1ab75a8f.tar.xz
nixpkgs-bfd58f3cf3836274832d6c933d59911b1ab75a8f.tar.zst
nixpkgs-bfd58f3cf3836274832d6c933d59911b1ab75a8f.zip
nixos/gkraken: init
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/gkraken.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/modules/hardware/gkraken.nix b/nixos/modules/hardware/gkraken.nix
new file mode 100644
index 00000000000..97d15369db0
--- /dev/null
+++ b/nixos/modules/hardware/gkraken.nix
@@ -0,0 +1,18 @@
+{ 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
+    ];
+  };
+}