fix motd run on login instead of print
This commit is contained in:
@@ -90,8 +90,16 @@ in {
|
||||
|
||||
environment.etc."motd".mode = "0755";
|
||||
|
||||
programs.bash.interactiveShellInit = ''
|
||||
programs.zsh.interactiveShellInit = ''
|
||||
/etc/motd
|
||||
'';
|
||||
|
||||
#environment.loginShellInit = ''
|
||||
# if [ -x /etc/motd ]; then
|
||||
# /etc/motd
|
||||
# else
|
||||
# cat /etc/motd
|
||||
# fi
|
||||
#'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user