From 457a5d99529818fdbcf3af17b3604a8ab778bc0b Mon Sep 17 00:00:00 2001 From: Ricardo Pinto Date: Mon, 8 Apr 2024 14:09:25 +0100 Subject: Add persistent others to 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 27772ca..b48486e 100644 --- a/modules/system/defaults/dock.nix +++ b/modules/system/defaults/dock.nix @@ -136,6 +136,19 @@ in { else map (app: { tile-data = { file-data = { _CFURLString = app; _CFURLStringType = 0; }; }; }) value; }; + system.defaults.dock.persistent-others = mkOption { + type = types.nullOr (types.listOf (types.either types.path types.str)); + default = null; + example = [ "~/Documents" "~/Downloads" ]; + description = lib.mdDoc '' + Persistent folders in the dock. + ''; + apply = value: + if !(isList value) + then value + else map (folder: { tile-data = { file-data = { _CFURLString = folder; _CFURLStringType = 15; }; }; }) value; + }; + system.defaults.dock.show-process-indicators = mkOption { type = types.nullOr types.bool; default = null; -- cgit v1.2.3