init
This commit is contained in:
39
nix/home-manager/progs/borg.nix
Normal file
39
nix/home-manager/progs/borg.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ homeDirectory }:
|
||||
{
|
||||
home = {
|
||||
location = {
|
||||
sourceDirectories = [
|
||||
"/etc/nixos"
|
||||
"${homeDirectory}/.librewolf"
|
||||
"${homeDirectory}/dotfiles"
|
||||
"${homeDirectory}/.config/home-manager"
|
||||
"${homeDirectory}/.config/Signal"
|
||||
"${homeDirectory}/Documents"
|
||||
"${homeDirectory}/projects"
|
||||
"${homeDirectory}/Pictures"
|
||||
"${homeDirectory}/school"
|
||||
"${homeDirectory}/.wallpaper.png"
|
||||
"${homeDirectory}/.ssh"
|
||||
"${homeDirectory}/justfile"
|
||||
"${homeDirectory}/.local/share/fish"
|
||||
"${homeDirectory}/.gnupg"
|
||||
];
|
||||
excludeHomeManagerSymlinks = true;
|
||||
|
||||
repositories = [ "ssh://server-public/mnt/bak/laptop" ];
|
||||
};
|
||||
|
||||
retention = {
|
||||
keepHourly = 48;
|
||||
keepDaily = 30;
|
||||
keepWeekly = 26;
|
||||
keepMonthly = 24;
|
||||
keepYearly = 10;
|
||||
};
|
||||
|
||||
storage = {
|
||||
#super secret password location (maybe I should find a way to store secrets properly)
|
||||
encryptionPasscommand = "cat ${homeDirectory}/Documents/secrets/borg_bak_pass";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user