summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/sif/default.nix11
-rw-r--r--hosts/sif/hw.nix1
2 files changed, 9 insertions, 3 deletions
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 @@
38 kernelPackages = pkgs.linuxPackages_latest; 38 kernelPackages = pkgs.linuxPackages_latest;
39 kernelParams = [ "i915.fastboot=1" "intel_pstate=no_hwp" "acpi_backlight=vendor" "thinkpad-acpi.brightness_enable=1" "quiet" ]; 39 kernelParams = [ "i915.fastboot=1" "intel_pstate=no_hwp" "acpi_backlight=vendor" "thinkpad-acpi.brightness_enable=1" "quiet" ];
40 extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; 40 extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
41 kernelModules = ["v4l2loopback"];
41 42
42 tmpOnTmpfs = true; 43 tmpOnTmpfs = true;
43 }; 44 };
@@ -54,6 +55,8 @@
54 allowedTCPPorts = [ 22 # ssh 55 allowedTCPPorts = [ 22 # ssh
55 8000 # quickserve 56 8000 # quickserve
56 ]; 57 ];
58 allowedUDPPorts = [ 8554 # gopro webcam
59 ];
57 }; 60 };
58 61
59 networkmanager = { 62 networkmanager = {
@@ -81,10 +84,14 @@
81 ''; 84 '';
82 }; 85 };
83 86
84 powerManagement.enable = true; 87 powerManagement = {
88 enable = true;
89
90 cpuFreqGovernor = "schedutil";
91 };
85 92
86 environment.systemPackages = with pkgs; [ 93 environment.systemPackages = with pkgs; [
87 nvtop brightnessctl 94 nvtop brightnessctl config.boot.kernelPackages.v4l2loopback s-tui
88 ]; 95 ];
89 96
90 services = { 97 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 @@
26 ]; 26 ];
27 27
28 nix.maxJobs = 12; 28 nix.maxJobs = 12;
29 powerManagement.cpuFreqGovernor = "powersave";
30 # High-DPI console 29 # High-DPI console
31 console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; 30 console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
32 31