refactor: 重构为三设备架构,zsh 迁移至 fish
- 新增 darwinConfigurations: mac-mini, macbook-air (aarch64-darwin) - WSL 统一用户名为 imbytecat,主机名改为 awesome-* 系列 - zsh 全面迁移至 fish (abbrs, 内置补全/高亮, zoxide --cmd cd) - 激活 nix-darwin 模块: Homebrew, 系统偏好, Touch ID sudo - 移除 bare/standalone 配置及 catppuccin nixosModule from mkDarwin
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
{ username, ... }:
|
||||
|
||||
{
|
||||
# ── Boot ─────────────────────────────────────────────
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# ── Network ──────────────────────────────────────────
|
||||
networking.networkmanager.enable = true;
|
||||
users.users.${username}.extraGroups = [ "networkmanager" ];
|
||||
|
||||
# ── Hardware ─────────────────────────────────────────
|
||||
# After first install, generate and uncomment:
|
||||
# sudo nixos-generate-config --show-hardware-config > hosts/bare/hardware-configuration.nix
|
||||
# imports = [ ./hardware-configuration.nix ];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
# ── Mac Mini specific ─────────────────────────────────
|
||||
# Always plugged in — desktop workstation role
|
||||
|
||||
# Touch ID for sudo
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
system.stateVersion = 5;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
# ── MacBook Air specific ──────────────────────────────
|
||||
# Portable — battery-conscious settings
|
||||
|
||||
# Touch ID for sudo
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
system.stateVersion = 5;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
{ username, ... }:
|
||||
|
||||
{
|
||||
# ── macOS host-specific configuration ────────────────
|
||||
# Uncomment and configure when macOS machine is available.
|
||||
|
||||
# Touch ID for sudo
|
||||
# security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
# system.stateVersion = 5;
|
||||
}
|
||||
Reference in New Issue
Block a user