mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
cleanup
This commit is contained in:
parent
45628bdbc3
commit
78b1a5761c
13 changed files with 52 additions and 113 deletions
15
shared/nix.nix
Normal file
15
shared/nix.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue