fixed minipc2 & added scrypted backups
This commit is contained in:
1 parent
de1311fbf9
commit
12f53af7d8
4 files changed
+28
-13
No files matched your search
@@ -1,5 +1,7 @@
|
||||
{ user }:
|
||||
{ ... }:
|
||||
{ pkgs
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
imports = [ ./hl-minipc2.hardware-configuration.nix ];
|
||||
skyg.user.enable = true;
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
./arrs
|
||||
./k8s
|
||||
./services
|
||||
./timers
|
||||
./timers.nix
|
||||
];
|
||||
}
|
||||
@@ -25,11 +25,22 @@ in
|
||||
deps = [ ];
|
||||
};
|
||||
};
|
||||
skyg.server.timers.scrypted-backups = {
|
||||
script = ''
|
||||
set -eu
|
||||
${pkgs.rsync}/bin/rsync -avpzP --delete /opt/homelab/scrypted /mnt/terra1/Data/apps/
|
||||
'';
|
||||
skyg.server.timers = {
|
||||
scrypted-backups = {
|
||||
OnCalendar = "daily";
|
||||
script = ''
|
||||
set -eu
|
||||
${pkgs.rsync}/bin/rsync -avpzP --delete /opt/homelab/scrypted /mnt/terra1/Data/apps/
|
||||
'';
|
||||
};
|
||||
scrypted-autoupdate = {
|
||||
OnCalendar = "weekly";
|
||||
script = ''
|
||||
set -eu
|
||||
${pkgs.docker}/bin/docker pull ghcr.io/koush/scrypted
|
||||
systemctl restart docker-scrypted.service
|
||||
'';
|
||||
};
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
containers = {
|
||||
|
||||
@@ -4,12 +4,14 @@ in {
|
||||
options = {
|
||||
skyg.server.timers = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule {
|
||||
script = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
OnCalendar = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "daily";
|
||||
options = {
|
||||
script = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
OnCalendar = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "daily";
|
||||
};
|
||||
};
|
||||
});
|
||||
default = { };
|
||||
|
||||
Reference in new issue
Block a user