citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

default.nix (452B)


      1 extra:
      2 { config, lib, pkgs, ... }:
      3 {
      4   imports = [
      5   ];
      6 
      7   systemd.user.services.myopia-reminder = {
      8     enable   = false;
      9     description = "Myopia Reminder";
     10 
     11     wantedBy    = [ "graphical-session.target" ];
     12     after       = [ "graphical-session.target" ];
     13 
     14     serviceConfig.ExecStart = extra.util.writeBash "myopia-reminder" ''
     15       ${pkgs.libnotify}/bin/notify-send -u critical "👁"
     16     '';
     17 
     18     startAt = "*:0/20"; # every 20 minutes
     19   };
     20 }