소스 검색

Switch to lts linux kernel, because nvidia and broadcom driver is not updated to work with newest

Johan Rong 1 개월 전
부모
커밋
36d38a6ffe

+ 1 - 1
hosts/ideapad/nixos/default.nix

@@ -19,7 +19,7 @@ in
     ../../../nixos/modules/hardware/sound
     ../../../nixos/modules/hardware/bluetooth
     ../../../nixos/modules/hardware/biometric/fingerprint/elan.nix
-    ../../../nixos/modules/hardware/battery
+    ../../../nixos/modules/hardware/power/battery.nix
 
     #../../../nixos/modules/desktop/mango
     #../../../nixos/modules/greeter/tuigreet/mango.nix

+ 1 - 0
hosts/nixstation/nixos/default.nix

@@ -19,6 +19,7 @@ in
     ../../../nixos/modules/hardware/networking/bcm4360.nix
     ../../../nixos/modules/hardware/sound
     ../../../nixos/modules/hardware/bluetooth
+    ../../../nixos/modules/hardware/power
 
     ../../../nixos/modules/desktop/hyprland
     ../../../nixos/modules/greeter/tuigreet/hyprland.nix

+ 2 - 2
hosts/ono/nixos/default.nix

@@ -16,11 +16,11 @@ in
     ../../../nixos/profiles/gaming
     ../../../nixos/profiles/school
 
-    ../../../nixos/modules/hardware/networking
+    ../../../nixos/modules/hardware/networking/bcm4360.nix
     ../../../nixos/modules/hardware/sound
     ../../../nixos/modules/hardware/bluetooth
     ../../../nixos/modules/hardware/biometric/fingerprint
-    ../../../nixos/modules/hardware/battery
+    ../../../nixos/modules/hardware/power/battery.nix
 
     ../../../nixos/modules/desktop/hyprland
     ../../../nixos/modules/greeter/tuigreet/hyprland.nix

+ 0 - 0
nixos/modules/hardware/battery/default.nix → nixos/modules/hardware/power/battery.nix


+ 5 - 0
nixos/modules/hardware/power/default.nix

@@ -0,0 +1,5 @@
+{ config, pkgs, ... }:
+
+{
+  services.power-profiles-daemon.enable = true;
+}

+ 1 - 1
nixos/modules/system/nixos-base.nix

@@ -1,7 +1,7 @@
 { config, pkgs, lib, inputs, ... }:
 
 {
-  boot.kernelPackages = pkgs.linuxPackages_latest;
+  boot.kernelPackages = pkgs.linuxPackages;
 
   nixpkgs.config.allowUnfree = true;
   hardware.enableAllFirmware = true;

+ 1 - 2
nixos/profiles/workstation/default.nix

@@ -41,7 +41,6 @@
     chromium
     mediawriter
     translate-shell
-    firefox
     bitwarden-desktop
     brightnessctl
     kdePackages.kio-extras
@@ -148,7 +147,7 @@
     libraries = with pkgs; [];
   };
 
-  #programs.firefox.enable = true;
+  programs.firefox.enable = true;
   programs.noisetorch.enable = true;
 
   services.upower.enable = true;