This is supposed to improve the performance of the git tarball cache.
56 lines
1.6 KiB
Nix
56 lines
1.6 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ../common/nix-settings.nix ];
|
|
nix = {
|
|
enable = true;
|
|
package = pkgs.nixVersions.nix_2_25;
|
|
settings = {
|
|
trusted-users = [
|
|
"os"
|
|
"@admin"
|
|
]; # @admin for linux-builder
|
|
substituters = [
|
|
"https://s3.whq.fcio.net/hydra"
|
|
"https://hydra.flyingcircus.io"
|
|
];
|
|
trusted-public-keys = [
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
"flyingcircus.io-1:Rr9CwiPv8cdVf3EQu633IOTb6iJKnWbVfCC8x8gVz2o="
|
|
];
|
|
};
|
|
};
|
|
|
|
# Auto upgrade nix package and the daemon service.
|
|
services.nix-daemon.enable = true;
|
|
|
|
# List packages installed in system profile. To search by name, run:
|
|
# $ nix-env -qaP | grep wget
|
|
environment.systemPackages = [ pkgs.vim ];
|
|
|
|
# Use a custom configuration.nix location.
|
|
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
|
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
|
|
|
|
# Create /etc/bashrc that loads the nix-darwin environment.
|
|
programs.zsh.enable = true; # default shell on catalina
|
|
|
|
# system-wide SSH configuration, used by nix-daemon for remote builders
|
|
|
|
# show hidden files
|
|
system.defaults.NSGlobalDomain.AppleShowAllFiles = true;
|
|
|
|
# Used for backwards compatibility, please read the changelog before changing.
|
|
# $ darwin-rebuild changelog
|
|
system.stateVersion = 4;
|
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
|
|
# local vm-backed linux builder as background service
|
|
nix.linux-builder = {
|
|
enable = true;
|
|
ephemeral = true;
|
|
maxJobs = 3;
|
|
};
|
|
|
|
}
|