vno3-nk: add borgstor
This commit is contained in:
parent
afb31e9419
commit
de4581a6fc
@ -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;
|
||||||
|
@ -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}''
|
||||||
|
Loading…
Reference in New Issue
Block a user