add cronjob
This commit is contained in:
@@ -53,6 +53,7 @@
|
|||||||
({ config, outputs, ... }: { nixpkgs.overlays = with outputs.overlays; [additions modifications unstable-packages]; })
|
({ config, outputs, ... }: { nixpkgs.overlays = with outputs.overlays; [additions modifications unstable-packages]; })
|
||||||
home-manager-unstable.nixosModules.home-manager
|
home-manager-unstable.nixosModules.home-manager
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
nixos-cosmic.nixosModules.default
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
## Custom variables (e.g. ip, interface, etc)
|
## Custom variables (e.g. ip, interface, etc)
|
||||||
@@ -106,6 +107,7 @@
|
|||||||
nixos-hardware.nixosModules.dell-xps-15-7590-nvidia
|
nixos-hardware.nixosModules.dell-xps-15-7590-nvidia
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager-unstable.nixosModules.home-manager
|
home-manager-unstable.nixosModules.home-manager
|
||||||
|
nixos-cosmic.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixosConfigurations."mini-pc" = nixpkgs-unstable.lib.nixosSystem {
|
nixosConfigurations."mini-pc" = nixpkgs-unstable.lib.nixosSystem {
|
||||||
@@ -122,6 +124,7 @@
|
|||||||
({ config, pkgs, ... }: { nixpkgs.overlays = with outputs.overlays; [additions modifications unstable-packages nur.overlay]; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = with outputs.overlays; [additions modifications unstable-packages nur.overlay]; })
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager-unstable.nixosModules.home-manager
|
home-manager-unstable.nixosModules.home-manager
|
||||||
|
nixos-cosmic.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# build vm -> nixos-rebuild build-vm --flake .#vm
|
# build vm -> nixos-rebuild build-vm --flake .#vm
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ in
|
|||||||
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
libsForQt5.bismuth # auto tiling
|
||||||
wayland-utils
|
wayland-utils
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./acme.nix
|
./acme.nix
|
||||||
./adguard.nix
|
./adguard.nix
|
||||||
|
./ente.nix
|
||||||
./kubernetes.nix
|
./kubernetes.nix
|
||||||
./kavita.nix
|
./kavita.nix
|
||||||
./nginx.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 = {
|
services = {
|
||||||
acme.enable = true;
|
acme.enable = true;
|
||||||
nginx.enable = true;
|
nginx.enable = true;
|
||||||
|
ente.enable = true;
|
||||||
fileshelter.enable = true;
|
fileshelter.enable = true;
|
||||||
kavita = {
|
kavita = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user