This commit is contained in:
2026-07-28 01:01:21 +09:00
parent 6f4f048f4c
commit 7e8bd33c89
5 changed files with 49 additions and 5 deletions
+4 -1
View File
@@ -40,8 +40,10 @@ Prefer the following placements:
| Nix settings shared by every system host | `modules/systems/nix/common.nix` | | Nix settings shared by every system host | `modules/systems/nix/common.nix` |
| NixOS-only boot configuration | `modules/systems/boot/.../nixos.nix` | | NixOS-only boot configuration | `modules/systems/boot/.../nixos.nix` |
| Disko NixOS module and CLI | `modules/systems/disko/` | | Disko NixOS module and CLI | `modules/systems/disko/` |
| macOS-wide input, document, and dialog defaults | `modules/systems/macos-defaults/darwin.nix` |
| macOS Dock defaults | `modules/systems/dock/darwin.nix` | | macOS Dock defaults | `modules/systems/dock/darwin.nix` |
| macOS trackpad defaults | `modules/systems/trackpad/darwin.nix` | | macOS trackpad defaults | `modules/systems/trackpad/darwin.nix` |
| Finder-specific preferences | `modules/applications/finder/darwin.nix` |
| Ghostty-specific configuration | `modules/applications/ghostty/` | | Ghostty-specific configuration | `modules/applications/ghostty/` |
| niri-specific configuration | `modules/applications/niri/` | | niri-specific configuration | `modules/applications/niri/` |
| Desktop applications shared by GNOME and niri | `modules/profiles/interface/linux-desktop/meta.nix` | | Desktop applications shared by GNOME and niri | `modules/profiles/interface/linux-desktop/meta.nix` |
@@ -371,7 +373,8 @@ The profile layers have these responsibilities:
- `interface` describes how the host is operated. `interface.cli` is shared by - `interface` describes how the host is operated. `interface.cli` is shared by
NixOS and macOS and includes `tio`. `interface.gui` owns cross-platform NixOS and macOS and includes `tio`. `interface.gui` owns cross-platform
graphical interface applications such as Vicinae. `interface.macos` owns the graphical interface applications such as Vicinae. `interface.macos` owns the
macOS Dock and trackpad defaults and includes `interface.gui`. macOS Finder, Dock, trackpad, and shared default preferences and includes
`interface.gui`.
`interface.linux-desktop` owns the common GNOME/niri desktop selection, `interface.linux-desktop` owns the common GNOME/niri desktop selection,
including Ghostty and Nautilus, and also includes `interface.gui`. GNOME and including Ghostty and Nautilus, and also includes `interface.gui`. GNOME and
niri remain independently selectable and do not imply CLI or personal niri remain independently selectable and do not imply CLI or personal
+15
View File
@@ -0,0 +1,15 @@
{
system.defaults.finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = false;
ShowPathbar = true;
ShowStatusBar = true;
_FXShowPosixPathInTitle = true;
_FXSortFoldersFirst = true;
FXDefaultSearchScope = "SCcf";
FXPreferredViewStyle = "Nlsv";
NewWindowTarget = "Home";
FXEnableExtensionChangeWarning = true;
FXRemoveOldTrashItems = true;
};
}
@@ -3,8 +3,10 @@
includes = [ includes = [
"profiles.interface.gui" "profiles.interface.gui"
"applications.finder"
"systems.dock" "systems.dock"
"systems.keyboard" "systems.keyboard"
"systems.macos-defaults"
"systems.trackpad" "systems.trackpad"
]; ];
} }
+7 -4
View File
@@ -11,7 +11,13 @@
}; };
system.defaults = { system.defaults = {
NSGlobalDomain."com.apple.keyboard.fnState" = true; NSGlobalDomain = {
# Keep editor-friendly key repeat behavior and use F1–F12 directly.
ApplePressAndHoldEnabled = false;
InitialKeyRepeat = 15;
KeyRepeat = 2;
"com.apple.keyboard.fnState" = true;
};
# These are the standard macOS App Shortcuts for all applications. Keep # These are the standard macOS App Shortcuts for all applications. Keep
# both English and Japanese menu titles so they work after changing the # both English and Japanese menu titles so they work after changing the
@@ -21,9 +27,6 @@
"Close Window" = "~q"; "Close Window" = "~q";
"閉じる" = "~q"; "閉じる" = "~q";
"ウインドウを閉じる" = "~q"; "ウインドウを閉じる" = "~q";
"Zoom" = "~f";
"拡大/縮小" = "~f";
"拡大/縮小" = "~f";
}; };
}; };
} }
+21
View File
@@ -0,0 +1,21 @@
{
system.defaults.NSGlobalDomain = {
# Prevent automatic text substitutions from changing code and Markdown.
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
# Keep new documents local by default and expand save/print panels.
NSDocumentSaveNewDocumentsToCloud = false;
NSNavPanelExpandedStateForSaveMode = true;
NSNavPanelExpandedStateForSaveMode2 = true;
PMPrintingExpandedStateForPrint = true;
PMPrintingExpandedStateForPrint2 = true;
};
# Do not restore applications that happened to be open at logout. Declarative
# launch agents remain the only applications intentionally started at login.
system.defaults.CustomUserPreferences."com.apple.loginwindow".TALLogoutSavesState = false;
}