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
|
|
|
...
|
|
|
|
}: {
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf config.ar.desktop.greetd.enable {
|
2024-06-22 15:29:41 -04:00
|
|
|
security.pam.services.greetd = {
|
|
|
|
enableGnomeKeyring = true;
|
|
|
|
gnupg.enable = true;
|
|
|
|
kwallet.enable = true;
|
2024-05-26 00:36:48 -04:00
|
|
|
};
|
2024-06-22 16:03:05 -04:00
|
|
|
|
2024-07-18 21:05:35 -04:00
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings =
|
|
|
|
if config.ar.desktop.greetd.autologin != null
|
|
|
|
then {
|
|
|
|
default_session = {
|
|
|
|
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.ar.desktop.greetd.session}";
|
|
|
|
};
|
|
|
|
initial_session = {
|
|
|
|
command = config.ar.desktop.greetd.session;
|
|
|
|
user = config.ar.desktop.greetd.autologin;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
default_session = {
|
|
|
|
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.ar.desktop.greetd.session}";
|
2024-05-02 19:00:26 -04:00
|
|
|
};
|
2024-07-18 21:05:35 -04:00
|
|
|
};
|
2024-04-22 23:14:28 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|