mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-25 17:37:18 +08:00
52 lines
1.6 KiB
Nix
52 lines
1.6 KiB
Nix
{ flake, ... }:
|
|
|
|
let
|
|
inherit (flake) inputs;
|
|
inherit (inputs) self;
|
|
in
|
|
{
|
|
imports = [
|
|
self.darwinModules.default
|
|
"${self}/nix-darwin/zsh-completion-fix.nix"
|
|
"${self}/nixos/github-runner.nix"
|
|
];
|
|
|
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
networking.hostName = "appreciate";
|
|
|
|
security.pam.enableSudoTouchIdAuth = true;
|
|
|
|
# For home-manager to work.
|
|
users.users.${flake.config.people.myself} = {
|
|
name = flake.config.people.myself;
|
|
home = "/Users/${flake.config.people.myself}";
|
|
};
|
|
|
|
# See https://github.com/ryan4yin/nix-darwin-kickstarter/blob/main/rich-demo/modules/system.nix
|
|
system.defaults = {
|
|
dock = {
|
|
autohide = true;
|
|
# customize Hot Corners(触发角, 鼠标移动到屏幕角落时触发的动作)
|
|
wvous-tl-corner = 2; # top-left - Mission Control
|
|
wvous-tr-corner = 13; # top-right - Lock Screen
|
|
wvous-bl-corner = 3; # bottom-left - Application Windows
|
|
wvous-br-corner = 4; # bottom-right - Desktop
|
|
};
|
|
|
|
finder = {
|
|
_FXShowPosixPathInTitle = true; # show full path in finder title
|
|
AppleShowAllExtensions = true; # show all file extensions
|
|
FXEnableExtensionChangeWarning = false; # disable warning when changing file extension
|
|
QuitMenuItem = true; # enable quit menu item
|
|
ShowPathbar = true; # show path bar
|
|
ShowStatusBar = true; # show status bar
|
|
};
|
|
};
|
|
|
|
# Auto upgrade nix package and the daemon service.
|
|
services.nix-daemon.enable = true;
|
|
|
|
# Used for backwards compatibility, please read the changelog before changing.
|
|
# $ darwin-rebuild changelog
|
|
system.stateVersion = 4;
|
|
}
|