~abyxcos/nas.nix

0003b51d15b8e92fa62ee9e96ef78b3fb5dae68a — root 11 months ago 6c9afc4
Enable restic backups.
1 files changed, 12 insertions(+), 1 deletions(-)

M configuration.nix
M configuration.nix => configuration.nix +12 -1
@@ 11,6 11,7 @@ let
		# enableACME = true;
		locations."/".proxyPass = "http://localhost:${toString port}";
		# locations."/".proxyWebsockets = true;
		locations."/".recommendedProxySettings = true;
	};
in {
	imports =


@@ 22,7 23,7 @@ in {
			# simple-nixos-mailserver
			(builtins.fetchTarball {
				url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/master/nixos-mailserver-master.tar.gz";
				sha256 = "0cd4d8glfv4mj861myvig00n02nsii8jhjb1dc066dsr2wdbwd3l";
				sha256 = "1ngil2shzkf61qxiqw11awyl81cr7ks2kv3r3k243zz7v2xakm5c";
			})
		];



@@ 247,6 248,16 @@ in {
		labels = [];
	};

	services.restic.backups.backblaze = {
		environmentFile = "/etc/nixos/restic/env";
		repositoryFile = "/etc/nixos/restic/repo";
		passwordFile = "/etc/nixos/restic/password";

		paths = [
			"/mnt/guava/services"
		];
	};

	mailserver.enable = false;
	mailserver = {
		fqdn = "mail.bouncingkiwi.net";