about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2016-09-19 19:06:51 -0400
committerShea Levy <shea@shealevy.com>2016-09-19 19:06:51 -0400
commit3f02cbbcaf18626e1f6a1824cfce142ad48ec614 (patch)
tree113de8a4930601624b08f0680b4775f306c79758 /nixos
parente453c62885324cc84f41e73ce8dec551cc21094d (diff)
parenta560223119a7d434ad09b26246bd485f893036e1 (diff)
downloadnixlib-3f02cbbcaf18626e1f6a1824cfce142ad48ec614.tar
nixlib-3f02cbbcaf18626e1f6a1824cfce142ad48ec614.tar.gz
nixlib-3f02cbbcaf18626e1f6a1824cfce142ad48ec614.tar.bz2
nixlib-3f02cbbcaf18626e1f6a1824cfce142ad48ec614.tar.lz
nixlib-3f02cbbcaf18626e1f6a1824cfce142ad48ec614.tar.xz
nixlib-3f02cbbcaf18626e1f6a1824cfce142ad48ec614.tar.zst
nixlib-3f02cbbcaf18626e1f6a1824cfce142ad48ec614.zip
Merge branch 'rngd-wantedBy' of git://github.com/srp/nixpkgs-1
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/security/rngd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/rngd.nix b/nixos/modules/security/rngd.nix
index b14ea7a5f276..3a1ffc55e5fe 100644
--- a/nixos/modules/security/rngd.nix
+++ b/nixos/modules/security/rngd.nix
@@ -18,7 +18,7 @@ with lib;
   config = mkIf config.security.rngd.enable {
     services.udev.extraRules = ''
       KERNEL=="random", TAG+="systemd"
-      SUBSYSTEM=="cpu", ENV{MODALIAS}=="x86cpu:*feature:*009E*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"
+      SUBSYSTEM=="cpu", ENV{MODALIAS}=="cpu:type:x86,*feature:*009E*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"
       KERNEL=="hw_random", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"
       ${if config.services.tcsd.enable then "" else ''KERNEL=="tpm0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"''}
     '';