configuration.nix 894 B

1234567891011121314151617181920212223242526272829303132333435
  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/features/system/basic.nix
  15. ../../nixos/features/system/users.nix
  16. ../../nixos/features/system/gaming.nix
  17. ];
  18. boot.kernelParams = [
  19. "resume=UUID=b0e53493-71b7-4adc-bc9a-37c16ed9672b"
  20. ];
  21. nixpkgs.config.allowUnfree = true;
  22. hardware.enableAllFirmware = true;
  23. nix.settings.experimental-features = [ "nix-command" "flakes" ];
  24. networking.hostName = hosts.dellaptop.hostname;
  25. boot.loader.systemd-boot.enable = true;
  26. boot.loader.efi.canTouchEfiVariables = true;
  27. system.stateVersion = "26.05";
  28. }