mirror of
https://github.com/ItsDrike/nixdots
synced 2025-01-23 23:04:34 +00:00
Update tuigreet style
This commit is contained in:
parent
b930b14cf2
commit
4743732cde
|
@ -11,6 +11,9 @@
|
|||
deviceType = config.myOptions.device.roles.type;
|
||||
acceptedTypes = ["laptop" "desktop"];
|
||||
|
||||
greetingMsg = "'Access is restricted to authorized personnel only.'";
|
||||
tuiGreetTheme = "'border=magenta;text=cyan;prompt=green;time=red;action=white;button=yellow;container=black;input=gray'";
|
||||
|
||||
sessionData = config.services.displayManager.sessionData.desktops;
|
||||
sessionPaths = concatStringsSep ":" [
|
||||
"${sessionData}/share/xsessions"
|
||||
|
@ -25,14 +28,16 @@
|
|||
"--remember"
|
||||
"--remember-user-session"
|
||||
"--asterisks"
|
||||
"--greeting ${greetingMsg}"
|
||||
"--sessions '${sessionPaths}'"
|
||||
"--theme ${tuiGreetTheme}"
|
||||
];
|
||||
};
|
||||
in {
|
||||
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
vt = 2;
|
||||
vt = 1;
|
||||
|
||||
# <https://man.sr.ht/~kennylevinsen/greetd/>
|
||||
settings = {
|
||||
|
|
Loading…
Reference in a new issue