68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Apple Silicon + nix-darwin basics
|
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
services.nix-daemon.enable = true;
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# Shells & dev ergonomics
|
|
programs.fish.enable = true;
|
|
environment.shells = [ pkgs.fish ];
|
|
# If you want fish as default shell, uncomment:
|
|
# users.defaultUserShell = pkgs.fish;
|
|
|
|
programs.direnv.enable = true;
|
|
programs.direnv.nix-direnv.enable = true;
|
|
|
|
# Networking (macOS-safe)
|
|
networking = {
|
|
# Set if you want a specific hostname in macOS UI as well:
|
|
hostName = "Daniel-Macbook-Air";
|
|
knownNetworkServices = [ "Wi-Fi" "Thunderbolt Bridge" ];
|
|
dns = [
|
|
"84.200.69.80" "8.26.56.26" "1.1.1.1" "8.8.8.8" "64.6.65.6" "208.67.222.222" "209.244.0.3"
|
|
];
|
|
};
|
|
|
|
# macOS niceties
|
|
security.pam.enableSudoTouchIdAuth = true;
|
|
|
|
system.defaults = {
|
|
# Keyboard
|
|
NSGlobalDomain = {
|
|
ApplePressAndHoldEnabled = false;
|
|
InitialKeyRepeat = 15;
|
|
KeyRepeat = 2;
|
|
};
|
|
|
|
# Finder & Dock
|
|
finder.AppleShowAllExtensions = true;
|
|
dock.autohide = true;
|
|
dock.mru-spaces = false;
|
|
};
|
|
|
|
# Environment
|
|
environment.variables = {
|
|
DBT_USER = "DNTH";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
gh
|
|
ripgrep
|
|
wget
|
|
busybox
|
|
openssl
|
|
neofetch
|
|
btop
|
|
tldr
|
|
fzf
|
|
cowsay
|
|
lolcat
|
|
];
|
|
|
|
# Keep for darwin as well (tracks defaults across upgrades)
|
|
system.stateVersion = "25.05";
|
|
}
|