summaryrefslogtreecommitdiff
path: root/system/hardened.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system/hardened.nix')
-rw-r--r--system/hardened.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/system/hardened.nix b/system/hardened.nix
new file mode 100644
index 0000000..91b653f
--- /dev/null
+++ b/system/hardened.nix
@@ -0,0 +1,33 @@
+{
+ lib,
+ config,
+ inputs,
+ ...
+}: let
+ inherit (lib) mkIf;
+in {
+ imports = [
+ "${inputs.nix-mineral}/nix-mineral.nix"
+ ];
+
+ config = mkIf config.hardened {
+ nix-mineral = {
+ enable = true;
+ overrides = {
+ desktop = {
+ home-exec = true;
+ tmp-exec = true;
+ var-lib-exec = true;
+ hideproc-ptraceable = true;
+ skip-restrict-home-permission = true;
+ };
+ performance = {
+ allow-smt = true;
+ };
+ software-choice = {
+ secure-chrony = true;
+ };
+ };
+ };
+ };
+}