2016-12-14 12:05:23 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
2022-03-10 08:12:30 +00:00
|
|
|
system.defaults.finder.AppleShowAllFiles = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2022-03-10 08:12:30 +00:00
|
|
|
Whether to always show hidden files. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-03-10 08:43:27 +00:00
|
|
|
system.defaults.finder.ShowStatusBar = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2022-03-10 08:43:27 +00:00
|
|
|
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;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2022-03-10 08:43:27 +00:00
|
|
|
Show path breadcrumbs in finder windows. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
system.defaults.finder.FXDefaultSearchScope = mkOption {
|
2023-08-10 03:46:47 +00:00
|
|
|
type = types.nullOr types.str;
|
2022-03-10 08:43:27 +00:00
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2022-03-10 08:43:27 +00:00
|
|
|
Change the default search scope. Use "SCcf" to default to current folder.
|
|
|
|
The default is unset ("This Mac").
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
system.defaults.finder.FXPreferredViewStyle = mkOption {
|
2023-08-10 03:46:47 +00:00
|
|
|
type = types.nullOr types.str;
|
2022-03-24 15:37:17 +00:00
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2022-03-10 08:43:27 +00:00
|
|
|
Change the default finder view.
|
|
|
|
"icnv" = Icon view, "Nlsv" = List view, "clmv" = Column View, "Flwv" = Gallery View
|
|
|
|
The default is icnv.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2016-12-14 12:05:23 +00:00
|
|
|
system.defaults.finder.AppleShowAllExtensions = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2016-12-14 15:30:55 +00:00
|
|
|
Whether to always show file extensions. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-06-03 09:39:58 +00:00
|
|
|
system.defaults.finder.CreateDesktop = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2020-06-03 09:39:58 +00:00
|
|
|
Whether to show icons on the desktop or not. The default is true.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2016-12-14 15:30:55 +00:00
|
|
|
system.defaults.finder.QuitMenuItem = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2016-12-14 15:30:55 +00:00
|
|
|
Whether to allow quitting of the Finder. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
system.defaults.finder._FXShowPosixPathInTitle = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2016-12-14 15:30:55 +00:00
|
|
|
Whether to show the full POSIX filepath in the window title. The default is false.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
system.defaults.finder.FXEnableExtensionChangeWarning = mkOption {
|
|
|
|
type = types.nullOr types.bool;
|
|
|
|
default = null;
|
2024-04-14 21:02:32 +00:00
|
|
|
description = ''
|
2016-12-14 15:30:55 +00:00
|
|
|
Whether to show warnings when change the file extension of files. The default is true.
|
|
|
|
'';
|
2016-12-14 12:05:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|