Skip to content

Instantly share code, notes, and snippets.

@lpaulmp
Created January 25, 2017 23:06
Show Gist options
  • Save lpaulmp/0645c2d5a01d0076ed151034478e4473 to your computer and use it in GitHub Desktop.
Save lpaulmp/0645c2d5a01d0076ed151034478e4473 to your computer and use it in GitHub Desktop.
log-rotate-nix
{
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