Prepare clerie-backup for replication
This commit is contained in:
parent
548004b1a1
commit
e55c86a037
@ -68,6 +68,34 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# fix borgbackup primary grouping
|
||||||
|
users.users.borg.group = "borg";
|
||||||
|
|
||||||
|
users.users.backup-replication = {
|
||||||
|
isNormalUser = true;
|
||||||
|
group = "backup-replication";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8kCLiDfVFKgoNvEoMb34jp2n1lQG+k7wigzc4qGmrROlWkJ46/Ym4UrSeQJAd6hwHTcKTZkeOrqDAjZZ+jlidpncJHT5VMW5Ah965pxbBq6Qh1Yz5tKj7nLAQ/+bwEH4qqBFNd796876n3pY/FqhwAHWONqWhLKzMXpFursMSITUPmRXcaPwJrgS9DIYspZ9bBhhRSdQ5N1SiGtaszOQwdevLnNYqdtFOBG4rt9SO6IBIHtaiTIHrrMGS2Lt3NMwkq+O+N+TGaKLjbwqtfUPfPOCmY0XH12OawjxHP9hZ+WH3dPtcu5p+VORciSybPvyh9qzXUrDeO4HDuii2GEFU8JFELYXdT/qBwdIMp82tkgww0zKbTJuc0y/9eR7LCXop4OALhR8+8xWDI9c1ccxu3T7S7zUI1OmTlR9i8rx85D4sz2dtp1jirDoW2KVuIdwe6G3NLfTL95FZRmveEQM3MO8MPpfzZ4EvaMbiQQd/c4VAmGovtSLQhySTpT6qSv0= root@backup-4"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.backup-replication = {};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bindfs
|
||||||
|
];
|
||||||
|
|
||||||
|
fileSystems."/clerie-backup-replication" = {
|
||||||
|
device = "/mnt/clerie-backup";
|
||||||
|
fsType = "fuse.bindfs";
|
||||||
|
options = [
|
||||||
|
"ro"
|
||||||
|
"force-user=backup-replication"
|
||||||
|
"force-group=backup-replication"
|
||||||
|
"perms=0000:ug=rD"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
clerie.monitoring = {
|
clerie.monitoring = {
|
||||||
enable = true;
|
enable = true;
|
||||||
id = "204";
|
id = "204";
|
||||||
|
Loading…
Reference in New Issue
Block a user