security things
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
./modules/age-secrets.nix
|
./modules/age-secrets.nix
|
||||||
./modules/secureboot.nix
|
./modules/secureboot.nix
|
||||||
./modules/no-rgb.nix
|
./modules/no-rgb.nix
|
||||||
|
./modules/security.nix
|
||||||
|
|
||||||
./services/postgresql.nix
|
./services/postgresql.nix
|
||||||
./services/jellyfin.nix
|
./services/jellyfin.nix
|
||||||
|
|||||||
30
modules/security.nix
Normal file
30
modules/security.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
# memory allocator
|
||||||
|
# BREAKS REDIS-IMMICH
|
||||||
|
# environment.memoryAllocator.provider = "graphene-hardened";
|
||||||
|
|
||||||
|
# disable coredumps
|
||||||
|
systemd.coredump.enable = false;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
dbus.implementation = "broker";
|
||||||
|
/*
|
||||||
|
logrotate.enable = true;
|
||||||
|
journald = {
|
||||||
|
storage = "volatile"; # Store logs in memory
|
||||||
|
upload.enable = false; # Disable remote log upload (the default)
|
||||||
|
extraConfig = ''
|
||||||
|
SystemMaxUse=500M
|
||||||
|
SystemMaxFileSize=50M
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user