summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDylan Frankland <dfrankland@users.noreply.github.com>2023-03-20 09:22:41 -0700
committerDylan Frankland <dfrankland@users.noreply.github.com>2024-03-03 21:32:17 -0800
commit5c65cfb656c1a7879c750d342bfdcc082831a891 (patch)
treec56510f5eff7d0038184b0bc06b531cd4844a43f /modules
parente7d7a7f0c5a184c67b6bff56f95436d83d05fba5 (diff)
Add support for persistent-apps in dock
Diffstat (limited to 'modules')
-rw-r--r--modules/system/defaults/dock.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/system/defaults/dock.nix b/modules/system/defaults/dock.nix
index 7fda0da..9d54f75 100644
--- a/modules/system/defaults/dock.nix
+++ b/modules/system/defaults/dock.nix
@@ -123,6 +123,19 @@ in {
'';
};
+ system.defaults.dock.persistent-apps = mkOption {
+ type = types.nullOr (types.listOf (types.either types.path types.str));
+ default = null;
+ example = [ "/Applications/Safari.app" "/System/Applications/Utilities/Terminal.app" ];
+ description = lib.mdDoc ''
+ Persistent applications in the dock.
+ '';
+ apply = value:
+ if !(isList value)
+ then value
+ else map (app: { tile-data = { file-data = { _CFURLString = app; _CFURLStringType = 0; }; }; }) value;
+ };
+
system.defaults.dock.show-process-indicators = mkOption {
type = types.nullOr types.bool;
default = null;