From e712bc0e56972558059e57be1d1fc1a6cff17ba5 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 11 Nov 2024 18:15:37 -0800 Subject: [PATCH] feat: display current generation in greetd --- modules/linux/greeter/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/linux/greeter/default.nix b/modules/linux/greeter/default.nix index 556deaf..1251d9f 100644 --- a/modules/linux/greeter/default.nix +++ b/modules/linux/greeter/default.nix @@ -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"; }; };