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 +++++++++-- hosts/sif/hw.nix | 1 - 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'hosts') 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 = { diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix index 4a3e6c86..92afb7c9 100644 --- a/hosts/sif/hw.nix +++ b/hosts/sif/hw.nix @@ -26,7 +26,6 @@ ]; nix.maxJobs = 12; - powerManagement.cpuFreqGovernor = "powersave"; # High-DPI console console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; -- cgit v1.2.3