gendry: resilio: add resilio sync folders
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2022-12-02 18:20:12 +00:00
parent 8b2fbbce90
commit 18c8cf228d
10 changed files with 91 additions and 37 deletions

View File

@ -11,6 +11,7 @@
../../modules/desktop/awesome/default.nix
./hardware-configuration.nix
./persist.nix
./resilio.nix
];
config.boot.loader.systemd-boot.enable = true;

View File

@ -0,0 +1,43 @@
{ config, pkgs, lib, ... }:
let
folderNames = [
"dad"
"joseph"
"projects"
"resources"
"sync"
];
in
{
imports = [
../../modules/resilio/default.nix
];
## Resilio Sync (Unencrypted)
config.services.resilio.enable = true;
config.services.resilio.deviceName = "gendry.jakehillion-terminals";
config.services.resilio.directoryRoot = "/data/sync";
config.age.secrets =
let
mkSecret = name: {
name = "resilio/plain/${name}";
value = {
file = ../../secrets/resilio/plain/${name}.age;
owner = "rslsync";
group = "rslsync";
};
};
in
builtins.listToAttrs (builtins.map (mkSecret) folderNames);
config.resilioFolders =
let
mkFolder = name: {
name = name;
secretFile = config.age.secrets."resilio/plain/${name}".path;
};
in
builtins.map (mkFolder) folderNames;
}

View File

@ -33,6 +33,7 @@
config.services.resilio.enable = true;
config.services.resilio.deviceName = "vm.strangervm";
config.services.resilio.directoryRoot = "/data/sync";
config.services.resilio.storagePath = "/data/sync/.sync";
config.age.secrets."resilio/encrypted/dad".file = ../../secrets/resilio/encrypted/dad.age;
config.age.secrets."resilio/encrypted/projects".file = ../../secrets/resilio/encrypted/projects.age;

View File

@ -9,6 +9,8 @@
default = [ ];
};
config.users.users.jake.extraGroups = [ "rslsync" ];
config.services.resilio.sharedFolders =
let
mkFolder = name: secretFile: {

View File

@ -1,19 +1,23 @@
age-encryption.org/v1
-> ssh-rsa GxPFJQ
ftrFecRNOiAyTpVmu/oa5AJ0jyFvzm8QN057U9FdKKWkmvBWRqJW92mbSWwFEUfq
r3Wc6DZIUdDGZQfHBaixEUUH3wrkaNLwrDlvhlqxI5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ªRȹeâ´‰áð¬ØfÚWF.­›‚´Üæ ¿²¶OU3ùk”ó/tãN§yúXM
cGaGqRmiQhlX1hixoeKp1Xu6moEMZEh1+x5YZf3Vf0IhIkgBjyarunup74IcRo+b
flL+6mLkhanhuLFf3xiPdNyRgDZS9h1PumzguGoHCRhxPtQz481AfWyNxoYY5/LL
3+w6nxOKepQRLR3UWR9VtqbUcEGzL5vtFa95J9fo9VwNm23GRnOR0YcLRXL1XEC8
PmmnbyRIFtF6QVWHOKrWoNCeMtt1HhvtdJtfdXjXgxb4WY0zlo3IIGzhb1LH5paS
I2G7WOzXYWpT6tE2XscyRUWvRv/zHAW2d9I0SoGr5kTaXteyxaKO8WQIb008wH0a
DDFfZFGy9gRZMd5HSyw21w
-> ssh-ed25519 rjda/A yWSI8iHqTUwXI5j/jPnpMI35Fu1h0d2vGfB4f3raUWI
pfYgQ6l4Wk9BmAdvg6cWEGSzWCSCHf5UsoeQK86KsT0
-> p:]\-grease G<9`ko *Z)f (,1XyVQ opI
lpPrfopBJJczcj11KpcrNLY+WnBpEk1kMiDWN9w4VETpUu2AeEx4A/hXYrZmw46J
AsxqoH6KZtmF1RbSnw
--- I6cUdvVhTRjFXpJ601H6AKuSvrjApEr+Bsu9fpnaQr4
ÄcXÜà µrµ³¡
2ìü=ž¢¤¥³d<C2B3>tºÄ±î™‰Þì9)%Å<>FØo¬½,CCLˆõaJ1MÙ¦±Ör˜

Binary file not shown.

View File

@ -1,19 +1,22 @@
age-encryption.org/v1
-> ssh-rsa GxPFJQ
EOY7coZ/+zJfprLlvtrQDuRa/pyVbdkQGNSs89KiAwqL3kbKndC8RWiaNxqn6jBa
5lCsywMkI1YrStHjRFGX7JObLnqmD3dKr6Us0U5tjY1NJnIOK15b6NDc26DuhImA
TuobhD+bPCIh7qO/OW25yZ41JyJkK4HmjFsIQgM7vaY/FnH9YvRBAzwFLFzZ/+Ms
9p2vRacWk8Jy0ccMRYYxkqPkBK6aeb5wVTKPgk38bMTQU2kju+z00vw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fCY4yAZCtmGyhSmoUjqqhzV+3aKb71w4ryeSpRaq
Wtl1Kldos1U2kD/A+PTnUNkxleiAQyj3CXHYoKbY3Ue6GKisxwsZi7wJxYhEtwC5
WxvdfIf6zW1044kecG4JtR324RqTX71WrX0YzoLa9+KeEKpOLTtIAyfGfHaoJkrt
LwYP8rYQyVWqheebcspPdx4dfX5fApfqZcyEM0C3xTP6TdAqpBuDAQ2O0OD5nZAU
HEPsbCusO/sKIpG42LjsDg
-> ssh-ed25519 rjda/A FBL1ePiE9o9AoNa7KYVhPVG+HU71A+tdnNwCDie99wc
Uoc7czgFPasGdTckKbqSd7oL3FPvxHOFNmmaS7K+Szs
-> I5QT}y-grease
09Ga6xVZIJ+JDCc8yANARMO5OtDQlGuFuCkFvUIIP2aGWpYeQnXWiX9JGBZX2H8A
mq+EGdBJ828uB5URbQ
--- tpUtXw96P3jBUSjp7v0YYJHElLv/MmPM9BMHWotfs4s
'!Óò!əƻtov#ÿ+Q„äûáP«ñøÑá‡lÈjB¼BUUH9e_÷»d îo+—÷äÞÓÀCÿÖéÃp(ö

Binary file not shown.

Binary file not shown.

View File

@ -27,9 +27,9 @@ in
"resilio/encrypted/sync.age".publicKeys = users ++ [ vm_strangervm ];
## Read/Write Resilio Sync Secrets
"resilio/plain/dad.age".publicKeys = users;
"resilio/plain/joseph.age".publicKeys = users;
"resilio/plain/projects.age".publicKeys = users;
"resilio/plain/resources.age".publicKeys = users;
"resilio/plain/sync.age".publicKeys = users;
"resilio/plain/dad.age".publicKeys = users ++ [ gendry_terminals ];
"resilio/plain/joseph.age".publicKeys = users ++ [ gendry_terminals ];
"resilio/plain/projects.age".publicKeys = users ++ [ gendry_terminals ];
"resilio/plain/resources.age".publicKeys = users ++ [ gendry_terminals ];
"resilio/plain/sync.age".publicKeys = users ++ [ gendry_terminals ];
}