#
#  Gnome configuration
#
#  flake.nix
#   ├─ ./hosts
#   │   └─ ./laptop
#   │       └─ default.nix
#   └─ ./modules
#       └─ ./desktop
#           └─ ./gnome
#               └─ default.nix *
#
{ config, lib, user, pkgs, jovian-nixos, ... }:

{
    imports = [ 
      (jovian-nixos + "/modules")
    ];

    jovian = {
        steam = {
          enable = true;
          user = "kabbone";
          autoStart = true;
          desktopSession = "plasmawayland";
        };
        devices.steamdeck = {
            enable = true;
        };
        decky-loader.enable = true;
    };

    hardware.opengl = {
      enable = true;
      driSupport = true;
      driSupport32Bit = true;
    };

    environment.systemPackages = with pkgs; [
      steamdeck-firmware
    ];

    services.pipewire.wireplumber.package = lib.mkForce pkgs.wireplumber;

}