This commit is contained in:
Rouven Seifert 2023-10-28 15:51:25 +02:00
parent 45628bdbc3
commit 78b1a5761c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
13 changed files with 52 additions and 113 deletions

15
shared/nix.nix Normal file
View file

@ -0,0 +1,15 @@
{ 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" ];
};
};
}