configuration.nix 801 B

12345678910111213141516171819202122232425262728293031
  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/sway
  13. ../../nixos/flavors/desktop/sway/greeter-default.nix
  14. ../../nixos/features/system/basic.nix
  15. ../../nixos/features/system/users.nix
  16. ../../nixos/features/system/gaming.nix
  17. ];
  18. nixpkgs.config.allowUnfree = true;
  19. hardware.enableAllFirmware = true;
  20. nix.settings.experimental-features = [ "nix-command" "flakes" ];
  21. networking.hostName = hosts.dellaptop.hostname;
  22. boot.loader.systemd-boot.enable = true;
  23. boot.loader.efi.canTouchEfiVariables = true;
  24. system.stateVersion = "26.05";
  25. }