users/ryan/modules/ubersicht/default.nix

d06784958d73159b5e4abafe5114804662114ed7 · 408 B · 20 lines raw

1 { config, lib, pkgs, ... }:
2
3 with lib;
4
5 let
6 cfg = config.ryan.ubersicht;
7 in
8 {
9 options.ryan.ubersicht.enable = mkEnableOption "ubersicht";
10
11 config = mkIf cfg.enable {
12 launchd.agents.ubersicht = {
13 enable = true;
14 config = {
15 ProgramArguments = [ "/usr/bin/open" "-a" "Übersicht" ];
16 RunAtLoad = true;
17 };
18 };
19 };
20 }