blob: f2726921337b7a1ad94afdcf2cb1e44d5e62aa7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.vuizvui.user.openlab.stackenblocken;
in
{
options.vuizvui.user.openlab.stackenblocken = {
enable = mkEnableOption "STACKENBLOCKEN EVERY DAY";
};
config = mkIf cfg.enable {
systemd.user = {
services.stackenblocken = {
description = "stackenblocken timer";
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${lib.getBin pkgs.vuizvui.openlab.stackenblocken}/bin/stackenblocken";
};
# everyday at 21:45, except Wednesday (Yoga silence)
startAt = [ "Mon,Tue,Thu,Fri,Sat,Sun 21:45" "Wed 22:00" ];
};
};
};
}
|