diff options
Diffstat (limited to 'hosts/sif/default.nix')
-rw-r--r-- | hosts/sif/default.nix | 11 |
1 files changed, 9 insertions, 2 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 = { |