1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Add support of sketchybar's configuration also as file

This commit is contained in:
Vladimir Kravets 2024-05-27 20:24:41 +03:00 committed by GitHub
parent 0bea8222f6
commit 918501596b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ let
cfg = config.services.sketchybar; cfg = config.services.sketchybar;
configFile = pkgs.writeScript "sketchybarrc" cfg.config; configFile = (if types.path.check cfg.config then cfg.config else (pkgs.writeScript "sketchybarrc" cfg.config));
in in
{ {
@ -29,7 +29,7 @@ in
}; };
config = mkOption { config = mkOption {
type = types.lines; type = types.either types.path types.lines;
default = ""; default = "";
example = '' example = ''
sketchybar --bar height=24 sketchybar --bar height=24