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 {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
certbot
|
certbot
|
||||||
jdk
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
|
@ -13,6 +14,10 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
environment.packages = with pkgs; [
|
||||||
|
jdk
|
||||||
|
];
|
||||||
|
|
||||||
systemd.timers."rooms" = {
|
systemd.timers."rooms" = {
|
||||||
wantedBy = ["timers.target"];
|
wantedBy = ["timers.target"];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
|
|
@ -24,7 +29,7 @@ in {
|
||||||
systemd.services."rooms" = {
|
systemd.services."rooms" = {
|
||||||
script = ''
|
script = ''
|
||||||
cd /home/horseman/Programming
|
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 = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue