rooms timer fix
This commit is contained in:
parent
714e43de97
commit
3193838d5e
2 changed files with 6 additions and 2 deletions
|
|
@ -16,7 +16,6 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
certbot
|
||||
jdk
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
|
@ -13,6 +14,10 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.packages = with pkgs; [
|
||||
jdk
|
||||
];
|
||||
|
||||
systemd.timers."rooms" = {
|
||||
wantedBy = ["timers.target"];
|
||||
timerConfig = {
|
||||
|
|
@ -24,7 +29,7 @@ in {
|
|||
systemd.services."rooms" = {
|
||||
script = ''
|
||||
cd /home/horseman/Programming
|
||||
java -jar KamerZoeken-1.0.0.jar headless
|
||||
/run/current-system/sw/bin/java -jar KamerZoeken-1.0.0.jar headless
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue