My personal NUR repository
config = {
services.kopia = {
enabled = true;
instances = {
s3 = {
enabled = true;
# password = "test";
passwordFile = "/test/";
path = "/tmp/";
repository = {
s3.bucket = "test-kopia";
s3.endpoint = "s3.amazonaws.com";
# s3.accessKey = "**************";
# s3.secretKey = "**************";
s3.accessKeyFile = "/etc/kopia/accessKey";
s3.secretKeyFile = "/etc/kopia/secretKey";
};
};
};
};
}
- setup repository
- setup repository with different namespace(currently we place kopia config under user's XDG_CONFIG_FILE, change to somewhare to prevent accident access)
- setup snapshot and run it periodically with systemd timer
- close repository after snapshot is done
- policy
- global policy
- add test case
- let kopia snapshot on btrfs or zfs's snapshot
- webui setup(kopiaUI)
- add other instance type
-
kopia, allow this kopia instance push snapshot to remote kopia server -
b2 -
azure - ...
-
define the module's options at vm.nix, then run nixos-shell to activate the vm