Created
January 25, 2017 23:06
-
-
Save lpaulmp/0645c2d5a01d0076ed151034478e4473 to your computer and use it in GitHub Desktop.
log-rotate-nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
webserver = | |
{ config, pkgs, ... }: | |
{ deployment.targetEnv = "virtualbox"; | |
deployment.virtualbox.headless = true; | |
deployment.virtualbox.memorySize = 512; # megabytes | |
}; | |
} | |
{ | |
network.description = "logrotate network"; | |
webserver = | |
{ config, pkgs, ... }: | |
{ services.logrotate = { | |
enable = true; | |
config = '' | |
/var/log/messages { | |
missingok | |
weekly | |
create 0664 root root | |
rotate 2 | |
} | |
''; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment