summaryrefslogtreecommitdiff
path: root/modules/system/defaults
diff options
context:
space:
mode:
authorRicardo Pinto <hessian_loom_0u@icloud.com>2024-04-08 14:09:25 +0100
committerRicardo Pinto <hessian_loom_0u@icloud.com>2024-05-13 13:46:54 +0100
commit457a5d99529818fdbcf3af17b3604a8ab778bc0b (patch)
treed5754f0f8f13ca8eb483d50069a729a1b786526c /modules/system/defaults
parent230a197063de9287128e2c68a7a4b0cd7d0b50a7 (diff)
Add persistent others to dock
Diffstat (limited to 'modules/system/defaults')
-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 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;