nixos-configs/modules/greetd/default.nix

46 lines
948 B
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
config,
2023-11-22 15:33:16 -05:00
lib,
pkgs,
...
2024-01-22 11:09:37 -05:00
}: let
inherit (config.vars) mainUser;
inherit (import ./hyprland.nix {inherit config lib pkgs;}) hyprConf;
# Nix stuff
isTouchscreen = config.hardware.sensor.iio.enable;
hyprland = config.home-manager.users.${mainUser}.wayland.windowManager.hyprland.finalPackage;
2023-10-19 17:05:13 -04:00
in {
2024-03-24 13:54:33 -04:00
imports = [./astal.nix];
2023-10-19 17:05:13 -04:00
services = {
2024-04-13 00:55:18 -04:00
displayManager = {
sessionPackages = [hyprland];
};
2024-04-13 00:55:18 -04:00
xserver = {
libinput.enable = true;
wacom.enable = isTouchscreen;
};
greetd = {
enable = true;
settings = {
default_session = {
command = "Hyprland --config ${hyprConf}";
user = "greeter";
};
initial_session = {
command = "Hyprland";
user = mainUser;
};
2023-10-19 17:05:13 -04:00
};
};
};
# unlock GPG keyring on login
services.gnome.gnome-keyring.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
}