summaryrefslogtreecommitdiff
path: root/users/ryan/modules/simple-bar/default.nix
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
commit0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch)
tree6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/modules/simple-bar/default.nix
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/modules/simple-bar/default.nix')
-rw-r--r--users/ryan/modules/simple-bar/default.nix30
1 files changed, 30 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..e05fe08
--- /dev/null
+++ b/users/ryan/modules/simple-bar/default.nix
@@ -0,0 +1,30 @@
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.ryan.simple-bar;
7 "simple-bar-upstream" = ./simple-bar-source;
8in
9{
10 options.ryan.simple-bar.enable = mkEnableOption "simple-bar";
11
12 config = mkIf cfg.enable {
13 home.file."Library/Application Support/Übersicht/widgets/simple-bar" = {
14 source = simple-bar-upstream;
15 recursive = false;
16 };
17 home.file.".simplebarrc".source = ./simplebarrc;
18
19 # Install the LaunchD services
20 launchd.agents.simple-bar-server = import ./server.nix { inherit config lib pkgs; };
21
22 launchd.agents.ubersicht = {
23 enable = true;
24 config = {
25 ProgramArguments = [ "/usr/bin/open" "-a" "Übersicht" ];
26 RunAtLoad = true;
27 };
28 };
29 };
30}