ZFS: Difference between revisions
fix headings for real this time |
Change the /etc/aliases configuration to use Nix instead |
||
| Line 484: | Line 484: | ||
Then, configure an alias for root account. With this alias configured, all mails sent to root, such as cron job results and failed sudo login events, will be redirected to the configured email account. | Then, configure an alias for root account. With this alias configured, all mails sent to root, such as cron job results and failed sudo login events, will be redirected to the configured email account. | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="nix"> | ||
{ | |||
root: | environment.etc.aliases.text = '' | ||
root: you@example.com | |||
''; | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||