2024-08-31 22:23:09 +02:00
|
|
|
{ inputs, ... }:
|
|
|
|
{
|
2024-09-01 01:44:59 +02:00
|
|
|
nix = {
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
options = "--delete-older-than 2d";
|
|
|
|
};
|
2024-08-31 22:23:09 +02:00
|
|
|
|
2024-09-01 01:44:59 +02:00
|
|
|
settings = {
|
|
|
|
allow-dirty = true;
|
|
|
|
auto-optimise-store = true;
|
|
|
|
builders-use-substitutes = true;
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
log-lines = 50;
|
|
|
|
use-xdg-base-directories = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* This makes commandline tools like
|
|
|
|
** nix run nixpkgs#hello
|
|
|
|
** and nix-shell -p hello
|
|
|
|
** use the same channel the system
|
|
|
|
** was built with
|
|
|
|
*/
|
|
|
|
registry = {
|
|
|
|
"nixpkgs".flake = inputs.nixpkgs;
|
2024-09-01 21:45:30 +02:00
|
|
|
"nixpkgs-unstable".flake = inputs.nixpkgs-unstable;
|
2024-09-01 01:44:59 +02:00
|
|
|
"pvv-nix".flake = inputs.self;
|
|
|
|
};
|
2024-09-01 21:45:30 +02:00
|
|
|
nixPath = [
|
|
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
|
|
"unstable=${inputs.nixpkgs-unstable}"
|
|
|
|
];
|
2024-08-31 22:23:09 +02:00
|
|
|
};
|
2024-09-01 21:45:30 +02:00
|
|
|
}
|