feat: add restic for backup, update, remove planify again
This commit is contained in:
parent
bdcf0458bb
commit
215dcbf5ae
11 changed files with 200 additions and 29 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue