cleaning stuff up

This commit is contained in:
ari committed 2024-12-26 15:45:22 -05:00
1 parent 12f53af7d8
commit bf62802ffd
6 files changed
+30 -28

No files matched your search

+2 -2
View File
@@ -39,12 +39,12 @@ in
fileSystems."/mnt/apps/jellyfin" = {
device = "terra1.lab.internal:/mnt/Data/apps/jellyfin";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
options = [ "x-systemd.automount" "auto" ];
};
fileSystems."/family-videos" = {
device = "tnas1.lab.internal:/mnt/EightTerra/FamilyStorage/Video";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
options = [ "x-systemd.automount" "auto" ];
};
};
}
@@ -28,6 +28,9 @@ in
skyg.server.timers = {
scrypted-backups = {
OnCalendar = "daily";
wantedBy = [
"mnt-terra1-Data-apps.mount"
];
script = ''
set -eu
${pkgs.rsync}/bin/rsync -avpzP --delete /opt/homelab/scrypted /mnt/terra1/Data/apps/
+8 -1
View File
@@ -12,6 +12,10 @@ in {
type = lib.types.str;
default = "daily";
};
wantedBy = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
};
};
});
default = { };
@@ -21,7 +25,10 @@ in {
systemd.timers = builtins.mapAttrs
(
name: value: {
wantedBy = [ "timers.target" ];
wantedBy = builtins.concatLists [
[ "timers.target" ]
value.wantedBy
];
timerConfig = {
OnCalendar = value.OnCalendar;
Persistent = true;