-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.nix
40 lines (40 loc) · 1.13 KB
/
default.nix
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
{
config,
nixpkgs,
nixpkgsSrc,
...
}: {
boot.readOnlyNixStore = false;
environment.systemPackages = [
(nixpkgs.writeShellScriptBin "nix" ''
exec ${config.nix.package}/bin/nix \
--print-build-logs \
"$@"
'')
];
nix.extraOptions = ''
extra-experimental-features = nix-command flakes
'';
nix.nixPath = ["nixpkgs=${nixpkgsSrc}"];
nix.package = nixpkgs.nixVersions.latest;
nix.registry.nixpkgs = {
exact = false;
flake = nixpkgsSrc;
};
nix.settings.cores = 0;
nix.settings.max-jobs = 1;
nix.settings.substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
"https://alejandra.cachix.org"
];
nix.settings.trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"alejandra.cachix.org-1:NjZ8kI0mf4HCq8yPnBfiTurb96zp1TBWl8EC54Pzjm0="
];
nix.settings.trusted-users = ["root" config.wellKnown.username];
nixpkgs.config.allowBroken = false;
nixpkgs.config.allowUnfree = true;
nixpkgs.config.android_sdk.accept_license = true;
}