summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-01-28 23:02:48 +0100
committerlassulus <lassulus@lassul.us>2019-01-28 23:02:48 +0100
commit33add1d75631ae2bd1c7711c43ab195f6c237fbe (patch)
treec8a90e40f145066b244ed5c43df321485bd69059 /lass/2configs
parentb74a981dcf4c0cb4a17270ffb3a2b41d263d99e9 (diff)
l mors.r: hardening
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/hardening.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/lass/2configs/hardening.nix b/lass/2configs/hardening.nix
new file mode 100644
index 000000000..aee4bf06f
--- /dev/null
+++ b/lass/2configs/hardening.nix
@@ -0,0 +1,11 @@
+{ pkgs, lib, ... }:
+with lib;
+{
+ security.chromiumSuidSandbox.enable = true;
+ security.lockKernelModules = false;
+ boot.kernel.sysctl."user.max_user_namespaces" = 63414;
+
+ imports = [
+ <nixpkgs/nixos/modules/profiles/hardened.nix>
+ ];
+}