nixos/system/wayland.nix
2024-06-11 01:45:11 +02:00

43 lines
704 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
hyprcursor
];
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";
};
};
};
}