Skip to content

Commit

Permalink
add romeo backup user
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Nelson committed Dec 2, 2023
1 parent 81d0949 commit 1018f1f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nixos/romeo/backups.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,24 @@
"--source-bwlimit=15m"
"--debug"
"--sshoption=StrictHostKeyChecking=off"
"--no-sync-snap"
"--no-privilege-elevation"
];
};
};
};

users.users.backup = {
isNormalUser = true;
description = "Backup user";
};

systemd.services.BackupZFSAlow = {
serviceConfig.Type = "oneshot";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
script = with pkgs; ''
sudo zfs allow -u backup send,hold
''
};
}

0 comments on commit 1018f1f

Please sign in to comment.