hosts/satori: add tlp and move around misc stuff

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-01-18 14:51:32 +05:30
parent 6f7e8a749a
commit 97bc35cb07
5 changed files with 16 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
{ {
boot = { boot = {
supportedFilesystems = [ "zfs" ]; supportedFilesystems = [ "zfs" ];
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_5_15;
initrd = { initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci" ]; availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci" ];
/* preDeviceCommands = '' /* preDeviceCommands = ''

View File

@@ -42,7 +42,7 @@
powerManagement = { powerManagement = {
enable = true; enable = true;
cpuFreqGovernor = "schedutil"; cpuFreqGovernor = "powersave";
}; };
hardware = { hardware = {

View File

@@ -8,17 +8,13 @@
wireless.enable = true; wireless.enable = true;
wireless.interfaces = [ "wlp0s20f3" ]; wireless.interfaces = [ "wlp0s20f3" ];
firewall = { firewall = {
allowedTCPPorts = [ 22 18172 6600 8001 ]; allowedTCPPorts = [ 22 18172 6600 8001 25565];
allowedUDPPorts = [ 22 17840 18172 ]; allowedUDPPorts = [ 22 17840 18172 ];
trustedInterfaces = [ "docker0" ]; trustedInterfaces = [ "docker0" ];
}; };
interfaces = { interfaces = {
enp7s0 = { enp7s0 = {
useDHCP = true; useDHCP = true;
ipv4.addresses = [{
prefixLength = 24;
address = "192.168.1.109";
}];
}; };
}; };

View File

@@ -72,14 +72,9 @@
host = "127.0.0.1"; host = "127.0.0.1";
port = 2217; port = 2217;
}; };
remilia4 = {
enable = true;
type = "socks4";
host = "127.0.0.1";
port = 2217;
};
}; };
}; };
slock.enable = true; slock.enable = true;
gamemode.enable = true;
}; };
} }

View File

@@ -15,10 +15,20 @@
''; '';
zfs.autoScrub.enable = true; zfs.autoScrub.enable = true;
gvfs.enable = true; gvfs.enable = true;
tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
};
};
logind.extraConfig = "RuntimeDirectorySize=30%"; logind.extraConfig = "RuntimeDirectorySize=30%";
}; };
systemd.services.tor.wantedBy = lib.mkForce [ ]; systemd.services = {
systemd.enableUnifiedCgroupHierarchy = false; tor.wantedBy = lib.mkForce [ ];
logmein-hamachi.wantedBy = lib.mkForce [ ];
};
security.pki.certificateFiles = [ ../../cert.pem ]; security.pki.certificateFiles = [ ../../cert.pem ];
virtualisation.libvirtd = { virtualisation.libvirtd = {
enable = true; enable = true;