/
finder.nix
92 lines (79 loc) · 2.63 KB
/
finder.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{ config, lib, ... }:
with lib;
{
options = {
system.defaults.finder.AppleShowAllFiles = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to always show hidden files. The default is false.
'';
};
system.defaults.finder.ShowStatusBar = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
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 = lib.mdDoc ''
Show path breadcrumbs in finder windows. The default is false.
'';
};
system.defaults.finder.FXDefaultSearchScope = mkOption {
type = types.nullOr types.str;
default = null;
description = lib.mdDoc ''
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.str;
default = null;
description = lib.mdDoc ''
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;
description = lib.mdDoc ''
Whether to always show file extensions. The default is false.
'';
};
system.defaults.finder.CreateDesktop = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to show icons on the desktop or not. The default is true.
'';
};
system.defaults.finder.QuitMenuItem = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to allow quitting of the Finder. The default is false.
'';
};
system.defaults.finder._FXShowPosixPathInTitle = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
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;
description = lib.mdDoc ''
Whether to show warnings when change the file extension of files. The default is true.
'';
};
};
}