-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.nix
executable file
·45 lines (39 loc) · 1.1 KB
/
base.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
41
42
43
44
45
{
inputs,
outputs,
lib,
...
}: {
copper.feature.known-hashes.enable = lib.mkDefault true;
# Auto-update Nix
services.nix-daemon.enable = true;
nix = {
# Configure Nix in accordance with what the Determinate Systems installer sets
settings = {
# Setting this to true causes various build issues due to links.
auto-optimise-store = false;
};
extraOptions = ''
extra-nix-path = nixpkgs=flake:nixpkgs
auto-allocate-uids = true
build-users-group = nixbld
experimental-features = nix-command flakes auto-allocate-uids
'';
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
registry.nixpkgs.flake = inputs.nixpkgs;
nixPath = [
"nixpkgs=/etc/channels/nixpkgs"
];
};
environment.etc."channels/nixpkgs".source = inputs.nixpkgs.outPath;
nixpkgs.config = {
allowUnfree = true;
};
# Add all of our own overlays
nixpkgs.overlays = builtins.attrValues outputs.overlays;
# Defines the version of Nix-Darwin at which point the config was created. DO NOT UPDATE.
system.stateVersion = 4;
}