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:
parent
0bea8222f6
commit
918501596b
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ let
|
|||
|
||||
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
|
||||
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ in
|
|||
};
|
||||
|
||||
config = mkOption {
|
||||
type = types.lines;
|
||||
type = types.either types.path types.lines;
|
||||
default = "";
|
||||
example = ''
|
||||
sketchybar --bar height=24
|
||||
|
|
Loading…
Reference in a new issue