1 { pkgs, lib, config, ... }:
3 inherit (config.users) users;
6 system.activationScripts.backup = ''
7 ${pkgs.zfs}/bin/zfs allow -u ${users.backup.name} bookmark,hold,send rpool
8 ${pkgs.zfs}/bin/zfs allow -u ${users.backup.name} receive,create,mount,rollback rpool/backup
30 use_template = [ "local" ];
34 use_template = [ "local" ];
38 "rpool/var/public-inbox" = {
39 use_template = [ "local" ];
43 use_template = [ "local" ];
47 use_template = [ "local" ];
51 "rpool/home/julm/mail" = {
52 use_template = [ "local" ];
56 "rpool/home/julm/log" = {
57 use_template = [ "local" ];
62 "rpool/backup/losurdo/home/julm/work" = {
63 use_template = [ "remote" ];
66 "rpool/backup/losurdo/var/postgresql" = {
67 use_template = [ "remote" ];