diff options
| author | Michael Hoang <Enzime@users.noreply.github.com> | 2024-05-14 12:22:58 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 12:22:58 +1000 |
| commit | de8b0d60d6fd34f35abffc46adc94ebaa6996ce2 (patch) | |
| tree | d5754f0f8f13ca8eb483d50069a729a1b786526c /modules/system | |
| parent | 230a197063de9287128e2c68a7a4b0cd7d0b50a7 (diff) | |
| parent | 457a5d99529818fdbcf3af17b3604a8ab778bc0b (diff) | |
Merge pull request #928 from rmgpinto/persistent-others
Add persistent others to dock
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/defaults/dock.nix | 13 |
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; |
