feat(lynis): declare 'lynis' module (with profile + skips)
This commit is contained in:
1 parent
21e5b62dfa
commit
fce7a277a7
7 files changed
+76
-6
No files matched your search
@@ -6,6 +6,12 @@
|
||||
}:
|
||||
|
||||
let
|
||||
unusedProtocols = [
|
||||
"dccp"
|
||||
"sctp"
|
||||
"rds"
|
||||
"tipc"
|
||||
];
|
||||
wakeOnLan = lib.any (iface: iface.wakeOnLan.enable) (lib.attrValues config.networking.interfaces);
|
||||
randomMac = config.host.role == "laptop" && !wakeOnLan;
|
||||
desktop = {
|
||||
@@ -79,12 +85,8 @@ in
|
||||
message = "no 'hardening.profile' for `${config.host.role}` host role";
|
||||
}
|
||||
];
|
||||
boot.blacklistedKernelModules = [
|
||||
"dccp"
|
||||
"sctp"
|
||||
"rds"
|
||||
"tipc"
|
||||
];
|
||||
boot.blacklistedKernelModules = unusedProtocols;
|
||||
boot.extraModprobeConfig = lib.concatMapStrings (m: "install ${m} /bin/false\n") unusedProtocols;
|
||||
hardware.bluetooth.settings.General = lib.mkIf config.hardware.bluetooth.enable {
|
||||
PairableTimeout = 30;
|
||||
DiscoverableTimeout = 30;
|
||||
|
||||
Reference in new issue
Block a user