feat: display current generation in greetd

This commit is contained in:
Youwen Wu 2024-11-11 18:15:37 -08:00
parent 246bb041df
commit e712bc0e56
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -4,7 +4,9 @@
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland --remember --greeting 'Welcome to liminalOS. Access is restricted to authorized personnel only.'";
command = ''
${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland --remember --greeting "Welcome to liminalOS. This is system generation $(readlink /nix/var/nix/profiles/system | grep -o '[0-9]*'). Access is restricted to authorized personnel only."
'';
user = "greeter";
};
};