nixos/system/wayland.nix
2024-06-08 21:26:58 +02:00

42 lines
689 B
Nix

{
pkgs,
conf,
lib,
...
}: {
security.polkit.enable = true;
security.pam.services.hyprlock = {};
services.dbus.enable = true;
environment.systemPackages = with pkgs; [
xdg-desktop-portal-hyprland
hyprcursor
hyprpicker
hyprlock
hypridle
hyprpaper
];
xdg.portal = {
enable = true;
wlr.enable = lib.mkForce true;
config.common.default = "hyprland";
};
hardware.opengl.enable = true;
programs.hyprland.enable = true;
services.greetd = {
enable = true;
settings = rec {
default_session = initial_session;
initial_session = {
user = conf.user;
command = "Hyprland";
};
};
};
}