configuration.nix 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/gpu/nvidia.nix
  10. ../../nixos/hardware/sound
  11. ../../nixos/hardware/bluetooth
  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. ];
  19. boot.kernelParams = [
  20. "resume=UUID=b0e53493-71b7-4adc-bc9a-37c16ed9672b"
  21. ];
  22. nixpkgs.config.allowUnfree = true;
  23. hardware.enableAllFirmware = true;
  24. nix.settings.experimental-features = [ "nix-command" "flakes" ];
  25. networking.hostName = hosts.dellaptop.hostname;
  26. hardware.nvidia = {
  27. powerManagement = {
  28. enable = true;
  29. finegrained = true;
  30. };
  31. prime = {
  32. offload = {
  33. enable = true;
  34. enableOffloadCmd = true;
  35. };
  36. intelBusId = "PCI:0:2:0";
  37. nvidiaBusId = "PCI:2:0:0";
  38. };
  39. };
  40. boot.loader.systemd-boot.enable = true;
  41. boot.loader.efi.canTouchEfiVariables = true;
  42. system.stateVersion = "26.05";
  43. }