X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fsystem%2Fbackup-2.nix;h=3d263f570419beb67ea5280762aa57919599dd78;hb=d43e0c61af84940447dbcdd1deac848328dde46d;hp=1d84667de9ba6d794abc28f4be5dda23f0b32c0a;hpb=619e4f46adc15e409122c4e0fa0e0a0b811bb32f;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/system/backup-2.nix b/modules/private/system/backup-2.nix index 1d84667..3d263f5 100644 --- a/modules/private/system/backup-2.nix +++ b/modules/private/system/backup-2.nix @@ -1,5 +1,5 @@ { privateFiles }: -{ config, pkgs, resources, ... }: +{ config, pkgs, resources, name, ... }: { boot.kernelPackages = pkgs.linuxPackages_latest; myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; }; @@ -35,6 +35,10 @@ }; myServices.certificates.enable = true; + security.acme.certs."${name}" = { + user = config.services.nginx.user; + group = config.services.nginx.group; + }; services.nginx = { enable = true; recommendedOptimisation = true; @@ -50,7 +54,6 @@ services.rsyncBackup = { mountpoint = "/backup2"; - mailto = config.myEnv.rsync_backup.mailto; profiles = config.myEnv.rsync_backup.profiles; ssh_key_public = config.myEnv.rsync_backup.ssh_key.public; ssh_key_private = config.myEnv.rsync_backup.ssh_key.private; @@ -115,5 +118,5 @@ # database servers. You should change this only after NixOS release # notes say you should. # https://nixos.org/nixos/manual/release-notes.html - system.stateVersion = "19.03"; # Did you read the comment? + system.stateVersion = "20.03"; # Did you read the comment? }