nixos-configs/modules/desktop/display-manager/default.nix
matt1432 85a3c28438
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: start making flake exposed modules with desktop
2024-06-27 00:56:27 -04:00

47 lines
818 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (import ./hyprland.nix {inherit config lib pkgs;}) hyprConf;
cfg = config.roles.desktop;
hyprland =
config
.home-manager
.users
.${cfg.user}
.wayland
.windowManager
.hyprland
.finalPackage;
in {
imports = [
./astal.nix
];
services = {
displayManager.sessionPackages = [hyprland];
greetd = {
enable = true;
settings = {
default_session = {
command = "Hyprland --config ${hyprConf}";
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;
}