feat: add restic for backup, update, remove planify again

This commit is contained in:
Noa Aarts 2024-09-04 07:50:11 +02:00
parent bdcf0458bb
commit 215dcbf5ae
Signed by: noa
GPG key ID: 1850932741EFF672
11 changed files with 200 additions and 29 deletions

View file

@ -12,9 +12,12 @@
../../modules/plasma
../../common
./restic.nix
];
age.identityPaths = [ "${config.users.users.noa.home}/.ssh/id_ed25519" ];
hardware = {
@ -117,6 +120,21 @@
};
};
environment.systemPackages = with pkgs; [
restic
];
users.users.restic = {
isNormalUser = true;
};
security.wrappers.restic = {
source = "${pkgs.restic.out}/bin/restic";
owner = "restic";
group = "users";
permissions = "u=rwx,g=,o=";
capabilities = "cap_dac_read_search=+ep";
};
# TODO: find list of fonts to install
fonts.packages = with pkgs; [
font-awesome
@ -295,11 +313,13 @@
};
systemd = {
timers."update-flake" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
timers = {
"update-flake" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
};
};