aboutsummaryrefslogtreecommitdiff
path: root/users/ryan/modules/simple-bar/default.nix
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2026-07-06 22:50:11 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2026-07-06 22:50:11 -0400
commit8f71fac972b4fe5a98459148d9b33d1748deaa7f (patch)
tree4889a076747ac560770ba16330a6ba6771ab6bc4 /users/ryan/modules/simple-bar/default.nix
parent78690d5e544616e73562e13d0c27bd910480111c (diff)
initial simple-bar config
Diffstat (limited to 'users/ryan/modules/simple-bar/default.nix')
-rw-r--r--users/ryan/modules/simple-bar/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/default.nix b/users/ryan/modules/simple-bar/default.nix
new file mode 100644
index 0000000..116216f
--- /dev/null
+++ b/users/ryan/modules/simple-bar/default.nix
@@ -0,0 +1,35 @@
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.ryan.simple-bar;
7 # Fetch the git repo at a specific rev
8 "simple-bar-upstream" = builtins.fetchGit {
9 url = "https://github.com/Jean-Tinland/simple-bar";
10 rev = "fb5cada548a05bd01f727772c0a18fd8c7f65b42";
11 shallow = true;
12 };
13in
14{
15 options.ryan.simple-bar.enable = mkEnableOption "simple-bar";
16
17 config = mkIf cfg.enable {
18 home.file."Library/Application Support/Übersicht/widgets/simple-bar" = {
19 source = simple-bar-upstream;
20 recursive = false;
21 };
22 home.file.".simplebarrc".source = ./simplebarrc;
23
24 # Install the LaunchD services
25 launchd.agents.simple-bar-server = import ./server.nix { inherit config lib pkgs; };
26
27 launchd.agents.ubersicht = {
28 enable = true;
29 config = {
30 ProgramArguments = [ "/usr/bin/open" "-a" "Übersicht" ];
31 RunAtLoad = true;
32 };
33 };
34 };
35}