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 | |
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')
-rw-r--r-- | hosts/sif/default.nix | 11 | ||||
-rw-r--r-- | hosts/sif/hw.nix | 1 |
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 | ||