blob: a309f6168d7e8ce2415374f834ae87e3794d3c6d (
plain)
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
30
|
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.ryan.simple-bar;
"simple-bar-upstream" = ./simple-bar-source
in
{
options.ryan.simple-bar.enable = mkEnableOption "simple-bar";
config = mkIf cfg.enable {
home.file."Library/Application Support/Übersicht/widgets/simple-bar" = {
source = simple-bar-upstream;
recursive = false;
};
home.file.".simplebarrc".source = ./simplebarrc;
# Install the LaunchD services
launchd.agents.simple-bar-server = import ./server.nix { inherit config lib pkgs; };
launchd.agents.ubersicht = {
enable = true;
config = {
ProgramArguments = [ "/usr/bin/open" "-a" "Übersicht" ];
RunAtLoad = true;
};
};
};
}
|