28 lines
635 B
Nix
28 lines
635 B
Nix
{ config, lib, ...}: {
|
|
options.desktop.enable = lib.mkEnableOption "Enable Wayland compositor with hyprland login";
|
|
|
|
config = lib.mkIf config.desktop.enable {
|
|
hardware.graphics.enable = true;
|
|
|
|
security.polkit.enable = true;
|
|
security.pam.services.hyprlock = {};
|
|
|
|
services.dbus.enable = true;
|
|
|
|
programs.hyprland.enable = true;
|
|
|
|
services.greetd = {
|
|
enable = true;
|
|
settings = {
|
|
default_session = {
|
|
user = "lilith";
|
|
command = "Hyprland";
|
|
};
|
|
initial_session = {
|
|
user = "lilith";
|
|
command = "Hyprland";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|