fix: 修复首次 darwin-rebuild 的构建错误

- nix.enable=false 兼容 Determinate Nix (macOS)
- 禁用 catppuccin.nvim (require check 失败)
- fl-clash 用完整 tap 路径放入 casks
- 修复 SSH/git 废弃选项警告
- 更新 flake.lock
This commit is contained in:
2026-04-10 23:30:35 +08:00
parent 3ccdd8d2e2
commit 215e09910c
5 changed files with 9 additions and 11 deletions
+2
View File
@@ -3,6 +3,7 @@
{
programs.git = {
enable = true;
signing.format = null;
settings = {
user = {
name = "imbytecat";
@@ -48,6 +49,7 @@
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks."*" = {
identityFile = "~/.ssh/id_ed25519";
addKeysToAgent = "yes";
+1 -1
View File
@@ -4,6 +4,6 @@
catppuccin = {
enable = true;
flavor = "mocha";
# Automatically themes: bat, btop, delta, fish, fzf, lazygit, starship, tmux, etc.
nvim.enable = false; # catppuccin-nvim require check broken in nixpkgs
};
}
+1 -1
View File
@@ -63,7 +63,7 @@
"dbeaver-community"
"discord"
"feishu"
"fl-clash"
"goooler/repo/fl-clash"
"ghostty"
"keka"
"logitech-g-hub"
+5 -7
View File
@@ -1,17 +1,15 @@
{ lib, ... }:
{ lib, pkgs, ... }:
{
nix.settings = {
# Determinate Nix manages the daemon on macOS
nix.enable = !pkgs.stdenv.isDarwin;
nix.settings = lib.mkIf (!pkgs.stdenv.isDarwin) {
experimental-features = [
"nix-command"
"flakes"
];
warn-dirty = false;
# 国内镜像(按需取消注释)
# substituters = [
# "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
# "https://cache.nixos.org"
# ];
};
nixpkgs = {
-2
View File
@@ -1,5 +1,3 @@
final: prev: {
# ── Custom overlays ──────────────────────────────────
# Override or extend nixpkgs packages here.
comment-checker = final.callPackage ../pkgs/comment-checker { };
}