From d1c534422277b8f97f0323fc7e13309a12f8b064 Mon Sep 17 00:00:00 2001 From: Dan Yang Date: Thu, 10 Mar 2022 00:12:30 -0800 Subject: [PATCH 1/2] option to show all hidden files --- modules/system/defaults/finder.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/system/defaults/finder.nix b/modules/system/defaults/finder.nix index 91e100a0..87fcca39 100644 --- a/modules/system/defaults/finder.nix +++ b/modules/system/defaults/finder.nix @@ -5,6 +5,14 @@ with lib; { options = { + system.defaults.finder.AppleShowAllFiles = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Whether to always show hidden files. The default is false. + ''; + }; + system.defaults.finder.AppleShowAllExtensions = mkOption { type = types.nullOr types.bool; default = null; From d61d8b3bd039345ee0f820079b1c915e7a8a018b Mon Sep 17 00:00:00 2001 From: Dan Yang Date: Thu, 10 Mar 2022 00:43:27 -0800 Subject: [PATCH 2/2] additional finder options --- modules/system/defaults/finder.nix | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/modules/system/defaults/finder.nix b/modules/system/defaults/finder.nix index 87fcca39..3539dbc2 100644 --- a/modules/system/defaults/finder.nix +++ b/modules/system/defaults/finder.nix @@ -13,6 +13,41 @@ with lib; ''; }; + system.defaults.finder.ShowStatusBar = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Show status bar at bottom of finder windows with item/disk space stats. The default is false. + ''; + }; + + system.defaults.finder.ShowPathbar = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Show path breadcrumbs in finder windows. The default is false. + ''; + }; + + system.defaults.finder.FXDefaultSearchScope = mkOption { + type = types.nullOr types.string; + default = null; + description = '' + Change the default search scope. Use "SCcf" to default to current folder. + The default is unset ("This Mac"). + ''; + }; + + system.defaults.finder.FXPreferredViewStyle = mkOption { + type = types.nullOr types.string; + default = "Nlsv"; + description = '' + Change the default finder view. + "icnv" = Icon view, "Nlsv" = List view, "clmv" = Column View, "Flwv" = Gallery View + The default is icnv. + ''; + }; + system.defaults.finder.AppleShowAllExtensions = mkOption { type = types.nullOr types.bool; default = null;