{ pkgs, inputs, ... }:

{
  imports = [
    # Utilities
    ../../modules/nixos/nvidia-support.nix
    ../../modules/nixos/fingerprint.nix
    ../../modules/nixos/bluetooth.nix
    ../../modules/nixos/greetd.nix
    ../../modules/nixos/audio.nix

    # Apps & services
    ../../modules/nixos/nordvpn.nix
  ];

  modules.fingerprint.enable = true;
  modules.bluetooth.enable = true;
  modules.nvidia.enable = true;
  modules.audio.enable = true;

  security.rtkit.enable = true;
  modules.greetd = {
    enable = true;
    command = "Hyprland";
  };

  services = {
    tlp.enable = false;
    gvfs.enable = true;
    upower.enable = true;
    power-profiles-daemon.enable = true;

    printing = {
      enable = true;
      drivers = with pkgs; [ hplipWithPlugin ];
    };

    udev.extraRules = ''
      SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
    '';
  };

  programs = {
    adb.enable = true;
    thunar.enable = true;
    hyprland.enable = true;

    thunar.plugins = with pkgs.xfce; [
      thunar-archive-plugin
      thunar-volman
    ];

    light.enable = true;
  };
}
