2024-01-28 01:37:24 +00:00
|
|
|
{inputs, ...}: {
|
2023-12-18 06:20:44 +00:00
|
|
|
imports = [
|
2024-01-28 01:37:24 +00:00
|
|
|
inputs.nixpkgs.nixosModules.notDetected
|
2023-12-18 06:20:44 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.lenovo-legion-y530-15ich
|
|
|
|
];
|
|
|
|
|
|
|
|
services.hdapsd.enable = false;
|
2024-07-09 23:12:02 +00:00
|
|
|
services.thermald.enable = true;
|
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
settings.General.FastConnectable = true;
|
2023-12-18 06:20:44 +00:00
|
|
|
};
|
|
|
|
|
2024-07-09 23:12:02 +00:00
|
|
|
# nouveou
|
|
|
|
services.xserver.videoDrivers = [];
|
|
|
|
|
|
|
|
# novideo
|
|
|
|
# hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta;
|
|
|
|
# hardware.nvidia.nvidiaSettings = false;
|
|
|
|
# environment.sessionVariables."MOZ_ENABLE_WAYLAND" = "0";
|
|
|
|
# networking.networkmanager.enable = false;
|
|
|
|
# services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
# services.xserver.displayManager.gdm.enable = true;
|
|
|
|
# # https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1562
|
|
|
|
# services.udev.extraRules = ''
|
|
|
|
# ENV{DEVNAME}=="/dev/dri/card1", TAG+="mutter-device-preferred-primary"
|
|
|
|
# '';
|
|
|
|
|
|
|
|
boot.loader.timeout = 0;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2023-12-18 06:20:44 +00:00
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid"];
|
|
|
|
boot.kernelModules = ["kvm-intel"];
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
}
|