Compare commits
3 Commits
35c329c4d8
...
ede4232f28
| Author | SHA1 | Date | |
|---|---|---|---|
|
ede4232f28
|
|||
|
e44ba26ccb
|
|||
|
cbc20ba224
|
@@ -21,6 +21,8 @@
|
|||||||
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ];
|
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
boot.tmpOnTmpfs = true;
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-label/NIXROOT";
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.kernelParams = [ "mitigations=off" "luks.options=fido2-device=auto" ];
|
boot.kernelParams = [ "mitigations=off" "luks.options=fido2-device=auto" ];
|
||||||
|
boot.tmpOnTmpfs = true;
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
boot.initrd.luks = {
|
boot.initrd.luks = {
|
||||||
fido2Support = true;
|
fido2Support = true;
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ];
|
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
boot.tmpOnTmpfs = true;
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-label/NIXROOT";
|
||||||
|
|||||||
@@ -23,11 +23,7 @@
|
|||||||
mailerPasswordFile = config.age.secrets."services/gitea/mailerPassword".path;
|
mailerPasswordFile = config.age.secrets."services/gitea/mailerPassword".path;
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
START_SSH_SERVER = true;
|
SSH_PORT = 2220;
|
||||||
SSH_PORT = 2222;
|
|
||||||
# SSH_SERVER_CIPHERS = "";
|
|
||||||
# SSH_SERVER_KEY_EXCHANGES = "";
|
|
||||||
# SSH_SERVER_MACS = "";
|
|
||||||
ENABLE_GZIP = true;
|
ENABLE_GZIP = true;
|
||||||
};
|
};
|
||||||
security = {
|
security = {
|
||||||
@@ -68,12 +64,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
interfaces.ens18 = {
|
|
||||||
allowedTCPPorts = [ 2222 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user