File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 866866 { name = "limits" ; enable = cfg . limits != [ ] ; control = "required" ; modulePath = "${ package } /lib/security/pam_limits.so" ; settings = {
867867 conf = "${ makeLimitsConf cfg . limits } " ;
868868 } ; }
869- { name = "motd" ; enable = cfg . showMotd && ( config . users . motd != null || config . users . motdFile != null ) ; control = "optional" ; modulePath = "${ package } /lib/security/pam_motd.so" ; settings = {
869+ { name = "motd" ; enable = cfg . showMotd && ( config . users . motd != "" || config . users . motdFile != null ) ; control = "optional" ; modulePath = "${ package } /lib/security/pam_motd.so" ; settings = {
870870 inherit motd ;
871871 } ; }
872872 { name = "apparmor" ; enable = cfg . enableAppArmor && config . security . apparmor . enable ; control = "optional" ; modulePath = "${ pkgs . apparmor-pam } /lib/security/pam_apparmor.so" ; settings = {
14781478 '' ;
14791479
14801480 users . motd = mkOption {
1481- default = null ;
1481+ default = "" ;
14821482 example = "Today is Sweetmorn, the 4th day of The Aftermath in the YOLD 3178." ;
1483- type = types . nullOr types . lines ;
1483+ type = types . lines ;
14841484 description = "Message of the day shown to users when they log in." ;
14851485 } ;
14861486
14981498 config = {
14991499 assertions = [
15001500 {
1501- assertion = config . users . motd == null || config . users . motdFile == null ;
1501+ assertion = config . users . motd == "" || config . users . motdFile == null ;
15021502 message = ''
15031503 Only one of users.motd and users.motdFile can be set.
15041504 '' ;
You can’t perform that action at this time.
0 commit comments