feat: backup ugit repos

Signed-off-by: jolheiser <john.olheiser@gmail.com>
teamcity
jolheiser 2024-02-26 20:35:55 -06:00
parent c838495193
commit 783c19ac13
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
7 changed files with 55 additions and 1 deletions

View File

@ -243,6 +243,7 @@
};
dragonwell = {
imports = [
inputs.agenix.nixosModules.default
inputs.golink.nixosModules.default
inputs.ugit.nixosModules.default
./machines/dragonwell

View File

@ -2,7 +2,7 @@ let
username = "jolheiser";
key = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfKqCWtDlS3tgvfT6hQN+ii8UtabIZ+ZNmYN+bLwIa8PHOEW5MbfaqXSlhKkSi4+7SfQDCHphw0SMfhsQ4qMEcoywZ+4niDgKlQEVkl+S/VGbLuPe92NRStkyreZBLPr3Rh7ScNlGHcmHmoV9v7725fMnsMmabGVhpGO84PwNHOfJyv2tx2h6LxFbAV8S44UQu2lc8YLWCK2UvKuRnBerBXLnDQThUUX8UuCFzb786gQzD5XDU0MENbByxiy0XdVGAC+tFXEiSIgFZlFbFYyShgdTP9MzX2MOglEi+ae+1UIFncraW7ptUey7qHFJylpHWWWvE+GTwsg2G50i0FvFj jolheiser@jolheiser'';
in {
imports = [./caddy.nix ./golink.nix ./gotosocial.nix ./ugit.nix ./hardware.nix];
imports = [./caddy.nix ./golink.nix ./gotosocial.nix ./restic.nix ./ugit.nix ./hardware.nix];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;

View File

@ -0,0 +1,19 @@
{config, ...}: {
age.secrets = {
restic-env.file = ../../secrets/personal/restic-env.age;
restic-pass.file = ../../secrets/personal/restic-pass.age;
restic-repo.file = ../../secrets/personal/restic-repo.age;
};
services.restic.backups.dragonwell = {
initialize = true;
environmentFile = config.age.secrets.restic-env.path;
passwordFile = config.age.secrets.restic-pass.path;
repositoryFile = config.age.secrets.restic-repo.path;
paths = ["/var/lib/ugit/repos"];
pruneOpts = ["--keep-daily 7" "--keep-weekly 2" "--keep-monthly 2"];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
};
}

View File

@ -0,0 +1,9 @@
age-encryption.org/v1
-> ssh-ed25519 E8j6/g 1HJtBNf8fXHgPxE/igj2b6z9o4Etlp+GHoLo8L6YnRs
v+Sh2QlLbfixF7YkHTHM1luL4/SGlFzhNqQASH1UGDk
-> ssh-ed25519 f31uNA 7HHWKFc59n5Y2UJ+qaNoYDfLJZbry/pZRvIFR4DWBWc
DXcG+KGcE8JMPQt8cv4ted6vtkBf+u2uZsyPm4MMkwI
-> psKyV-grease "MM~T(~g tK+-AO4 >-T !n090?K|
Dtc2xPmFxFcTTC48EGs6awFQszoIjNY
--- 7U9PGgjHxlCoYcyS5Mke4lhCcdqkQLjc9M5UycDSYWk
€2„Ù 5͈¥ávUC‰è&†êòv5úÏôRè‰Ü¹qø-˺Z½Ò[ U%ýkÐrúVÖ™,Û Q#jZ…Ùy”nJd9·Û~z^³ƒ\ÞŠâByv¡/qI¾ˆQ"ÂUý»ÀÑ ×d+ÿA<C3BF>¡þgû†ö£ Š<>öŠl•EÎ-Æ

View File

@ -0,0 +1,11 @@
age-encryption.org/v1
-> ssh-ed25519 E8j6/g IxilZcPJYM7QuBM+2/NTzzv4YNJVI41FvmTlkL+KoUw
P7RK+wlfEdBeGVIU52QG43sRDJ9KxF0/6TarT9W+wbc
-> ssh-ed25519 f31uNA pQCg9BCiIk//YdV3AHr3w2Y84K6MwH/HK/k7w4EapQQ
9EySD+N5XEz/w4AyRBsLioYhr6PaPOkckMLhE7LONdk
-> M-grease d_4>8< / 1V($
yc2NhRg1u6HU1bAVVTqdi4qKyHdPINhhZt7HUPubLWR0KJyPb2Aaz6c66UmMu8La
49kh/q2eAcgQ+GVOHUSc6ZYEf+WD
--- YX4Fl76QjEubDmrpQcVx1ihZiVY2hQJhzrnIlxNlEHw
¬{é<>tÔÔišûHÑ™¯ÔxŦÓçAt+epVJ•Ë¬ì²æpYå
LÎã

View File

@ -0,0 +1,11 @@
age-encryption.org/v1
-> ssh-ed25519 E8j6/g /mv0fp9Xhz82GMijyXu4zKyNsW11q2fxJ6zD3MU6O2Q
6o/t8ahIXklhZ3ILUfOKiGns74qhny+80dcrFu/+tNY
-> ssh-ed25519 f31uNA DuKL8kZ2xuwICNLHzoOirxfzbzh3zHR6qW4LPnMhgCk
GNsyRaJlIxJjL2Ccnn5hkRzLrDr/pvbNrVidf9646dQ
-> Ztf-grease v
rvC+ciAnVae8fNwFllFCMyxjSXHx391gDjXnrf1TWl/UXaIpwvlcbPeSPedig52U
6bQM9Z3UW+zfAugHBb2q3BukVSkDFfFw8RAAxHbC1sleAbFAsgtCSjCjG0tn+irI
dxE
--- 7K9dTBILUGSBVi0dsn48ImjpAALL+8fR+eoPMo6Pbvw
5w)@+Fnü¬jgõ _ùþ÷¹Išåx NÓ¤"¡<>]/2V¶BO/Ù í¶úÃÒˆg <67>šðÅñwšd.€“á@â3tVŒ®„^ÂwÑËÕ`âÆÐ0нñÀt

View File

@ -18,4 +18,7 @@ in {
"work/pip.conf.age".publicKeys = [jolheiser chai masala];
"work/pypirc.age".publicKeys = [jolheiser chai masala];
"work/cifs.age".publicKeys = [jolheiser chai masala];
"personal/restic-env.age".publicKeys = [jolheiser dragonwell];
"personal/restic-pass.age".publicKeys = [jolheiser dragonwell];
"personal/restic-repo.age".publicKeys = [jolheiser dragonwell];
}