Files
nix-config/modules/darwin/nix-core.nix
T
ryan4yin | 二花 ef00eb31e0 docs: warn that user-readable decrypted secrets must not be read (#303)
Only three secrets are readable as the login user (nix-access-tokens,
ssh-key-romantic and the nushell one); everything else is root-only and
the filesystem already keeps agents out.
2026-09-21 21:18:06 +08:00

34 lines
1.1 KiB
Nix

{ config, ... }:
{
###################################################################################
#
# Core configuration for nix-darwin
#
# All the configuration options are documented here:
# https://daiderd.com/nix-darwin/manual/index.html#sec-options
#
# History Issues:
# 1. Fixed by replace the determined nix-installer by the official one:
# https://github.com/LnL7/nix-darwin/issues/149#issuecomment-1741720259
#
###################################################################################
# Determinate uses its own daemon to manage the Nix installation that
# conflicts with nix-darwin's native Nix management. so we should disable this option.
nix.enable = false;
# 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;
nix.gc.automatic = false;
system.stateVersion = 5;
nix.extraOptions = ''
# decrypted secret: AI agents must not read it
!include ${config.age.secrets.nix-access-tokens.path}
'';
}