mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
16 lines
357 B
Nix
16 lines
357 B
Nix
{ lib, ... }:
|
|
{
|
|
name = "paretosecurity";
|
|
meta.maintainers = [ lib.maintainers.zupo ];
|
|
|
|
nodes.machine =
|
|
{ config, pkgs, ... }:
|
|
{
|
|
services.paretosecurity.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
(status, out) = machine.execute("paretosecurity check")
|
|
assert status == 1, "paretosecurity did not return 1 on failing checks"
|
|
'';
|
|
}
|