nixos-configs/modules/desktop/display-manager/default.nix
matt1432 13abafb1b2
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(dm): use home-manager for greeter hyprland config
2024-07-10 16:56:19 -04:00

41 lines
723 B
Nix

{config, ...}: let
cfg = config.roles.desktop;
hyprland =
config
.home-manager
.users
.${cfg.user}
.wayland
.windowManager
.hyprland
.finalPackage;
in {
imports = [
./astal.nix
./hyprland.nix
];
services = {
displayManager.sessionPackages = [hyprland];
greetd = {
enable = true;
settings = {
default_session = {
command = "Hyprland";
user = "greeter";
};
initial_session = {
command = "Hyprland";
user = cfg.user;
};
};
};
};
# unlock GPG keyring on login
services.gnome.gnome-keyring.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
}