1
0

configuration.nix 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. { config, pkgs, lib, ... }:
  2. let
  3. hosts = import ../../config/hosts.nix;
  4. in
  5. {
  6. imports = [
  7. ./hardware.nix
  8. ../../nixos/hardware/networking
  9. ../../nixos/hardware/sound
  10. ../../nixos/hardware/bluetooth
  11. ../../nixos/hardware/biometric/elan-fingerprint.nix
  12. ../../nixos/flavors/desktop/hyprland
  13. ../../nixos/flavors/desktop/hyprland/greeter-default.nix
  14. ../../nixos/flavors/application/workstation
  15. ../../nixos/flavors/application/development
  16. ../../nixos/flavors/application/gaming
  17. ../../nixos/flavors/application/school
  18. ../../nixos/features/system/users.nix
  19. ];
  20. boot.kernelParams = [
  21. "resume=UUID=3f914128-2e08-4080-b1bb-d7ddf9ef647a"
  22. ];
  23. nixpkgs.config.allowUnfree = true;
  24. hardware.enableAllFirmware = true;
  25. nix.settings.experimental-features = [ "nix-command" "flakes" ];
  26. networking.hostName = hosts.ideapad.hostname;
  27. hardware.nvidia = {
  28. powerManagement = {
  29. enable = true;
  30. finegrained = true;
  31. };
  32. prime = {
  33. offload = {
  34. enable = true;
  35. enableOffloadCmd = true;
  36. };
  37. intelBusId = "PCI:0:2:0";
  38. nvidiaBusId = "PCI:2:0:0";
  39. };
  40. };
  41. boot.loader.systemd-boot.enable = true;
  42. boot.loader.efi.canTouchEfiVariables = true;
  43. system.stateVersion = "26.05";
  44. }