users/ryan/modules/ubersicht/default.nix
0ce4331f742863ec03c711c27b0a0dee7e8cc187
· 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 | } |