2024-11-10 16:08:53 -06:00
|
|
|
{ inputs, pkgs, ... }:
|
2024-05-03 14:35:00 -05:00
|
|
|
{
|
2024-06-28 01:05:54 -05:00
|
|
|
# Allow Chromium & Electron apps run natively in wayland
|
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
2024-06-04 02:56:43 -05:00
|
|
|
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;
|
2024-11-10 16:08:53 -06:00
|
|
|
# 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
|
|
|
};
|
2024-11-10 16:08:53 -06:00
|
|
|
xdg.autostart.enable = true;
|
2024-06-22 05:50:43 -05:00
|
|
|
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;
|
2024-11-10 16:08:53 -06:00
|
|
|
}
|