diff options
| author | Michael Hoang <Enzime@users.noreply.github.com> | 2024-03-04 23:12:54 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 23:12:54 +1100 |
| commit | daa03606dfb5296a22e842acb02b46c1c4e9f5e7 (patch) | |
| tree | c56510f5eff7d0038184b0bc06b531cd4844a43f /modules/system | |
| parent | e7d7a7f0c5a184c67b6bff56f95436d83d05fba5 (diff) | |
| parent | 5c65cfb656c1a7879c750d342bfdcc082831a891 (diff) | |
Merge pull request #898 from dfrankland/dock-persistent-apps
Add support for persistent-apps in 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 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; |
