mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:49:41 +00:00
Update tuigreet style
This commit is contained in:
parent
b930b14cf2
commit
4743732cde
|
@ -11,6 +11,9 @@
|
||||||
deviceType = config.myOptions.device.roles.type;
|
deviceType = config.myOptions.device.roles.type;
|
||||||
acceptedTypes = ["laptop" "desktop"];
|
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;
|
sessionData = config.services.displayManager.sessionData.desktops;
|
||||||
sessionPaths = concatStringsSep ":" [
|
sessionPaths = concatStringsSep ":" [
|
||||||
"${sessionData}/share/xsessions"
|
"${sessionData}/share/xsessions"
|
||||||
|
@ -25,14 +28,16 @@
|
||||||
"--remember"
|
"--remember"
|
||||||
"--remember-user-session"
|
"--remember-user-session"
|
||||||
"--asterisks"
|
"--asterisks"
|
||||||
|
"--greeting ${greetingMsg}"
|
||||||
"--sessions '${sessionPaths}'"
|
"--sessions '${sessionPaths}'"
|
||||||
|
"--theme ${tuiGreetTheme}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
vt = 2;
|
vt = 1;
|
||||||
|
|
||||||
# <https://man.sr.ht/~kennylevinsen/greetd/>
|
# <https://man.sr.ht/~kennylevinsen/greetd/>
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in a new issue