nixos-configs/modules/greetd/default.nix
matt1432 27f1d01f31
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: get rid of mdDocs usage
2024-06-24 12:30:49 -04:00

46 lines
827 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (config.vars) mainUser;
inherit (import ./hyprland.nix {inherit config lib pkgs;}) hyprConf;
# Nix stuff
hyprland =
config
.home-manager
.users
.${mainUser}
.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 = mainUser;
};
};
};
};
# unlock GPG keyring on login
services.gnome.gnome-keyring.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
}