| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- { config, pkgs, lib, ... }:
- let
- hosts = import ../../config/hosts.nix;
- in
- {
- imports = [
- ./hardware.nix
- ../../nixos/hardware/networking
- ../../nixos/hardware/gpu/nvidia.nix
- ../../nixos/hardware/sound
- ../../nixos/hardware/bluetooth
- ../../nixos/hardware/biometric/elan-fingerprint.nix
- ../../nixos/flavors/desktop/hyprland
- ../../nixos/flavors/desktop/hyprland/greeter-default.nix
- ../../nixos/flavors/application/workstation
- ../../nixos/flavors/application/development
- ../../nixos/flavors/application/gaming
- ../../nixos/flavors/application/school
- ../../nixos/features/system/users.nix
- ];
- boot.kernelParams = [
- "resume=UUID=79e1dbf5-5469-466b-bf3f-7de192644f09"
- ];
- nixpkgs.config.allowUnfree = true;
- hardware.enableAllFirmware = true;
- nix.settings.experimental-features = [ "nix-command" "flakes" ];
- networking.hostName = hosts.ideapad.hostname;
- hardware.nvidia = {
- powerManagement = {
- enable = true;
- finegrained = true;
- };
- prime = {
- offload = {
- enable = true;
- enableOffloadCmd = true;
- };
- intelBusId = "PCI:0:2:0";
- nvidiaBusId = "PCI:2:0:0";
- };
- };
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- system.stateVersion = "26.05";
- }
|