mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-25 10:52:03 +01:00
fix: nix-darwin with nixos-23.11
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user