summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-24 18:00:57 +0000
committerGitHub <noreply@github.com>2021-10-24 18:00:57 +0000
commitceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c (patch)
tree5fc8c9688a5d950d7a07188efd3b5372e108b201 /nixos/modules/hardware
parente84dc8ac6bfec2a45f88f2ee894ea2d4a006b7a8 (diff)
parent69b01e3a22323098cf3b000f1d706e559fc8ecb6 (diff)
downloadnixpkgs-ceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c.tar
nixpkgs-ceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c.tar.gz
nixpkgs-ceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c.tar.bz2
nixpkgs-ceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c.tar.lz
nixpkgs-ceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c.tar.xz
nixpkgs-ceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c.tar.zst
nixpkgs-ceea0e5f2ab6392d8265f6c4d9c1e5fb79bc837c.zip
Merge master into staging-next
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
+    ];
+  };
+}