diff options
author | Profpatsch <mail@profpatsch.de> | 2016-08-27 02:35:12 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-08-27 02:35:12 +0200 |
commit | 43199c38033be0ec8b6d3856179c050cc374939c (patch) | |
tree | 8dfcc93507244b4f3b3d6d582b3e6d49c426dd30 /modules/user/openlab | |
parent | 4c3dbd23caf224b92cf5ccf2665d525707627024 (diff) |
modules/openlab/stackenblocken: everyday
Diffstat (limited to 'modules/user/openlab')
-rw-r--r-- | modules/user/openlab/stackenblocken.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/user/openlab/stackenblocken.nix b/modules/user/openlab/stackenblocken.nix new file mode 100644 index 00000000..a9299da6 --- /dev/null +++ b/modules/user/openlab/stackenblocken.nix @@ -0,0 +1,30 @@ +{ 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 = [ "network.target" ]; + serviceConfig = { + Type = "simple"; + ExecStart = "${lib.getBin pkgs.vuizvui.openlab.stackenblocken}/bin/stackenblocken"; + }; + # everyday at 21:45 + startAt = "21:45"; + }; + }; + + }; +} |