diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-08-19 12:32:14 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-08-19 12:32:14 +0200 |
commit | a1992768d3935bc4b2f0254a42b70a717886f160 (patch) | |
tree | abc68b835d5f0b7c8cc10a2f53cea3cc14c75727 /modules | |
parent | 49c61af386c909f4512d01264bf7de721fe1c3c4 (diff) |
core/tests: Update upstream NixOS tests
New tests as of NixOS/nixpkgs@77dfa05bd5a296476143f02f2cfc0e47bdded01a: * cloud-init * hardened * ldap * snapper Removed tests: * grsecurity Renamed tests: * installer.simpleUefiGummiboot -> installer.simpleUefiSystemdBoot Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/tests.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/core/tests.nix b/modules/core/tests.nix index 1a681576..0f93a145 100644 --- a/modules/core/tests.nix +++ b/modules/core/tests.nix @@ -31,6 +31,9 @@ let { check = config.services.cjdns.enable; path = ["nixos" "cjdns"]; } + { check = config.services.cloud-init.enable; + path = ["nixos" "cloud-init"]; + } { check = config.boot.enableContainers && config.containers != {}; path = ["nixos" "containers"]; @@ -112,8 +115,10 @@ let { check = config.services.gocd-server.enable; path = ["nixos" "gocd-server"]; } - { check = config.boot.kernelPackages.kernel.features.grsecurity or false; - path = ["nixos" "grsecurity"]; + { check = config.security.lockKernelModules + || config.security.hideProcessInformation + || config.boot.kernel.sysctl."user.max_user_namespaces" == 0; + path = ["nixos" "hardened"]; } { check = true; path = ["nixos" "hibernate"]; @@ -154,7 +159,7 @@ let path = ["nixos" "installer" "simple"]; } { check = config.boot.loader.systemd-boot.enable; - path = ["nixos" "installer" "simpleUefiGummiboot"]; + path = ["nixos" "installer" "simpleUefiSystemdBoot"]; } { check = config.boot.loader.grub.fsIdentifier == "label"; path = ["nixos" "installer" "simpleLabels"]; @@ -210,6 +215,9 @@ let == pkgs.linuxPackages_latest.kernel.version; path = ["nixos" "latestKernel" "login"]; } + { check = config.services.openldap.enable; + path = ["nixos" "ldap"]; + } { check = config.services.leaps.enable; path = ["nixos" "leaps"]; } @@ -358,6 +366,9 @@ let { check = config.services.xserver.displayManager.slim.enable; path = ["nixos" "slim"]; } + { check = config.services.snapper.configs != {}; + path = ["nixos" "snapper"]; + } { check = config.services.smokeping.enable; path = ["nixos" "smokeping"]; } |