From 5c65cfb656c1a7879c750d342bfdcc082831a891 Mon Sep 17 00:00:00 2001 From: Dylan Frankland Date: Mon, 20 Mar 2023 09:22:41 -0700 Subject: Add support for persistent-apps in dock --- modules/system/defaults/dock.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules/system') 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; -- cgit v1.2.3