2023-11-22 15:33:16 -05:00
|
|
|
{
|
2024-02-06 12:59:55 -05:00
|
|
|
config,
|
2023-11-22 15:33:16 -05:00
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-01-22 11:09:37 -05:00
|
|
|
}: let
|
2024-02-10 21:27:29 -05:00
|
|
|
inherit (config.vars) mainUser;
|
|
|
|
inherit (import ./hyprland.nix {inherit config lib pkgs;}) hyprConf;
|
2024-01-09 13:13:04 -05:00
|
|
|
|
2023-11-25 19:24:33 -05:00
|
|
|
# Nix stuff
|
2023-12-04 01:13:24 -05:00
|
|
|
isTouchscreen = config.hardware.sensor.iio.enable;
|
2024-02-05 22:46:43 -05:00
|
|
|
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
|
|
|
|
2023-12-04 01:13:24 -05:00
|
|
|
services = {
|
2024-04-13 00:55:18 -04:00
|
|
|
displayManager = {
|
|
|
|
sessionPackages = [hyprland];
|
|
|
|
};
|
2023-12-04 01:13:24 -05:00
|
|
|
|
2024-04-13 00:55:18 -04:00
|
|
|
xserver = {
|
2023-12-04 01:13:24 -05:00
|
|
|
libinput.enable = true;
|
|
|
|
wacom.enable = isTouchscreen;
|
|
|
|
};
|
|
|
|
|
|
|
|
greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
default_session = {
|
2024-02-05 22:46:43 -05:00
|
|
|
command = "Hyprland --config ${hyprConf}";
|
2023-12-04 01:13:24 -05:00
|
|
|
user = "greeter";
|
|
|
|
};
|
|
|
|
|
|
|
|
initial_session = {
|
2024-02-05 22:46:43 -05:00
|
|
|
command = "Hyprland";
|
2024-01-09 13:13:04 -05:00
|
|
|
user = mainUser;
|
2023-12-04 01:13:24 -05:00
|
|
|
};
|
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;
|
|
|
|
}
|