From 77ae55308c0e4521fdf46391e71d5d16c5dee2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Fri, 11 Mar 2016 15:53:35 +0000 Subject: [PATCH] fix installer tests #13559 --- nixos/modules/security/grsecurity.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/security/grsecurity.nix b/nixos/modules/security/grsecurity.nix index 3aabbc8fe1b..236206026c3 100644 --- a/nixos/modules/security/grsecurity.nix +++ b/nixos/modules/security/grsecurity.nix @@ -28,8 +28,7 @@ in kernelPatch = mkOption { type = types.attrs; - default = pkgs.kernelPatches.grsecurity_latest; - example = pkgs.kernelPatches.grsecurity_4_1; + example = lib.literalExample "pkgs.kernelPatches.grsecurity_4_1"; description = '' Grsecurity patch to use. ''; @@ -231,6 +230,8 @@ in } ]; + security.grsecurity.kernelPatch = lib.mkDefault pkgs.kernelPatches.grsecurity_latest; + systemd.services.grsec-lock = mkIf cfg.config.sysctl { description = "grsecurity sysctl-lock Service"; requires = [ "systemd-sysctl.service" ];