get rid of files.nix; ACME/credentialsFile and other cleanup

This commit is contained in:
Alexander Tomokhov
2023-12-16 09:39:22 +04:00
parent 7f6c48f978
commit 83e8f6e8a1
6 changed files with 57 additions and 90 deletions

View File

@@ -13,6 +13,8 @@
fileSystems."/".options = [ "noatime" ];
services.selfprivacy-api.enable = true;
services.redis.servers.sp-api = {
enable = true;
save = [
@@ -36,6 +38,7 @@
boot.cleanTmpDir = true;
networking = {
hostName = config.selfprivacy.hostname;
domain = config.selfprivacy.domain;
usePredictableInterfaceNames = false;
firewall = {
allowedTCPPorts = lib.mkForce [ 22 25 80 143 443 465 587 993 4443 8443 ];
@@ -69,6 +72,10 @@
DOMAIN = config.selfprivacy.domain;
};
documentation.enable = false; # no {man,info}-pages & docs, etc to save space
systemd.tmpfiles.rules = [
"# Completely remove remnants of NIXOS_LUSTRATE."
"R! /old-root"
];
system.autoUpgrade = {
enable = config.selfprivacy.autoUpgrade.enable;
allowReboot = config.selfprivacy.autoUpgrade.allowReboot;