nixos/wayland.nix
2024-06-07 14:36:05 +02:00

34 lines
582 B
Nix

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