From a374f54dae42ba8aa0fffa63acf28f43eef3b06e Mon Sep 17 00:00:00 2001 From: Spectre Date: Fri, 7 Jun 2024 14:36:29 +0200 Subject: [PATCH] wayland --- system/wayland.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 system/wayland.nix diff --git a/system/wayland.nix b/system/wayland.nix new file mode 100644 index 00000000..390d11fe --- /dev/null +++ b/system/wayland.nix @@ -0,0 +1,34 @@ +{ + 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"; + }; + }; + }; +}