From de4581a6fc57a8fffb07771a4bff2c5d13e06319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 6 Dec 2024 07:44:33 +0200 Subject: [PATCH] vno3-nk: add borgstor --- hosts/vno1-gdrx/configuration.nix | 9 +++++++++ modules/services/borgstor/default.nix | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/vno1-gdrx/configuration.nix b/hosts/vno1-gdrx/configuration.nix index 922d83c..740f93c 100644 --- a/hosts/vno1-gdrx/configuration.nix +++ b/hosts/vno1-gdrx/configuration.nix @@ -94,6 +94,15 @@ in extraSubnets = [ myData.subnets.vno1.cidr ]; }; + borgstor = { + enable = true; + dataDir = "/data/borg"; + sshKeys = with myData; [ + hosts."fwminex.servers.jakst".publicKey + people_pubkeys.motiejus + ]; + }; + ssh8022.client = { enable = true; keyfile = config.age.secrets.ssh8022-client.path; diff --git a/modules/services/borgstor/default.nix b/modules/services/borgstor/default.nix index 68afd85..942131a 100644 --- a/modules/services/borgstor/default.nix +++ b/modules/services/borgstor/default.nix @@ -21,7 +21,7 @@ shell = "/bin/sh"; group = "borgstor"; isSystemUser = true; - createHome = false; + createHome = true; uid = myData.uidgid.borgstor; openssh.authorizedKeys.keys = map ( k: ''command="${pkgs.borgbackup}/bin/borg serve --restrict-to-path ${dataDir}",restrict ${k}''