#  NOTE: Dual booted with windows 11. Disable fast-boot in power plan and bios and turn off hibernate to get wifi and bluetooth working. This only works once but on reboot is borked again. So using the old school BLT dongle.
#
{
  lib,
  pkgs,
  vars,
  unstable,
  ...
}: {
  imports = [
    ./hardware-configuration.nix
    ../../modules/hardware/nvidia.nix
    ../../modules/services/avahi.nix
    ../../modules/virtualization/docker.nix
    ../../modules/virtualization/qemu.nix
    ../../modules/programs/games.nix
    ../../modules/secrets/gnome-keyring.nix
    ../../modules/secrets/gpg.nix
    # ../../modules/services/easyeffects.nix
  ];

  boot = {
    # Boot Options
    loader = {
      systemd-boot = {
        enable = true;
        configurationLimit = 3;
      };
      efi = {
        canTouchEfiVariables = true;
      };
      timeout = 5;
    };
    kernelPackages = unstable.linuxPackages_latest;
  };

  hardware = {
    sane = {
      # Scanning
      enable = true;
      extraBackends = [unstable.utsushi];
    };
  };
  services.udev.packages = [unstable.utsushi];

  # Desktops
  hyprland.enable = false;
  kde.enable = false;
  awesome.enable = true;

  programs.kdeconnect.enable = true;
  environment = {
    systemPackages = with pkgs;
      [
        # System-Wide Packages
        discord # Messaging
        obs-studio # Live Streaming
        simple-scan # Scanning
        firefox
        heroic
        nextcloud-client
        anki
        easyeffects
        qpwgraph
        calibre
      ]
      ++ (with unstable; [
        libsForQt5.kdeconnect-kde
      ]);
  };
}