base.nix: split into multiple files

This commit is contained in:
2024-08-31 22:23:09 +02:00
parent bd42412b94
commit 8610a59f35
18 changed files with 225 additions and 198 deletions

17
base/nix.nix Normal file
View File

@@ -0,0 +1,17 @@
{ inputs, ... }:
{
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 2d";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
/* This makes commandline tools like
** nix run nixpkgs#hello
** and nix-shell -p hello
** use the same channel the system
** was built with
*/
nix.registry = {
nixpkgs.flake = inputs.nixpkgs;
};
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
}