diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-03-27 18:46:45 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-03-27 18:46:45 +0100 |
commit | 6021a9e22f99bb9b19134e2cb443bdeba852edc6 (patch) | |
tree | 398720cbb8a601553900866031ba3f093e051106 /hosts/sif/default.nix | |
parent | e203311de813949dec992b76b04410068768eaf5 (diff) | |
download | nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar.gz nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar.bz2 nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar.xz nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.zip |
…
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 = { |