add cronjob
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -50,6 +50,7 @@ in
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libsForQt5.bismuth # auto tiling
|
||||
wayland-utils
|
||||
];
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
./acme.nix
|
||||
./adguard.nix
|
||||
./ente.nix
|
||||
./kubernetes.nix
|
||||
./kavita.nix
|
||||
./nginx.nix
|
||||
|
||||
19
modules/services/ente.nix
Normal file
19
modules/services/ente.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -53,6 +53,7 @@
|
||||
services = {
|
||||
acme.enable = true;
|
||||
nginx.enable = true;
|
||||
ente.enable = true;
|
||||
fileshelter.enable = true;
|
||||
kavita = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user