diff --git a/flake.nix b/flake.nix index 3300c0aa..d9c034d0 100644 --- a/flake.nix +++ b/flake.nix @@ -40,7 +40,7 @@ osaka-linode-01 = libx.mkHost { hostname = "osaka-linode-01"; type = "small";}; nixos-vm-01 = libx.mkHost { hostname = "nixos-vm-01"; }; # Physical - framework-server = libx.mkHost { hostname = "framework-server"; desktop = "xfce"; gpu = "intel"; }; + framework-server = libx.mkHost { hostname = "framework-server"; }; nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; desktop = "gnome"; gpu = "nvidia"; }; nixos-framework = libx.mkHost { hostname = "nixos-framework"; desktop = "hyprland"; gpu = "amd"; theme = "green"; }; nixos-rpi4-01 = libx.mkHost { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; }; diff --git a/nixos/hosts/framework-server/cron.nix b/nixos/hosts/framework-server/cron.nix new file mode 100644 index 00000000..ae018cd2 --- /dev/null +++ b/nixos/hosts/framework-server/cron.nix @@ -0,0 +1,7 @@ +{ ... }: { + services.cron.systemCronJobs = [ + "0 0 * * * rsync --delete -avr /Storage/Data/Docker/root@nuc-docker01:/Storage/Data/Docker/" + "0 3 * * * rsync -avr /Storage/Data/Docker/nextcloud/html/data/albert/files/InstantUpload/ root@nuc-docker01:/Storage/Video/Pictures/InstantUpload/" + "0 5 * * * rsync -avr /Storage/Data/Docker/nextcloud/html/data/albert/files/Wallpapers/ root@nuc-docker01:/Storage/Video/Pictures/Wallpapers" + ]; +} \ No newline at end of file diff --git a/nixos/hosts/framework-server/default.nix b/nixos/hosts/framework-server/default.nix index 8e19620b..282e5ee0 100644 --- a/nixos/hosts/framework-server/default.nix +++ b/nixos/hosts/framework-server/default.nix @@ -10,6 +10,7 @@ ./ssh-luks.nix ./docker.nix ./wireguard.nix + ./cron.nix ] ++ lib.optional (builtins.isString desktop) ./rdesktop.nix; # steam , etc