pulled in as flake because the darwin module has not been upstreamed yet, anf or consistency sake take all modules from the same source then
60 lines
1.6 KiB
Nix
60 lines
1.6 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
inputs = config.inputInjection.flake-inputs;
|
|
in
|
|
{
|
|
imports = [
|
|
../common/nix-settings.nix
|
|
../common/angrr.nix
|
|
];
|
|
nix = {
|
|
enable = true;
|
|
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="
|
|
];
|
|
sandbox = "relaxed";
|
|
};
|
|
};
|
|
|
|
# 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.primaryUser = "os";
|
|
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;
|
|
};
|
|
|
|
}
|