diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/sif/default.nix | 6 | ||||
-rw-r--r-- | hosts/sif/hw.nix | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 610d990d..3525015d 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { flake, pkgs, customUtils, lib, config, path, ... }: | 1 | { flake, flakeInputs, pkgs, customUtils, lib, config, path, ... }: |
2 | let | 2 | let |
3 | mwnSubnetsPublic = | 3 | mwnSubnetsPublic = |
4 | [ "129.187.0.0/16" "141.40.0.0/16" "141.84.0.0/16" | 4 | [ "129.187.0.0/16" "141.40.0.0/16" "141.84.0.0/16" |
@@ -15,6 +15,7 @@ in { | |||
15 | 15 | ||
16 | tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines | 16 | tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines |
17 | networkmanager | 17 | networkmanager |
18 | flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1 | ||
18 | ]; | 19 | ]; |
19 | 20 | ||
20 | config = { | 21 | config = { |
@@ -59,7 +60,6 @@ in { | |||
59 | plymouth.enable = true; | 60 | plymouth.enable = true; |
60 | 61 | ||
61 | kernelPackages = pkgs.linuxPackages_latest; | 62 | kernelPackages = pkgs.linuxPackages_latest; |
62 | kernelParams = [ "i915.fastboot=1" "intel_pstate=no_hwp" "acpi_backlight=vendor" "thinkpad-acpi.brightness_enable=1" "quiet" ]; | ||
63 | extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; | 63 | extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; |
64 | kernelModules = ["v4l2loopback"]; | 64 | kernelModules = ["v4l2loopback"]; |
65 | kernelPatches = [ | 65 | kernelPatches = [ |
@@ -536,7 +536,7 @@ in { | |||
536 | prime = { | 536 | prime = { |
537 | nvidiaBusId = "PCI:1:0:0"; | 537 | nvidiaBusId = "PCI:1:0:0"; |
538 | intelBusId = "PCI:0:2:0"; | 538 | intelBusId = "PCI:0:2:0"; |
539 | sync.enable = true; | 539 | reverseSync.enable = true; |
540 | }; | 540 | }; |
541 | }; | 541 | }; |
542 | 542 | ||
diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix index d01582e0..077d25a6 100644 --- a/hosts/sif/hw.nix +++ b/hosts/sif/hw.nix | |||
@@ -95,7 +95,5 @@ | |||
95 | # High-DPI console | 95 | # High-DPI console |
96 | console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; | 96 | console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; |
97 | 97 | ||
98 | hardware.cpu.intel.updateMicrocode = true; | ||
99 | |||
100 | hardware.enableRedistributableFirmware = true; | 98 | hardware.enableRedistributableFirmware = true; |
101 | } | 99 | } |