Compare commits

...

3 Commits

Author SHA1 Message Date
ede4232f28
hosts: enable zramswap 2023-01-07 08:56:04 +01:00
e44ba26ccb
services: gitea use system ssh 2023-01-07 08:54:01 +01:00
cbc20ba224
hosts: put tmp on tmpfs 2023-01-07 08:38:47 +01:00
4 changed files with 7 additions and 11 deletions

View File

@ -21,6 +21,8 @@
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.tmpOnTmpfs = true;
zramSwap.enable = true;
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXROOT";

View File

@ -22,6 +22,8 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.kernelParams = [ "mitigations=off" "luks.options=fido2-device=auto" ];
boot.tmpOnTmpfs = true;
zramSwap.enable = true;
boot.initrd.luks = {
fido2Support = true;

View File

@ -21,6 +21,8 @@
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.tmpOnTmpfs = true;
zramSwap.enable = true;
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXROOT";

View File

@ -23,11 +23,7 @@
mailerPasswordFile = config.age.secrets."services/gitea/mailerPassword".path;
settings = {
server = {
START_SSH_SERVER = true;
SSH_PORT = 2222;
# SSH_SERVER_CIPHERS = "";
# SSH_SERVER_KEY_EXCHANGES = "";
# SSH_SERVER_MACS = "";
SSH_PORT = 2220;
ENABLE_GZIP = true;
};
security = {
@ -68,12 +64,6 @@
};
};
networking.firewall = {
interfaces.ens18 = {
allowedTCPPorts = [ 2222 ];
};
};
services.nginx = {
enable = true;
recommendedTlsSettings = true;