From 67c309fe753964a5832b4e69c581a3006fcf3aed Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 18 May 2014 07:38:13 -0500 Subject: [PATCH] Fix fallout from 4f27ad14 Signed-off-by: Austin Seipp --- nixos/modules/security/grsecurity.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/modules/security/grsecurity.nix b/nixos/modules/security/grsecurity.nix index 78baa0cc5c3f..8fbeeb9ba610 100644 --- a/nixos/modules/security/grsecurity.nix +++ b/nixos/modules/security/grsecurity.nix @@ -3,10 +3,11 @@ with lib; let + cfg = config.security.grsecurity; + customGrsecPkg = (import ../../../pkgs/build-support/grsecurity - { grsecOptions = config.security.grsecurity; - }; + { grsecOptions = cfg; } ).grsecPackage; in { @@ -317,7 +318,7 @@ in # Enable AppArmor, gradm udev rules, and utilities security.apparmor.enable = true; - boot.kernelPackages = grsecPackage; + boot.kernelPackages = customGrsecPkg; services.udev.packages = [ pkgs.gradm ]; environment.systemPackages = [ pkgs.gradm pkgs.paxctl pkgs.pax-utils ]; };