about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-06-15 17:53:47 +0200
committerGitHub <noreply@github.com>2020-06-15 17:53:47 +0200
commitaf3c1000a4c519348a527a07497646c915a01857 (patch)
treec5b6001aa54787fd8ccd945afeefa3915775d803 /nixos/modules
parentaa060ababf1490e8b39a6122d42112ea958f39cf (diff)
parent89c3e73dad0970b26183e415555fb0379ba33e7a (diff)
downloadnixlib-af3c1000a4c519348a527a07497646c915a01857.tar
nixlib-af3c1000a4c519348a527a07497646c915a01857.tar.gz
nixlib-af3c1000a4c519348a527a07497646c915a01857.tar.bz2
nixlib-af3c1000a4c519348a527a07497646c915a01857.tar.lz
nixlib-af3c1000a4c519348a527a07497646c915a01857.tar.xz
nixlib-af3c1000a4c519348a527a07497646c915a01857.tar.zst
nixlib-af3c1000a4c519348a527a07497646c915a01857.zip
Merge pull request #90343 from flokli/hardware-u2f-remove
hardware/u2f: remove module
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/rename.nix6
-rw-r--r--nixos/modules/services/hardware/u2f.nix23
3 files changed, 6 insertions, 24 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 321fec5fb517..8a517314429f 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -362,7 +362,6 @@
   ./services/hardware/throttled.nix
   ./services/hardware/trezord.nix
   ./services/hardware/triggerhappy.nix
-  ./services/hardware/u2f.nix
   ./services/hardware/udev.nix
   ./services/hardware/udisks2.nix
   ./services/hardware/upower.nix
diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix
index c91febdb710f..1dc7f8533176 100644
--- a/nixos/modules/rename.nix
+++ b/nixos/modules/rename.nix
@@ -55,6 +55,12 @@ with lib;
       prey-bash-client is deprecated upstream
     '')
 
+    (mkRemovedOptionModule ["hardware" "u2f" ] ''
+      The U2F modules module was removed, as all it did was adding the
+      udev rules from libu2f-host to the system. Udev gained native support
+      to handle FIDO security tokens, so this isn't necessary anymore.
+    '')
+
     # Do NOT add any option renames here, see top of the file
   ];
 }
diff --git a/nixos/modules/services/hardware/u2f.nix b/nixos/modules/services/hardware/u2f.nix
deleted file mode 100644
index bb4b2f05f890..000000000000
--- a/nixos/modules/services/hardware/u2f.nix
+++ /dev/null
@@ -1,23 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-with lib;
-let
-  cfg = config.hardware.u2f;
-in {
-  options = {
-    hardware.u2f = {
-      enable = mkOption {
-        type = types.bool;
-        default = false;
-        description = ''
-          Enable U2F hardware support.
-        '';
-      };
-    };
-  };
-
-  config = mkIf cfg.enable {
-    services.udev.packages = [ pkgs.libu2f-host ];
-  };
-}
-