mirror of
https://seed.radicle.dev/rad:z254T5p17bdFPmzfDojsdjo4HjpoZ.git
synced 2026-10-18 19:10:32 +08:00
39 lines
936 B
Nix
39 lines
936 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
environment = {
|
|
etc."nix/inputs/nixpkgs".source = pkgs.path;
|
|
systemPackages = [
|
|
pkgs.nil
|
|
];
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix = {
|
|
nixPath = ["nixpkgs=/etc/${config.environment.etc."nix/inputs/nixpkgs".target}"];
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
};
|
|
extraOptions = ''
|
|
allow-import-from-derivation = true
|
|
experimental-features = nix-command flakes
|
|
builders-use-substitutes = true
|
|
log-lines = 30
|
|
max-silent-time = 600
|
|
timeout = 7200
|
|
#pure-eval = true
|
|
#use-xdg-base-directories = true
|
|
|
|
# NOTE: Disabling URL literals is desired, but breaks
|
|
# evaluation of ngipkgs as of 2023-08-23. Bring it back
|
|
# once ngipkgs evaluates with it.
|
|
# See <https://github.com/ngi-nix/ngipkgs/issues/39>.
|
|
# experimental-features = no-url-literals
|
|
'';
|
|
gc.automatic = true;
|
|
};
|
|
}
|