2018-02-08 22:16:23 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2018-05-29 19:52:35 +00:00
|
|
|
options = {
|
|
|
|
m-0.server.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.m-0.server.enable {
|
|
|
|
nix = {
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
options = "--delete-older-than 5d";
|
|
|
|
};
|
|
|
|
optimise.automatic = true;
|
|
|
|
};
|
|
|
|
system.autoUpgrade.enable = true;
|
|
|
|
system.autoUpgrade.dates = "22:00";
|
|
|
|
};
|
2018-02-08 22:16:23 +00:00
|
|
|
}
|