add cronjob

This commit is contained in:
Kopatz
2024-05-16 12:17:41 +02:00
parent 44da6611c0
commit f26ad1f973
5 changed files with 25 additions and 0 deletions

View File

@@ -53,6 +53,7 @@
({ config, outputs, ... }: { nixpkgs.overlays = with outputs.overlays; [additions modifications unstable-packages]; })
home-manager-unstable.nixosModules.home-manager
agenix.nixosModules.default
nixos-cosmic.nixosModules.default
];
specialArgs = {
## Custom variables (e.g. ip, interface, etc)
@@ -106,6 +107,7 @@
nixos-hardware.nixosModules.dell-xps-15-7590-nvidia
agenix.nixosModules.default
home-manager-unstable.nixosModules.home-manager
nixos-cosmic.nixosModules.default
];
};
nixosConfigurations."mini-pc" = nixpkgs-unstable.lib.nixosSystem {
@@ -122,6 +124,7 @@
({ config, pkgs, ... }: { nixpkgs.overlays = with outputs.overlays; [additions modifications unstable-packages nur.overlay]; })
agenix.nixosModules.default
home-manager-unstable.nixosModules.home-manager
nixos-cosmic.nixosModules.default
];
};
# build vm -> nixos-rebuild build-vm --flake .#vm

View File

@@ -50,6 +50,7 @@ in
environment.systemPackages = with pkgs; [
libsForQt5.bismuth # auto tiling
wayland-utils
];
};

View File

@@ -3,6 +3,7 @@
imports = [
./acme.nix
./adguard.nix
./ente.nix
./kubernetes.nix
./kavita.nix
./nginx.nix

19
modules/services/ente.nix Normal file
View File

@@ -0,0 +1,19 @@
{ config, pkgs, lib, inputs, ... }:
with lib;
let
cfg = config.custom.services.ente;
in
{
options.custom.services.ente = {
enable = mkEnableOption "Enables ente";
};
config = lib.mkIf cfg.enable {
services.cron = {
enable = true;
systemCronJobs = [
"0 23 * * * root /data/ente/backup/backup.sh"
"0 23 * * * root /data/ente-public/backup/backup.sh"
];
};
};
}

View File

@@ -53,6 +53,7 @@
services = {
acme.enable = true;
nginx.enable = true;
ente.enable = true;
fileshelter.enable = true;
kavita = {
enable = true;