vno3-nk: add borgstor

This commit is contained in:
Motiejus Jakštys 2024-12-06 07:44:33 +02:00
parent afb31e9419
commit de4581a6fc
2 changed files with 10 additions and 1 deletions

View File

@ -94,6 +94,15 @@ in
extraSubnets = [ myData.subnets.vno1.cidr ]; extraSubnets = [ myData.subnets.vno1.cidr ];
}; };
borgstor = {
enable = true;
dataDir = "/data/borg";
sshKeys = with myData; [
hosts."fwminex.servers.jakst".publicKey
people_pubkeys.motiejus
];
};
ssh8022.client = { ssh8022.client = {
enable = true; enable = true;
keyfile = config.age.secrets.ssh8022-client.path; keyfile = config.age.secrets.ssh8022-client.path;

View File

@ -21,7 +21,7 @@
shell = "/bin/sh"; shell = "/bin/sh";
group = "borgstor"; group = "borgstor";
isSystemUser = true; isSystemUser = true;
createHome = false; createHome = true;
uid = myData.uidgid.borgstor; uid = myData.uidgid.borgstor;
openssh.authorizedKeys.keys = map ( openssh.authorizedKeys.keys = map (
k: ''command="${pkgs.borgbackup}/bin/borg serve --restrict-to-path ${dataDir}",restrict ${k}'' k: ''command="${pkgs.borgbackup}/bin/borg serve --restrict-to-path ${dataDir}",restrict ${k}''