hosts/satori: add tlp and move around misc stuff
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
			
		||||
{
 | 
			
		||||
  boot = {
 | 
			
		||||
    supportedFilesystems = [ "zfs" ];
 | 
			
		||||
    kernelPackages = pkgs.linuxPackages_latest;
 | 
			
		||||
    kernelPackages = pkgs.linuxPackages_5_15;
 | 
			
		||||
    initrd = {
 | 
			
		||||
      availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci" ];
 | 
			
		||||
      /*     preDeviceCommands = ''
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@
 | 
			
		||||
 | 
			
		||||
  powerManagement = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    cpuFreqGovernor = "schedutil";
 | 
			
		||||
    cpuFreqGovernor = "powersave";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  hardware = {
 | 
			
		||||
 
 | 
			
		||||
@@ -8,17 +8,13 @@
 | 
			
		||||
    wireless.enable = true;
 | 
			
		||||
    wireless.interfaces = [ "wlp0s20f3" ];
 | 
			
		||||
    firewall = {
 | 
			
		||||
      allowedTCPPorts = [ 22 18172 6600 8001 ];
 | 
			
		||||
      allowedTCPPorts = [ 22 18172 6600 8001 25565];
 | 
			
		||||
      allowedUDPPorts = [ 22 17840 18172 ];
 | 
			
		||||
      trustedInterfaces = [ "docker0" ];
 | 
			
		||||
    };
 | 
			
		||||
    interfaces = {
 | 
			
		||||
      enp7s0 = {
 | 
			
		||||
        useDHCP = true;
 | 
			
		||||
        ipv4.addresses = [{
 | 
			
		||||
          prefixLength = 24;
 | 
			
		||||
          address = "192.168.1.109";
 | 
			
		||||
        }];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -72,14 +72,9 @@
 | 
			
		||||
          host = "127.0.0.1";
 | 
			
		||||
          port = 2217;
 | 
			
		||||
        };
 | 
			
		||||
        remilia4 = {
 | 
			
		||||
          enable = true;
 | 
			
		||||
          type = "socks4";
 | 
			
		||||
          host = "127.0.0.1";
 | 
			
		||||
          port = 2217;
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    slock.enable = true;
 | 
			
		||||
    gamemode.enable  = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -15,10 +15,20 @@
 | 
			
		||||
    '';
 | 
			
		||||
    zfs.autoScrub.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%";
 | 
			
		||||
  };
 | 
			
		||||
  systemd.services.tor.wantedBy = lib.mkForce [ ];
 | 
			
		||||
  systemd.enableUnifiedCgroupHierarchy = false;
 | 
			
		||||
  systemd.services = {
 | 
			
		||||
    tor.wantedBy = lib.mkForce [ ];
 | 
			
		||||
    logmein-hamachi.wantedBy = lib.mkForce [ ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  security.pki.certificateFiles = [ ../../cert.pem ];
 | 
			
		||||
  virtualisation.libvirtd = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user