mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
16 lines
445 B
Nix
16 lines
445 B
Nix
|
{ config, lib, nixpkgs, ... }:
|
||
|
{
|
||
|
nix = {
|
||
|
# expose all flake inputs through nix Path and registry
|
||
|
registry = {
|
||
|
nixpkgs.flake = nixpkgs;
|
||
|
};
|
||
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
||
|
# keep build-time deps around for offline-rebuilding
|
||
|
settings = {
|
||
|
auto-optimise-store = true;
|
||
|
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
||
|
};
|
||
|
};
|
||
|
}
|