mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-28 12:21:54 +01:00
35 lines
999 B
Nix
35 lines
999 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
###################################################################################
|
|
#
|
|
# Core configuration for nix-darwin
|
|
#
|
|
# All the configuration options are documented here:
|
|
# https://daiderd.com/nix-darwin/manual/index.html#sec-options
|
|
#
|
|
###################################################################################
|
|
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# Auto upgrade nix package and the daemon service.
|
|
services.nix-daemon.enable = true;
|
|
# Use this instead of services.nix-daemon.enable if you
|
|
# don't wan't the daemon service to be managed for you.
|
|
# nix.useDaemon = true;
|
|
|
|
nix.package = pkgs.nix;
|
|
|
|
programs.nix-index.enable = 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;
|
|
};
|
|
}
|