X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Feldiron.nix;h=8dc8c4d8273a8e09e624fc26e64d51f403f9a460;hb=19be5cd24d3e17b3c1fe341ea9e09a67d1d422d1;hp=ecc65cc3f0082b3af970f4df7658910078b21d88;hpb=5f5efa6fa5a5b7d299998be410a278a7ff396504;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/eldiron.nix b/nixops/eldiron.nix index ecc65cc..8dc8c4d 100644 --- a/nixops/eldiron.nix +++ b/nixops/eldiron.nix @@ -10,6 +10,7 @@ { _module.args = { mylibs = import ../libs.nix; + mypkgs = import ../default.nix; myconfig = { env = import environment; ips = { @@ -24,6 +25,7 @@ ./modules/certificates.nix ./modules/gitolite ./modules/databases + ./modules/mpd ./modules/websites ./modules/mail ./modules/ftp @@ -35,6 +37,10 @@ services.myWebsites.tools.enable = true; services.pure-ftpd.enable = true; + services.journald.extraConfig = '' + MaxLevelStore="warning" + MaxRetentionSec="1year" + ''; networking = { firewall = { enable = true; @@ -94,14 +100,18 @@ services.cron = { enable = true; - # Doesn't work, need to be a user - mailto = "cron+eldiron@immae.eu"; systemCronJobs = [ '' # The star after /var/lib/* avoids deleting all folders in case of problem - 0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" -aAXvz --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu: + 0 3,9,15,21 * * * root rsync -e "ssh -i /root/.ssh/id_charon_vpn" -aAXvz --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* immae@immae.eu: > /dev/null '' ]; }; + + # This value determines the NixOS release with which your system is + # to be compatible, in order to avoid breaking some software such as + # database servers. You should change this only after NixOS release + # notes say you should. + system.stateVersion = "18.09"; # Did you read the comment? }; }