42 lines
699 B
Nix
42 lines
699 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; hyprlock";
|
|
};
|
|
};
|
|
};
|
|
}
|