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-04-22 23:14:28 -04:00
|
|
|
services = {
|
|
|
|
greetd = {
|
|
|
|
enable = true;
|
2024-05-02 19:00:26 -04:00
|
|
|
settings =
|
2024-07-10 20:30:11 -04:00
|
|
|
if config.ar.desktop.greetd.autologin != null
|
2024-05-02 19:00:26 -04:00
|
|
|
then {
|
|
|
|
default_session = {
|
2024-06-26 22:13:02 -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.ar.desktop.greetd.session}";
|
2024-05-02 19:00:26 -04:00
|
|
|
};
|
|
|
|
initial_session = {
|
2024-06-26 22:13:02 -04:00
|
|
|
command = config.ar.desktop.greetd.session;
|
2024-07-10 20:30:11 -04:00
|
|
|
user = config.ar.desktop.greetd.autologin;
|
2024-05-02 19:00:26 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
default_session = {
|
2024-06-26 22:13:02 -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.ar.desktop.greetd.session}";
|
2024-05-02 19:00:26 -04:00
|
|
|
};
|
|
|
|
};
|
2024-04-22 23:14:28 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|