-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathbootstrap.nix
More file actions
49 lines (40 loc) · 1.44 KB
/
Copy pathbootstrap.nix
File metadata and controls
49 lines (40 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib, pkgs, ... }:
let
inherit (builtins) attrValues;
in
{
# Nix configuration -----------------------------------------------------------------------------
# Let Determinate Nix manage the Nix installation
nix.enable = false;
# Nix settings for Determinate Nix
# Note: experimental-features not needed (Determinate has flakes by default)
determinateNix.customSettings = {
extra-substituters = "https://malo.cachix.org";
extra-trusted-public-keys = "malo.cachix.org-1:fJL4+lpyMs/1cdZ23nPQXArGj8AS7x9U67O8rMkkMIo=";
trusted-users = [ "@admin" ];
extra-platforms = lib.optionalString (
pkgs.stdenv.hostPlatform.system == "aarch64-darwin"
) "x86_64-darwin aarch64-darwin";
# Recommended when using `direnv` etc.
keep-derivations = "true";
keep-outputs = "true";
};
# Shells ----------------------------------------------------------------------------------------
# Add shells installed by nix to /etc/shells file
environment.shells = attrValues {
inherit (pkgs)
bashInteractive
fish
zsh
;
};
# Make Fish the default shell
programs.fish.enable = true;
programs.fish.useBabelfish = true;
environment.variables.SHELL = "${pkgs.fish}/bin/fish";
# Install and setup ZSH to work with nix(-darwin) as well
programs.zsh.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 6;
}