55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ homeDirectory, borgPasswordFile }:
|
|
{
|
|
|
|
home = {
|
|
location = {
|
|
sourceDirectories = (
|
|
map (f: "${homeDirectory}/${f}") [
|
|
".zen"
|
|
".local/share/fish"
|
|
".wallpaper.png"
|
|
".ssh"
|
|
|
|
"Documents"
|
|
"projects"
|
|
"Pictures"
|
|
"school"
|
|
"justfile"
|
|
]
|
|
++ (map (f: ".config/Signal/${f}") [
|
|
"stickers.noindex"
|
|
"attachments.noindex"
|
|
"downloads.noindex"
|
|
"drafts.noindex"
|
|
"sql"
|
|
"IndexedDB"
|
|
"Local Storage"
|
|
"SharedStorage"
|
|
"config.json"
|
|
"ephemeral.json"
|
|
"Preferences"
|
|
])
|
|
);
|
|
|
|
excludeHomeManagerSymlinks = true;
|
|
repositories = [ "ssh://server-public/tank/bak/laptop" ];
|
|
|
|
extraConfig = {
|
|
compression = "zstd";
|
|
};
|
|
};
|
|
|
|
retention = {
|
|
keepHourly = 48;
|
|
keepDaily = 30;
|
|
keepWeekly = 26;
|
|
keepMonthly = 24;
|
|
keepYearly = 10;
|
|
};
|
|
|
|
storage = {
|
|
encryptionPasscommand = "cat ${borgPasswordFile}";
|
|
};
|
|
};
|
|
}
|