mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
upd
This commit is contained in:
parent
b36c53fdea
commit
60d4e53a6f
1 changed files with 6 additions and 13 deletions
|
|
@ -71,32 +71,25 @@ in
|
|||
forceSSL = true;
|
||||
};
|
||||
|
||||
# Store frigate data on /data instead of root
|
||||
# Bind mount caches into the 3TB frigate LVM volume
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /data/frigate 0750 frigate frigate -"
|
||||
"d /data/frigate/lib 0750 frigate frigate -"
|
||||
"d /data/frigate/cache 0750 frigate frigate -"
|
||||
"d /data/frigate/nginx-cache 0750 nginx nginx -"
|
||||
"d /var/lib/frigate/cache 0750 frigate frigate -"
|
||||
"d /var/lib/frigate/nginx-cache 0750 nginx nginx -"
|
||||
];
|
||||
|
||||
fileSystems."/var/lib/frigate" = {
|
||||
device = "/data/frigate/lib";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
fileSystems."/var/cache/frigate" = {
|
||||
device = "/data/frigate/cache";
|
||||
device = "/var/lib/frigate/cache";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
fileSystems."/var/cache/nginx/frigate" = {
|
||||
device = "/data/frigate/nginx-cache";
|
||||
device = "/var/lib/frigate/nginx-cache";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
# Backup recordings/database, exclude caches
|
||||
modules.system.backup = {
|
||||
paths = [ "/data/frigate" ];
|
||||
paths = [ "/var/lib/frigate" ];
|
||||
exclude = [ "*/cache" "*/nginx-cache" ];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue