dots/hosts/orion/modules/graphical.nix

37 lines
986 B
Nix
Raw Normal View History

{ inputs, pkgs, ... }:
2024-05-03 14:35:00 -05:00
{
# Allow Chromium & Electron apps run natively in wayland
environment.sessionVariables.NIXOS_OZONE_WL = "1";
services.displayManager = {
autoLogin = {
enable = true;
user = "price";
};
defaultSession = "hyprland";
sddm = {
wayland.enable = true;
enable = true;
autoLogin.relogin = true;
};
2024-05-03 14:35:00 -05:00
};
programs.hyprland = {
enable = true;
# set the flake package
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# make sure to also set the portal package, so that they are in sync
portalPackage =
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
2024-05-03 14:35:00 -05:00
};
xdg.autostart.enable = true;
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
libvdpau
];
};
2024-11-06 15:53:04 -06:00
services.qemuGuest.enable = true;
2024-05-03 14:35:00 -05:00
services.spice-vdagentd.enable = true;
}