Rename macOS nix-darwin host to daniel-macbook-air.nix
Match hostname Daniel-Macbook-Air; update flake and docs. Made-with: Cursor
This commit is contained in:
parent
ca0d38316f
commit
82ce5a7fe8
4 changed files with 5 additions and 5 deletions
|
|
@ -1,71 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
alacrittySyncSystemTheme = pkgs.writeShellScriptBin "alacritty-sync-system-theme"
|
||||
(builtins.readFile ../../scripts/alacritty-sync-system-theme.sh);
|
||||
in {
|
||||
# Apple Silicon + nix-darwin basics
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
nix.enable = false; # Determinate manages Nix
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
system.primaryUser = "danny";
|
||||
|
||||
# Shells (fish config is in fish.nix, imported via flake.nix)
|
||||
environment.shells = [ pkgs.fish ];
|
||||
users.users.danny.shell = pkgs.fish;
|
||||
|
||||
# ollama
|
||||
imports = [../ollama.nix];
|
||||
services.ollama = {
|
||||
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" ];
|
||||
};
|
||||
|
||||
# macOS niceties
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
system.defaults = {
|
||||
# Keyboard
|
||||
NSGlobalDomain = {
|
||||
AppleShowAllExtensions = true;
|
||||
ApplePressAndHoldEnabled = true;
|
||||
"com.apple.mouse.tapBehavior" = 1;
|
||||
"com.apple.sound.beep.volume" = 0.0;
|
||||
"com.apple.sound.beep.feedback" = 0;
|
||||
};
|
||||
|
||||
# Finder & Dock
|
||||
finder.AppleShowAllExtensions = true;
|
||||
dock.autohide = true;
|
||||
dock.mru-spaces = false;
|
||||
};
|
||||
|
||||
# User-specific packages and environment variables are now in home-manager (home.nix)
|
||||
# Only system-level packages should remain here if needed
|
||||
|
||||
environment.systemPackages = [ alacrittySyncSystemTheme ];
|
||||
|
||||
# Poll macOS appearance; updates ~/.config/alacritty/active-colors.toml (Alacritty live_config_reload).
|
||||
launchd.user.agents.alacritty-system-theme = {
|
||||
serviceConfig = {
|
||||
RunAtLoad = true;
|
||||
StartInterval = 30;
|
||||
ProgramArguments = [ "${alacrittySyncSystemTheme}/bin/alacritty-sync-system-theme" ];
|
||||
StandardOutPath = "/tmp/alacritty-theme-sync.log";
|
||||
StandardErrorPath = "/tmp/alacritty-theme-sync-error.log";
|
||||
};
|
||||
};
|
||||
|
||||
# Keep for darwin as well (tracks defaults across upgrades)
|
||||
# current max per nix-darwin; bump only if a release notes says so
|
||||
system.stateVersion = 6;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue