fix: nix-darwin with nixos-23.11

This commit is contained in:
Ryan Yin
2023-11-27 13:42:15 +08:00
parent 0996ec71e9
commit a1f4764526
13 changed files with 57 additions and 58 deletions

View File

@@ -44,7 +44,7 @@
# homebrew need to be installed manually, see https://brew.sh
homebrew = {
enable = false;
enable = true;
onActivation = {
autoUpdate = false;
@@ -83,6 +83,7 @@
"aria2" # download tool
"httpie" # http client
"wireguard-tools" # wireguard
"mitmproxy"
# Usage:
# https://github.com/tailscale/tailscale/wiki/Tailscaled-on-macOS#run-the-tailscaled-daemon
@@ -97,10 +98,17 @@
# commands like `gsed` `gtar` are required by some tools
"gnu-sed"
"gnu-tar"
# misc that nix do not have cache for.
"git-trim"
"terraform"
"terraformer"
];
# `brew install --cask`
casks = [
"wezterm"
"squirrel" # input method for Chinese, rime-squirrel
"firefox"

View File

@@ -35,7 +35,10 @@
options = lib.mkDefault "--delete-older-than 7d";
};
# Manual optimise storage: nix-store --optimise
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store
nix.settings.auto-optimise-store = true;
# Disable auto-optimise-store because of this issue:
# https://github.com/NixOS/nix/issues/7273
# "error: cannot link '/nix/store/.tmp-link-xxxxx-xxxxx' to '/nix/store/.links/xxxx': File exists"
nix.settings = {
auto-optimise-store = false;
};
}

View File

@@ -151,10 +151,14 @@
# Fonts
fonts = {
# use fonts specified by user rather than default ones
# will be removed after this PR is merged:
# https://github.com/LnL7/nix-darwin/pull/754
fontDir.enable = true;
packages = with pkgs; [
# will change to `fonts.packages` after this PR is merged:
# https://github.com/LnL7/nix-darwin/pull/754
fonts = with pkgs; [
# packages = with pkgs; [
# icon fonts
material-design-icons
font-awesome