From 6021a9e22f99bb9b19134e2cb443bdeba852edc6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 27 Mar 2021 18:46:45 +0100 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/sif/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'hosts/sif/default.nix') diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 2c3c9e3d..737dad36 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix @@ -38,6 +38,7 @@ kernelPackages = pkgs.linuxPackages_latest; kernelParams = [ "i915.fastboot=1" "intel_pstate=no_hwp" "acpi_backlight=vendor" "thinkpad-acpi.brightness_enable=1" "quiet" ]; extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; + kernelModules = ["v4l2loopback"]; tmpOnTmpfs = true; }; @@ -54,6 +55,8 @@ allowedTCPPorts = [ 22 # ssh 8000 # quickserve ]; + allowedUDPPorts = [ 8554 # gopro webcam + ]; }; networkmanager = { @@ -81,10 +84,14 @@ ''; }; - powerManagement.enable = true; + powerManagement = { + enable = true; + + cpuFreqGovernor = "schedutil"; + }; environment.systemPackages = with pkgs; [ - nvtop brightnessctl + nvtop brightnessctl config.boot.kernelPackages.v4l2loopback s-tui ]; services = { -- cgit v1.2.3