2024-04-22 23:14:28 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-06-04 01:18:46 -04:00
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-04-22 23:14:28 -04:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
config = lib.mkIf config.alyraffauf.desktop.greetd.enable {
|
2024-05-26 00:36:48 -04:00
|
|
|
security.pam.services = {
|
|
|
|
greetd.enableKwallet = lib.mkDefault true;
|
|
|
|
greetd.enableGnomeKeyring = lib.mkDefault true;
|
|
|
|
};
|
2024-04-22 23:14:28 -04:00
|
|
|
services = {
|
|
|
|
greetd = {
|
|
|
|
enable = true;
|
2024-05-02 19:00:26 -04:00
|
|
|
settings =
|
|
|
|
if config.alyraffauf.desktop.greetd.autologin.enable
|
|
|
|
then {
|
|
|
|
default_session = {
|
2024-05-18 19:34:22 -04:00
|
|
|
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}";
|
2024-05-02 19:00:26 -04:00
|
|
|
};
|
|
|
|
initial_session = {
|
2024-05-01 17:44:08 -04:00
|
|
|
command = config.alyraffauf.desktop.greetd.session;
|
|
|
|
user = config.alyraffauf.desktop.greetd.autologin.user;
|
2024-05-02 19:00:26 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
default_session = {
|
2024-05-18 19:34:22 -04:00
|
|
|
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}";
|
2024-05-02 19:00:26 -04:00
|
|
|
};
|
|
|
|
};
|
2024-04-22 23:14:28 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|